Hi, it has worked for sometime now, but now website shows bad gateway no matter what I do. Every setting is correct and shows to correct port. Even restarting Traefik didn’t help.
Can anyone help please?
Regards, Luka
Hi, it has worked for sometime now, but now website shows bad gateway no matter what I do. Every setting is correct and shows to correct port. Even restarting Traefik didn’t help.
Can anyone help please?
Regards, Luka
Are there errors in the logs?
Are the webserver containers running?
runagent -m webserver1 podman ps
Does it help to restart the Webserver app in the Software Center or on CLI:
runagent -m webserver1 systemctl --user restart webserver
Does it work to browse to the webpage by it’s original FQDN that’s set in the webserver app like webhost.domain.com?
Does it work locally? (Adapt the port 20007 to the used one)
curl http://127.0.0.1:20007
Hi, sorry. I forgot i asked here for Webserver. I switched to using LAMP module and have this problem.
But it doesnt help to restart the instance, neither does it work with original fqdn.
Hi,
I moved your request to a new support topic as it’s a new issue.
Are there errors in the logs after restarting lamp? See System logs — NS8 documentation how to access the logs.
There could be a permission issue so let’s check the app directory:
runagent -m lamp1 podman exec apache2-app ls -l
Maybe the disk is full?
df -h / /home
[root@mail ~]# runagent -m lamp7 podman exec apache2-app ls -l
Error: no container with name or ID "apache2-app" found: no such container
[root@mail ~]# df -h / /home
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/rl-root 2.0T 513G 1.5T 26% /
/dev/mapper/rl-root 2.0T 513G 1.5T 26% /
[root@mail ~]#
After restarting logs say:
2026-03-13T09:19:12+01:00 [1:lamp7:systemd] Stopped Podman apache2-app.service.
2026-03-13T09:19:12+01:00 [1:lamp7:systemd] Stopping Podman lamp.service...
2026-03-13T09:19:12+01:00 [1:lamp7:systemd] Removed slice cgroup user-libpod_pod_11349741213dcbc547c942dafcc456a1130ea46058b40476fcf39b665a7cd744.slice.
2026-03-13T09:19:12+01:00 [1:lamp7:podman] lamp
2026-03-13T09:19:12+01:00 [1:lamp7:podman] 11349741213dcbc547c942dafcc456a1130ea46058b40476fcf39b665a7cd744
2026-03-13T09:19:12+01:00 [1:lamp7:systemd] Stopped Podman lamp.service.
2026-03-13T09:19:12+01:00 [1:lamp7:systemd] lamp.service: Start request repeated too quickly.
2026-03-13T09:19:12+01:00 [1:lamp7:systemd] lamp.service: Failed with result 'start-limit-hit'.
2026-03-13T09:19:12+01:00 [1:lamp7:systemd] Failed to start Podman lamp.service.
2026-03-13T09:19:12+01:00 [1:lamp7:systemd] Dependency failed for Podman apache2-app.service.
2026-03-13T09:19:12+01:00 [1:lamp7:systemd] apache2-app.service: Job apache2-app.service/start failed with result 'dependency'.
In that case we need to check it via the filesystem:
ls -l /home/lamp7/.local/share/containers/storage/volumes/app/_data/
Maybe related:
In filesystem i see all the files that need to be there. It’s wordpress installation.
[root@mail ~]# ls -l /home/lamp7/.local/share/containers/storage/volumes/app/_data/
total 268
-rw-r--r--. 1 624285 624285 405 Dec 30 10:08 index.php
-rw-r--r--. 1 624285 624285 19903 Dec 30 10:08 license.txt
-rw-r--r--. 1 624285 624285 7425 Dec 30 10:08 readme.html
drwxr-xr-x. 2 624285 624285 23 Dec 30 10:08 robotics
-rw-r--r--. 1 624285 624285 7387 Dec 30 10:08 wp-activate.php
drwxr-xr-x. 9 624285 624285 4096 Dec 30 10:08 wp-admin
-rw-r--r--. 1 624285 624285 220 Dec 30 10:08 wp-atom.php
-rw-r--r--. 1 624285 624285 351 Dec 30 10:08 wp-blog-header.php
-rw-r--r--. 1 624285 624285 2323 Dec 30 10:08 wp-comments-post.php
-rw-r--r--. 1 624285 624285 238 Dec 30 10:08 wp-commentsrss2.php
-rw-r--r--. 1 624285 624285 3689 Jan 29 12:33 wp-config.php
-rw-r--r--. 1 624285 624285 3336 Dec 30 10:08 wp-config-sample.php
drwxr-xr-x. 9 624285 624285 139 Dec 30 10:09 wp-content
-rw-r--r--. 1 624285 624285 5617 Dec 30 10:08 wp-cron.php
-rw-r--r--. 1 624285 624285 240 Dec 30 10:08 wp-feed.php
drwxr-xr-x. 30 624285 624285 12288 Dec 30 10:12 wp-includes
-rw-r--r--. 1 624285 624285 2502 Dec 30 10:08 wp-links-opml.php
-rw-r--r--. 1 624285 624285 3937 Dec 30 10:08 wp-load.php
-rw-r--r--. 1 624285 624285 51414 Dec 30 10:08 wp-login.php
-rw-r--r--. 1 624285 624285 8727 Dec 30 10:08 wp-mail.php
-rw-r--r--. 1 624285 624285 487 Dec 30 10:08 wp-pass.php
-rw-r--r--. 1 624285 624285 218 Dec 30 10:08 wp-rdf.php
-rw-r--r--. 1 624285 624285 316 Dec 30 10:08 wp-register.php
-rw-r--r--. 1 624285 624285 220 Dec 30 10:08 wp-rss2.php
-rw-r--r--. 1 624285 624285 218 Dec 30 10:08 wp-rss.php
-rw-r--r--. 1 624285 624285 30081 Dec 30 10:08 wp-settings.php
-rw-r--r--. 1 624285 624285 34516 Dec 30 10:08 wp-signup.php
-rw-r--r--. 1 624285 624285 5102 Dec 30 10:08 wp-trackback.php
-rw-r--r--. 1 624285 624285 3205 Dec 30 10:08 xmlrpc.php
[root@mail ~]#
Let’s check the configuration:
runagent -m lamp7 cat environment
Did you follow the Wordpress example from the README?
Did you customize mariadb or the .htaccess file or add a cron job?
I followed the Wordpress example, and it worked for some time.
I didn’t customize mariadb or htaccess, neither added any cron jobs.
[root@mail ~]# runagent -m lamp7 cat environment
CREATE_MYSQL_USER=False
IMAGE_DIGEST=sha256:a4441338daf5ac909c86ee1c136748eddec66798809991c31cf671bc4abfd095
IMAGE_ID=ea450ab5f43bbc2877338d5e8779f0bb8640a1f2eac013ad553c5f9075ec22c4
IMAGE_REOPODIGEST=ghcr.io/stephdl/lamp@sha256:a4441338daf5ac909c86ee1c136748eddec66798809991c31cf671bc4abfd095
IMAGE_URL=ghcr.io/stephdl/lamp:1.2.3
LAMP_SERVER_PHP8_3_IMAGE=ghcr.io/stephdl/lamp-server-php8.3:1.2.3
MODULE_ID=lamp7
MODULE_UUID=024b9254-92f2-466d-b288-204cf774936c
MYSQL_USER_DB=
MYSQL_USER_NAME=
NODE_ID=1
PHPMYADMIN_ENABLED=True
PHP_MAX_EXECUTION_TIME=600
PHP_MEMORY_LIMIT=512M
PHP_POST_MAX_SIZE=100M
PHP_UPLOAD_MAX_FILESIZE=100M
PHP_VERSION=8.3
TCP_PORT=20005
TCP_PORTS=20005
TRAEFIK_HOST=intranet.company.si
TRAEFIK_HTTP2HTTPS=True
[root@mail ~]#
Lamp was moved to the NethForge repository and the current version is 1.2.6.
The NethForge repo can be enabled in Software Center, see Software center — NS8 documentation
Maybe it helps to upgrade to the current version.
I have NethForge enabled, but there still isn’t option to update the application. I disabled and enabled it again, I also disabled stephdl repository and didn’t help.
How could I solve this?
Did you try to reload the repos?
Is it possible to install a new instance of ns8-lamp from NethForge via CLI?
add-module ghcr.io/nethserver/lamp:1.2.6
I installed new instance now via cli. Is there a way to recover database from old instance? I haven’t deleted it yet.
It should be possible to export/import the DB via phpmyadmin or CLI, see Lamp — NS8 documentation
Whatever I try running seems, there are no containers.
Last login: Fri Mar 13 08:04:47 2026 from 192.168.11.3
[root@mail ~]# runagent -m lamp7 podman exec -ti apache2-app mysql
Error: no container with name or ID "apache2-app" found: no such container
[root@mail ~]# runagent -m lamp7 podman exec -ti
Error: exec requires the name or ID of a container or the --latest or --cidfile flag
[root@mail ~]# runagent -m lamp7 podman exec -ti mysql
Error: no container with name or ID "mysql" found: no such container
[root@mail ~]#
Sorry, I always forget that there are no running containers…
The mysql files are located in /home/lamp7/.local/share/containers/storage/volumes/mysql/_data/
I think it’s a permission issue due to copying the database.
The copied database dir (in this example it’s named database) has the wrong owner: (root instead of the number)
# ls -l /home/lamp2/.local/share/containers/storage/volumes/mysql/_data/
total 123324
-rw-rw----. 1 1018502 1018502 417792 Mar 13 13:37 aria_log.00000001
-rw-rw----. 1 1018502 1018502 52 Mar 13 13:37 aria_log_control
-rw-rw----. 1 root root 9 Mar 13 13:38 database
-rw-rw----. 1 1018502 1018502 1297 Mar 13 13:37 ib_buffer_pool
-rw-rw----. 1 1018502 1018502 12582912 Mar 13 13:33 ibdata1
-rw-rw----. 1 1018502 1018502 100663296 Mar 13 13:33 ib_logfile0
-rw-rw----. 1 1018502 1018502 12582912 Mar 13 13:38 ibtmp1
...
Please fix owner and group to the number instead of root:
chown -R 1018502:1018502 /home/lamp2/.local/share/containers/storage/volumes/mysql/_data/database
Now the configuration of the app should work again.