After fiber provider changed Nextcloud and Mattermost not work anymore

Greetings to the whole community, I wanted to submit a problem that has been bothering me for days, ever since I changed the fibre manager.
The router has been changed and the ports related to the exposed services that can be reached from the outside have been opened.
The migration was successful for most of the services, the only two that are not detected are nextcloud and mattermost which, although active and started correctly (checks from the command line of the services), are no longer able to display the access interfaces or any maintenance interfaces.
What could this be?

Thanks to those who will help me and a big hello to all…

Anyone can help me? …perhaps with some suggestions or tests to do.

Thanks in advance…

I assume you’ve checked that the exposed ports (80, 443…) are reachable from outside (https://canyouseeme.org/), no CG-NAT, and that Mattermost and Nextcloud are not reachable neither form LAN nor WAN.

When reaching for those web services does anything show up (blank page, warning, error)?
How do you access those web services (FQDN/nextcloud… or through a subdomain)?
Have you checked httpd*, nextcloud, /opt/mattermost/logs/*, /var/log/messages logs for any clue?

Have you tried to restart httpd web server?

For Nextcloud, check these services are running…:

systemctl -l status php80-php-fpm rh-mariadb105-mariadb@nextcloud.service
2 Likes

Yes…checked all ports and exposed all ports needed.

From LAN services are not active too.

Yes I have verified with that command you wrote before that all servies are active and running.

This is a response:

â—Ź rh-mariadb105-mariadb@nextcloud.service - MariaDB 10.5 database server
Loaded: loaded (/etc/systemd/system/rh-mariadb105-mariadb@.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/rh-mariadb105-mariadb@nextcloud.service.d
└─nethserver.conf
Active: active (running) since Mon 2023-06-05 10:53:27 CEST; 3 days ago
Docs: man:mysqld(8)
systemd - MariaDB Knowledge Base
Main PID: 6028 (mysqld)
Status: “Taking your SQL requests now…”
CGroup: /system.slice/system-rh\x2dmariadb105\x2dmariadb.slice/rh-mariadb105-mariadb@nextcloud.service
└─6028 /opt/rh/rh-mariadb105/root/usr/libexec/mysqld --defaults-group-suffix=.nextcloud --basedir=/opt/rh/rh-mariadb105/root/usr

or

[root@pdc ~]# systemctl -l status php80-php-fpm rh-mariadb105-mariadb@nextcloud.service
â—Ź php80-php-fpm.service - The PHP FastCGI Process Manager
Loaded: loaded (/usr/lib/systemd/system/php80-php-fpm.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/php80-php-fpm.service.d
└─nethserver-remi-php80-php-fpm.conf
Active: active (running) since Mon 2023-06-05 10:53:27 CEST; 3 days ago
Main PID: 6301 (php-fpm)
Status: “Processes active: 0, idle: 10, Requests: 0, slow: 0, Traffic: 0req/sec”
CGroup: /system.slice/php80-php-fpm.service
├─6301 php-fpm: master process (/etc/opt/remi/php80/php-fpm.conf
├─6302 php-fpm: pool nethserver-nextcloud
├─6303 php-fpm: pool nethserver-nextcloud
├─6304 php-fpm: pool nethserver-nextcloud
├─6305 php-fpm: pool nethserver-nextcloud
├─6306 php-fpm: pool nethserver-nextcloud
├─6307 php-fpm: pool www
├─6308 php-fpm: pool www
├─6309 php-fpm: pool www
├─6310 php-fpm: pool www
└─6311 php-fpm: pool www

There’s not much info to work on.

If the problem lies on nethserver, for nextcloud you can try:

signal-event nethserver-nextcloud-update

Jot down the time and from the same LAN try to access Nextcloud (IP/nextcloud and FQDN/nextcloud, if not using a virtual host).

(Optionaly, you can also run the following command (using the correct IP) from a LAN computer having curl:

 curl -kIL https://LAN_SERVER_IP/nextcloud/

)

Then check for anything relevant in the logs during that period of time:
/var/log/messages
/var/log/httpd/ssl_error_log
/var/log/httpd/error_log
/var/log/httpd/ssl_access_log
/var/log/httpd/access_log
…

Also let us know what was shown on the web browser (error code, blank page, etc.), the outcome of the curl command and the relevant parts of logs.

1 Like