I installed SWAG on a newly installed Ubuntu VM. SWAG works so far. This means that the subdomains arrive and are forwarded to the right place. A firewall on Ubuntu is disabled.
Now I have installed the SWAG Dashboard and cannot get a connection internally via port 81. The error ‘504 Gateway Time-out’ occurs. The connection is rejected externally because of the access rules in dasboard.subdomain.conf. If I deactivate the access rules I also get an external error ‘504 Gateway Time-out’. I also mapped a different port for the dashboard. Unfortunately also without success.
The following versions are installed:
OS/docker info (Ubuntu 22.04.3 LTS, Docker version 24.0.7)
Hardware (Synology DS723+)
Here the configurations and logs are stored under Pastebin.
In the meantime, I found the following entries in SWAG’s Docker logs:
**** Applying the SWAG dashboard mod... ****
libmaxminddb
**** libmaxminddb already installed, skipping ****
**** goaccess already installed, skipping ****
**** libmaxminddb already installed, skipping ****
chown: changing ownership of '/dashboard/logs': Read-only file system
chown: changing ownership of '/dashboard/logs/cloud-init.log': Read-only file system
chown: changing ownership of '/dashboard/logs/installer': Read-only file system
chown: changing ownership of '/dashboard/logs/installer/subiquity-client-debug.log.2344': Read-only file system
chown: changing ownership of '/dashboard/logs/installer/cloud-init.log': Read-only file system
chown: changing ownership of '/dashboard/logs/installer/installer-journal.txt': Read-only file system
**** Permissions could not be set. This is probably because your volume mounts are remote or read-only. ****
**** The app may not work properly and we will not provide support for it. ****
**** Applied the SWAG dashboard mod ****
chown: changing ownership of '/dashboard/logs/installer/media-info': Read-only file system
chown: changing ownership of '/dashboard/logs/installer/subiquity-server-info.log.2019': Read-only file system
chown: changing ownership of '/dashboard/logs/installer/subiquity-client-info.log.2344': Read-only file system
Is there a connection here with the Ubuntu file system?
my first guess is that the issue is related to synology ACLs which tend to cause issues for most syno users, though with you running a vm i wouldn’t think this is the case.
What is the filesystem being used on the ubuntu system and how did you install docker? What is the output of snap list | grep docker
But the dashboard still cannot be accessed via the mapped port 81. The mentioned timeout always occurs.
Ok, here I have the requested information for you:
Filesystem: ext4 Docker: The official Docker version has been installed: docker-ce 5:24.0.7-1~ubuntu.22.04~jammy amd64 Docker: the open-source application container engine snap list | grep docker: No snaps are installed yet. Try ‘snap install hello-world’.
I set up this Ubuntu VM specifically for SWAG. So I would be free to change something here.
a small note, you say official docker version, but you didn’t install via the official instructions from docker, you installed from the ubuntu repo. This shouldn’t cause a problem, but our recommendation is to always install via the official instructions.
it’s very good you didn’t have the snap version, that causes a ton of issues. What is the filesystem on the host?
ok filesystem is fine too.
Ill pass this on to some others to see if they have any ideas, there is always a chance that the cpu in the syno simply can’t keep up and the caching takes longer than the timeout value.
this potentially could’ve been caused by huge logs. The latest swag PR resolves an issue with logrotate and may correct this problem. Can you pull :latest for swag and report back?
It might be a result of using watchtower or constantly recreating the container which deletes the cache files.
You can delete the logs, and if it happens again try to investigate what’s spamming your reverse proxy and causing huge logs.