Unreachable AMP after removing other app that uses docker

OS Name/Version: Ubuntu 22.04

Product Name/Version: AMP Instance Manager v2.5.0.4

Problem Description:

The panel URL is unreachable after i deleted some docker containers when removing other aplication

I have a free vps from Oracle, that i use primarily to host AMP, but i tinker with the server sometimes to try other apps, this time i was trying Coolify to host some web development personal projects i have, when i finished to try this software i decided to remove all of it from the server, and i followed this steps provided by Coolify (included on Steps to Reproduce)

I don’t now if one of these commands were the cause, but after i runned all the AMP URL was unreachable. Do you think i can recover AMP?

I have a medium knowledge from linux, but some things like network related, i don’t have much idea…

Additionally info:

  • I can run without problems ampinstmgr, but when i try to perform some command, like list the instances (ampinstmgr -l) the console throw this error:
[Info] AMP Instance Manager v2.5.0.4 built 04/04/2024 22:32
[Info] Stream: Mainline / Release (aarch64) - built by CUBECODERS/buildbot on CCL-DEV
[Error] Failed to read instance data: Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Current JsonReader item is not an object: String. Path '[0].AMPVersion', line 26, position 27.
  at Newtonsoft.Json.Linq.JObject.Load (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Linq.JsonLoadSettings settings) [0x00057] in <dd21e08747d94bcebed8b56112226337>:0
  at Newtonsoft.Json.Linq.JObject.Load (Newtonsoft.Json.JsonReader reader) [0x00000] in <dd21e08747d94bcebed8b56112226337>:0
  at InstanceManagerPlugin.LocalInstanceManager+VersionObjectConverter.ReadJson (Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Object existingValue, Newtonsoft.Json.JsonSerializer serializer) [0x0000c] in <89e0d5f6bdcd4311bd795cf153038ef6>:0
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable (Newtonsoft.Json.JsonConverter converter, Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Object existingValue) [0x00055] in <dd21e08747d94bcebed8b56112226337>:0
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue (Newtonsoft.Json.Serialization.JsonProperty property, Newtonsoft.Json.JsonConverter propertyConverter, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, Newtonsoft.Json.JsonReader reader, System.Object target) [0x00052] in <dd21e08747d94bcebed8b56112226337>:0
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject (System.Object newObject, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonObjectContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System.String id) [0x00280] in <dd21e08747d94bcebed8b56112226337>:0
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00161] in <dd21e08747d94bcebed8b56112226337>:0
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x0006d] in <dd21e08747d94bcebed8b56112226337>:0
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList (System.Collections.IList list, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonArrayContract contract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, System.String id) [0x00173] in <dd21e08747d94bcebed8b56112226337>:0
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System.Object existingValue, System.String id) [0x000dc] in <dd21e08747d94bcebed8b56112226337>:0
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x0007f] in <dd21e08747d94bcebed8b56112226337>:0
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Boolean checkAdditionalContent) [0x000db] in <dd21e08747d94bcebed8b56112226337>:0
  at Newtonsoft.Json.JsonSerializer.DeserializeInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00054] in <dd21e08747d94bcebed8b56112226337>:0
  at Newtonsoft.Json.JsonSerializer.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00000] in <dd21e08747d94bcebed8b56112226337>:0
  at Newtonsoft.Json.JsonConvert.DeserializeObject (System.String value, System.Type type, Newtonsoft.Json.JsonSerializerSettings settings) [0x0002d] in <dd21e08747d94bcebed8b56112226337>:0
  at Newtonsoft.Json.JsonConvert.DeserializeObject[T] (System.String value, Newtonsoft.Json.JsonSerializerSettings settings) [0x00000] in <dd21e08747d94bcebed8b56112226337>:0
  at InstanceManagerPlugin.LocalInstanceManager.GetLocalInstances (System.String AlternateDefsPath) [0x00096] in <89e0d5f6bdcd4311bd795cf153038ef6>:0

Steps to Reproduce:

  • Install AMP
  • Install Coolify
  • Uninstall Coolify with the following commands:
    sudo docker stop -t 0 coolify coolify-realtime coolify-db coolify-redis coolify-proxy
    sudo docker rm coolify coolify-realtime coolify-db coolify-redis coolify-proxy
    sudo docker volume rm coolify-db coolify-redis
    sudo docker network rm coolify
    sudo rm -rf /data/coolify
    sudo docker rmi ghcr.io/coollabsio/coolify:latest
    sudo docker rmi ghcr.io/coollabsio/coolify-helper:latest
    sudo docker rmi quay.io/soketi/soketi:1.6-16-alpine
    sudo docker rmi postgres:15-alpine
    sudo docker rmi redis:alpine
    sudo docker rmi traefik:v3.1
    sudo docker rmi lucaslorentz/caddy-docker-proxy:2.8-alpine
  • Try to open AMP URL and gives an ERR_CONNECTION_REFUSED

Actions taken to resolve so far:

  • Looked the iptables and this is the output:
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:http-alt
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:http-alt /* AMP Management Instance */

Chain FORWARD (policy DROP)
target     prot opt source               destination
DOCKER-USER  all  --  anywhere             anywhere
DOCKER-ISOLATION-STAGE-1  all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere             ctstate RELATED,ESTABLISHED
DOCKER     all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere             ctstate RELATED,ESTABLISHED
DOCKER     all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere             ctstate RELATED,ESTABLISHED
DOCKER     all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere
DROP       all  --  anywhere             anywhere

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Chain DOCKER (3 references)
target     prot opt source               destination
ACCEPT     tcp  --  anywhere             10.0.1.2             tcp dpt:8000
ACCEPT     tcp  --  anywhere             10.0.1.2             tcp dpt:9443

Chain DOCKER-ISOLATION-STAGE-1 (1 references)
target     prot opt source               destination
DOCKER-ISOLATION-STAGE-2  all  --  anywhere             anywhere
DOCKER-ISOLATION-STAGE-2  all  --  anywhere             anywhere
DOCKER-ISOLATION-STAGE-2  all  --  anywhere             anywhere
RETURN     all  --  anywhere             anywhere

Chain DOCKER-ISOLATION-STAGE-2 (3 references)
target     prot opt source               destination
DROP       all  --  anywhere             anywhere
DROP       all  --  anywhere             anywhere
DROP       all  --  anywhere             anywhere
RETURN     all  --  anywhere             anywhere

Chain DOCKER-USER (1 references)
target     prot opt source               destination
RETURN     all  --  anywhere             anywhere

Chain InstanceServices (0 references)
target     prot opt source               destination
  • run netstat -alpn | grep 8080 and no output.
  • run ampinstmgr status throws the same error but a table appears blank

The 8080 port is missing so i thought that this can be the issue, but i don’t know what i can do to resolve it.

Your ampinstmgr package is out of date.

OMG thank you, i runned ampinstmgr update and rebooted the server and now works, i feel so dumb after searching for couple hours… :man_facepalming:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.