NextCloud offline after URL & domain change β€” ideas?

:uk:/:us: Message template (english)

My YunoHost server

Hardware: hardware i run, in lxc
YunoHost version: 12.6.3 ?
I have access to my server : ssh and console/pty
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : yes.
If yes, please explain: Domain and url adjustment for nextcloud
If your request is related to an app, specify its name and version: nextcloud 20.0.7~ynh1

Description of my issue

I’m trying to use the app normally. After url and domain changes, i only receive 502s back from the app. Where do I look first? Where do the url and domain configurations live in one cloud. Nginx conf.d’s? Php files or config for nextcloud?

Self reminder for later…

Before posting, please :

Ok, error logs for the base domain show
2023/02/09 22:06:06 [crit] 22545#22545: *7825 connect() to unix:/var/run/php/php7.3-fpm-nextcloud.sock failed (2: No such file or directory) while connecting to upstream, client: [client-ip], server: yuno.[domain.tld], request: "GET /nextcloud/apps/photos/service-worker.js HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm-nextcloud.sock:", host: "yuno.[domain.tld]", referrer: "https://yuno.[domain.tld]/nextcloud/apps/>

It may be that the yunohost major version upgrade broke this, forcibly changing the php dependency.

Next question, how do I change the php version in use. Checking first in nginx config.

root@yuno:~# grep -r php7.3 /etc/nginx/
/etc/nginx/conf.d/yuno.[domain.tld].d/nextcloud.conf:    fastcgi_pass unix:/var/run/php/php7.3-fpm-nextcloud.sock;
root@yuno:~# fdfind nextcloud /var/run/php/
/var/run/php/php7.4-fpm-nextcloud.sock
$ sed -i 's/php7.3/php7.4/' $(grep -l -r php7.3 /etc/nginx/)
$ nginx -t && nginx -s reload

To share my whole debugging process for others.

Note, I’ve manually installed fdfind (from fd-find package), GitHub - sharkdp/fd: A simple, fast and user-friendly alternative to 'find'.

  502  fdfind error /var/log/nginx/
  503  fdfind error /var/log/nginx/ -e log
  504  fdfind error /var/log/nginx/ -e log
  505  fdfind error /var/log/ -e log
  506  less /var/log/nginx/{cloud.[domain.tld]-error.log,yuno.[domain.tld]-error.log,error.log}
  507  ls /var/run/php/php7.4-fpm # /var/run/php/php7.3-fpm-nextcloud.sock
  508  fg
  509  grep -r php7.3 /etc/nginx/
  510  fdfind nextcloud /var/run/php/
  511  grep -r php7.3 /etc/nginx/ -l
  512  vim `grep -r php7.3 /etc/nginx/ -l`
  513  nginx -t
  514  nginx -s reload

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