D
Dokploy13mo ago
Cento

An error occurred on client

TL;DR When run Dokploy on a Proxmox CT it mess up with the host name, Fix by using Proxmox VM Question After finish running the install command:
curl -sSL https://dokploy.com/install.sh | sh
curl -sSL https://dokploy.com/install.sh | sh
Logs:
Congratulations, Dokploy is installed!
Wait 15 seconds for the server to start
Please go to http://ID_ADDRESS:3000
Congratulations, Dokploy is installed!
Wait 15 seconds for the server to start
Please go to http://ID_ADDRESS:3000
When I try to access the web UI for the first time It say: An error occurred on client When I check the website console logs it return a 500 error code
No description
21 Replies
Cento
CentoOP13mo ago
root@localhost:~# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c30137d6d435 postgres:16 "docker-entrypoint.s…" About a minute ago Up About a minute 5432/tcp dokploy-postgres.1.gy2odljaw7l0xfrpxjba4lxb7
bb7d7c3b6105 redis:7 "docker-entrypoint.s…" About a minute ago Up About a minute 6379/tcp dokploy-redis.1.k798w1m1z5c87qfof6znajsbs
0fab0ff849fe traefik:v2.5 "/entrypoint.sh trae…" 2 minutes ago Up About a minute 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp, 0.0.0.0:8080->8080/tcp, :::8080->8080/tcp dokploy-traefik.1.1hroya4pdef2ttz7h2r59szdb
f616e2225871 dokploy/dokploy:latest "docker-entrypoint.s…" 2 minutes ago Up 2 minutes 0.0.0.0:3000->3000/tcp, :::3000->3000/tcp dokploy.1.k6cow5a8omrnuhy46c33tiig5
root@localhost:~# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c30137d6d435 postgres:16 "docker-entrypoint.s…" About a minute ago Up About a minute 5432/tcp dokploy-postgres.1.gy2odljaw7l0xfrpxjba4lxb7
bb7d7c3b6105 redis:7 "docker-entrypoint.s…" About a minute ago Up About a minute 6379/tcp dokploy-redis.1.k798w1m1z5c87qfof6znajsbs
0fab0ff849fe traefik:v2.5 "/entrypoint.sh trae…" 2 minutes ago Up About a minute 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp, 0.0.0.0:8080->8080/tcp, :::8080->8080/tcp dokploy-traefik.1.1hroya4pdef2ttz7h2r59szdb
f616e2225871 dokploy/dokploy:latest "docker-entrypoint.s…" 2 minutes ago Up 2 minutes 0.0.0.0:3000->3000/tcp, :::3000->3000/tcp dokploy.1.k6cow5a8omrnuhy46c33tiig5
I already try uninstall (using the method provide in the Dokploy docs) and reinstall again and still get the same error
Siumauricio
Siumauricio13mo ago
can you check the logs? do docker service logs dokploy
Cento
CentoOP13mo ago
Here the logs
Pharoh
Pharoh13mo ago
holy, i got same thing
Siumauricio
Siumauricio13mo ago
which vps are you using and from what provider?
Cento
CentoOP13mo ago
It run Ubuntu 23, on my proxmox server
Siumauricio
Siumauricio13mo ago
that's why the issues, check here https://github.com/Dokploy/dokploy/issues/16, this is a issue about docker and proxmox not from dokploy unfortunately itself, why not use a simple vps provider like digitalocean, hetzner and others?
GitHub
Issues · Dokploy/dokploy
Open Source Alternative to Vercel, Netlify and Heroku. - Issues · Dokploy/dokploy
Cento
CentoOP13mo ago
Thanks will dig deeper into this issue will report back anything i find update Dokploy try to connect to 10.0.1.7 but the redis running at 10.0.1.8 Okey Im gave up Here is where i left off run docker network inspect dokploy-network
[
{
"Name": "dokploy-network",
"Id": "pzcutw8mcz0u9jcm6m803egon",
"Created": "2024-05-03T16:45:12.28845277Z",
"Scope": "swarm",
"Driver": "overlay",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": null,
"Config": [
{
"Subnet": "10.0.1.0/24",
"Gateway": "10.0.1.1"
}
]
},
"Internal": false,
"Attachable": true,
"Ingress": false,
"ConfigFrom": {
"Network": ""
},
"ConfigOnly": false,
"Containers": {
"1d098cc477f8d17ec21fd22cbc9656cb2e4bfa2b5bbbae4e6850e584591681d5": {
"Name": "dokploy.1.59a5gj1luc6sd3z7w50p131g8",
"EndpointID": "7c66fbbbbefc837388cfc40f3a2352c6fe550d3957e99c0319ccfb1b31ff0fc5",
"MacAddress": "02:42:0a:00:01:03",
"IPv4Address": "10.0.1.3/24",
"IPv6Address": ""
},
"6f9d52203070e13a2ed368ba61446609802bf561cc5acfdf4e42bc7c79844815": {
"Name": "dokploy-redis.1.vnqyndfbezzi24bda70y99fte",
"EndpointID": "dcfcbd3156fa21c222f83340f60f782dd7aa03dab052252af3ca9c26cf26f8f9",
"MacAddress": "02:42:0a:00:01:08",
"IPv4Address": "10.0.1.8/24",
"IPv6Address": ""
},
"8e459f478726b0f4a4f84da851d6af5b01da6ba9c09a477b66557b0c44d9dec7": {
"Name": "dokploy-traefik.1.6jx85b2it4gn2npcwr7pq41s4",
"EndpointID": "ae0d34ea9aff1fccda013cf0953e040f63fd70c906d346fa192adc636e4b18b8",
"MacAddress": "02:42:0a:00:01:06",
"IPv4Address": "10.0.1.6/24",
"IPv6Address": ""
},
"ab2af953b83a07ed3815d9e5a600895ef3dbe0d0ffb7fa168e299a867da02bd2": {
"Name": "dokploy-postgres.1.vcaouwl24l3eui7v0jpq8jyn0",
"EndpointID": "883b427a7c016895975730fb5cbce3abd5f1616bbddd3f620192fea429d8a45c",
"MacAddress": "02:42:0a:00:01:0a",
"IPv4Address": "10.0.1.10/24",
"IPv6Address": ""
},
"lb-dokploy-network": {
"Name": "dokploy-network-endpoint",
"EndpointID": "b7da8a7a933e2d17e2a1af52816a9c6a1979cc044c138a163bb5ec33a6dc6b1d",
"MacAddress": "02:42:0a:00:01:04",
"IPv4Address": "10.0.1.4/24",
"IPv6Address": ""
}
},
"Options": {
"com.docker.network.driver.overlay.vxlanid_list": "4097"
},
"Labels": {},
"Peers": [
{
"Name": "85f7dce244ff",
"IP": "127.0.0.1"
}
]
}
]
[
{
"Name": "dokploy-network",
"Id": "pzcutw8mcz0u9jcm6m803egon",
"Created": "2024-05-03T16:45:12.28845277Z",
"Scope": "swarm",
"Driver": "overlay",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": null,
"Config": [
{
"Subnet": "10.0.1.0/24",
"Gateway": "10.0.1.1"
}
]
},
"Internal": false,
"Attachable": true,
"Ingress": false,
"ConfigFrom": {
"Network": ""
},
"ConfigOnly": false,
"Containers": {
"1d098cc477f8d17ec21fd22cbc9656cb2e4bfa2b5bbbae4e6850e584591681d5": {
"Name": "dokploy.1.59a5gj1luc6sd3z7w50p131g8",
"EndpointID": "7c66fbbbbefc837388cfc40f3a2352c6fe550d3957e99c0319ccfb1b31ff0fc5",
"MacAddress": "02:42:0a:00:01:03",
"IPv4Address": "10.0.1.3/24",
"IPv6Address": ""
},
"6f9d52203070e13a2ed368ba61446609802bf561cc5acfdf4e42bc7c79844815": {
"Name": "dokploy-redis.1.vnqyndfbezzi24bda70y99fte",
"EndpointID": "dcfcbd3156fa21c222f83340f60f782dd7aa03dab052252af3ca9c26cf26f8f9",
"MacAddress": "02:42:0a:00:01:08",
"IPv4Address": "10.0.1.8/24",
"IPv6Address": ""
},
"8e459f478726b0f4a4f84da851d6af5b01da6ba9c09a477b66557b0c44d9dec7": {
"Name": "dokploy-traefik.1.6jx85b2it4gn2npcwr7pq41s4",
"EndpointID": "ae0d34ea9aff1fccda013cf0953e040f63fd70c906d346fa192adc636e4b18b8",
"MacAddress": "02:42:0a:00:01:06",
"IPv4Address": "10.0.1.6/24",
"IPv6Address": ""
},
"ab2af953b83a07ed3815d9e5a600895ef3dbe0d0ffb7fa168e299a867da02bd2": {
"Name": "dokploy-postgres.1.vcaouwl24l3eui7v0jpq8jyn0",
"EndpointID": "883b427a7c016895975730fb5cbce3abd5f1616bbddd3f620192fea429d8a45c",
"MacAddress": "02:42:0a:00:01:0a",
"IPv4Address": "10.0.1.10/24",
"IPv6Address": ""
},
"lb-dokploy-network": {
"Name": "dokploy-network-endpoint",
"EndpointID": "b7da8a7a933e2d17e2a1af52816a9c6a1979cc044c138a163bb5ec33a6dc6b1d",
"MacAddress": "02:42:0a:00:01:04",
"IPv4Address": "10.0.1.4/24",
"IPv6Address": ""
}
},
"Options": {
"com.docker.network.driver.overlay.vxlanid_list": "4097"
},
"Labels": {},
"Peers": [
{
"Name": "85f7dce244ff",
"IP": "127.0.0.1"
}
]
}
]
Where the dokploy-redis should be 10.0.1.7 (base on the log when run docker service logs dokploy) Manage to update it back to 10.0.1.7 but now get
Redis Started ✅
dokploy.1.l6f1iad6oqyq@th-dokploy | Error: getaddrinfo ENOTFOUND dokploy-redis
dokploy.1.l6f1iad6oqyq@th-dokploy | at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26) {
dokploy.1.l6f1iad6oqyq@th-dokploy | errno: -3007,
dokploy.1.l6f1iad6oqyq@th-dokploy | code: 'ENOTFOUND',
dokploy.1.l6f1iad6oqyq@th-dokploy | syscall: 'getaddrinfo',
dokploy.1.l6f1iad6oqyq@th-dokploy | hostname: 'dokploy-redis'
dokploy.1.l6f1iad6oqyq@th-dokploy | }
Redis Started ✅
dokploy.1.l6f1iad6oqyq@th-dokploy | Error: getaddrinfo ENOTFOUND dokploy-redis
dokploy.1.l6f1iad6oqyq@th-dokploy | at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26) {
dokploy.1.l6f1iad6oqyq@th-dokploy | errno: -3007,
dokploy.1.l6f1iad6oqyq@th-dokploy | code: 'ENOTFOUND',
dokploy.1.l6f1iad6oqyq@th-dokploy | syscall: 'getaddrinfo',
dokploy.1.l6f1iad6oqyq@th-dokploy | hostname: 'dokploy-redis'
dokploy.1.l6f1iad6oqyq@th-dokploy | }
Seem like the name is wrong
Siumauricio
Siumauricio13mo ago
internally we use the way of connecting between containers, i mean using the docker internal host resolution https://github.com/Dokploy/dokploy/blob/47146dfedfff2537a364ff9da9e22212d084d873/server/queues/queueSetup.ts#L3
GitHub
dokploy/server/queues/queueSetup.ts at 47146dfedfff2537a364ff9da9e2...
Open Source Alternative to Vercel, Netlify and Heroku. - Dokploy/dokploy
Siumauricio
Siumauricio13mo ago
so maybe proxmox and docker are not being doing this assignment like to give the hostname to each container, so thats why they cannot be found
Cento
CentoOP13mo ago
Yeh the problem here is the hostname is not correct It had something to do with docker swam (which i never use befor so er) Okey I just gonna leave it there if anyone want to dig deeper then they don't have to start from the begining 😅
source
source13mo ago
the answer to this
why not use a simple vps provider like digitalocean, hetzner and others?
is: I have a way better spec'd machine already and I am hosting it from my home, why use a vps if I already have a capable enough machine. Had the same issue, the resolution is to host it using a VM, get the helper script for it from here https://tteck.github.io/Proxmox/ @Cento
Proxmox VE Helper-Scripts | Scripts for Streamlining Your Homelab w...
Scripts for Streamlining Your Homelab with Proxmox VE
Cento
CentoOP13mo ago
The scripts to create vm?
source
source13mo ago
yeah, theres a lots of scripts there, just search for ubuntu
Siumauricio
Siumauricio13mo ago
Can you make a instructions for this specific proxmox issue and make a PR to docs repo? https://github.com/Dokploy/docs
GitHub
GitHub - Dokploy/docs: Dokploy documentation
Dokploy documentation. Contribute to Dokploy/docs development by creating an account on GitHub.
source
source13mo ago
Yep, will make a PR sometime later tomorrow or the day after
Cento
CentoOP13mo ago
Thanks but it easier for me to create a vm
source
source13mo ago
yeah upto you
Cento
CentoOP13mo ago
Already finish the automation system to auto deploy 😂
Siumauricio
Siumauricio13mo ago
Thanks!!
Cento
CentoOP13mo ago
I think it better if you put it in a trouble shoot section since the only thing here you need to say is run it in vm not ct

Did you find this page helpful?