Can´t restore any Apps after update to Debian 11

Since i had problems last time by updating my VPS from Debian 9 to 10 and my Hosting provider told me that I have to install Debian new i tried this time the update with a complete new installation - after backing up all Yunohost apps.

NOW after updating the server to Debian 11 i can´t restore backups of all my apps.
I could restore Yunohost and the system files - that worked - but NO apps.

here is an example of the error log:
https://paste.yunohost.org/raw/asilikabut

I need help what could i try? THANKS

Just tried to install a app not using the backup - this does also not work

https://paste.yunohost.org/raw/sacitayare

Well nginx is broken because it’s not able to find /usr/share/yunohost/other/ffdhe2048.pem which indeed doesn’t exists anymore because it got moved elsewhere

Can you try to yunohost tools regen-conf nginx

Thanks @Aleks

# yunohost tools regen-conf nginx
Warning: The configuration file '/etc/nginx/conf.d/security.conf.inc' has been manually modified and will not be updated
Warning: The configuration file '/etc/nginx/conf.d/yunohost_panel.conf.inc' has been manually modified and will not be updated
nginx: 
  applied: 
  pending: 
    /etc/nginx/conf.d/security.conf.inc: 
      status: modified
    /etc/nginx/conf.d/yunohost_panel.conf.inc: 
      status: modified

Then let’s force the upgrade with yunohost tools regen-conf nginx --force

1 Like

@Aleks Thanks - that did the trick - backups can now be reinstalled :slight_smile:
but
after reinstall most apps just give me a “502 Bad Gateway nginx” page.
if i look into the nginx error log i see e.g. this:

/var/log/nginx/zyx.tld-error.log

coroutine 0:
	[C]: in function 'lower'
	/usr/share/ssowat/helpers.lua:1008: in function </usr/share/ssowat/helpers.lua:1001>, client: 91.204.46.37, server: xyz.tld, request: "POST /yunohost/sso/ HTTP/1.1", host: "xyz.tld", referrer: "https://xyz.tld/yunohost/sso/?r=aHR0cHM6Ly9pbS5hbGxtZW5kZW5ldHouZGUvaW5ib3g="
2022/08/11 17:00:49 [error] 224760#224760: *15119 [lua] helpers.lua:380: authenticate(): Connection failed for: marcó san 90, client: 187.248.44.146, server: xyz.tld, request: "POST /yunohost/sso/?r=aHR0cHM6Ly9taWNyb2Jsb2cuaW0uYWxsbWVuZGVuZXR6LmRlL0RpdmVydGlkYU5hbmN5 HTTP/2.0", host: "xyz.tld", referrer: "https://xyz.tld/yunohost/sso/?r=aHR0cHM6Ly9taWNyb2Jsb2cuaW0uYWxsbWVuZGVuZXR6LmRlL0RpdmVydGlkYU5hbmN5"
2022/08/11 17:01:34 [error] 224760#224760: *15119 [lua] helpers.lua:380: authenticate(): Connection failed for: marcó san 90, client: 187.248.44.146, server: xyz.tld, request: "POST /yunohost/sso/?r=aHR0cHM6Ly9taWNyb2Jsb2cuaW0uYWxsbWVuZGVuZXR6LmRlL0RpdmVydGlkYU5hbmN5 HTTP/2.0", host: "xyz.tld", referrer: "https://xyz.tld/yunohost/sso/?r=aHR0cHM6Ly9taWNyb2Jsb2cuaW0uYWxsbWVuZGVuZXR6LmRlL0RpdmVydGlkYU5hbmN5"
2022/08/11 17:01:43 [crit] 224762#224762: *15220 connect() to unix:/var/run/php/php7.3-fpm-wordpress.sock failed (2: No such file or directory) while connecting to upstream, client: 217.87.165.153, server: xyz.tld, request: "GET /apple-touch-icon.png HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm-wordpress.sock:", host: "xyz.tld"
2022/08/11 17:01:43 [crit] 224762#224762: *15220 connect() to unix:/var/run/php/php7.3-fpm-wordpress.sock failed (2: No such file or directory) while connecting to upstream, client: 217.87.165.153, server: xyz.tld, request: "GET /favicon.ico HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm-wordpress.sock:", host: "xyz.tld"
2022/08/11 17:01:55 [crit] 224762#224762: *15220 connect() to unix:/var/run/php/php7.3-fpm-wordpress.sock failed (2: No such file or directory) while connecting to upstream, client: 217.87.165.153, server: xyz.tld, request: "GET /apple-touch-icon.png HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm-wordpress.sock:", host: "xyz.tld"
2022/08/11 17:01:55 [crit] 224762#224762: *15220 connect() to unix:/var/run/php/php7.3-fpm-wordpress.sock failed (2: No such file or directory) while connecting to upstream, client: 217.87.165.153, server: xyz.tld, request: "GET /favicon.ico HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm-wordpress.sock:", host: "xyz.tld"
2022/08/11 17:02:04 [crit] 224760#224760: *15244 connect() to unix:/var/run/php/php7.3-fpm-wordpress.sock failed (2: No such file or directory) while connecting to upstream, client: 62.204.144.186, server: xyz.tld, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm-wordpress.sock:", host: "xyz.tld"
2022/08/11 17:02:04 [error] 224760#224760: *15244 open() "/var/www/wordpress/ynh_portal.js" failed (2: No such file or directory), client: 62.204.144.186, server: xyz.tld, request: "GET /ynh_portal.js HTTP/2.0", host: "xyz.tld", referrer: "https://xyz.tld/"
2022/08/11 17:02:04 [error] 224760#224760: *15244 open() "/var/www/wordpress/ynh_overlay.css" failed (2: No such file or directory), client: 62.204.144.186, server: xyz.tld, request: "GET /ynh_overlay.css HTTP/2.0", host: "xyz.tld", referrer: "https://xyz.tld/"
2022/08/11 17:02:04 [error] 224760#224760: *15244 open() "/var/www/wordpress/ynhtheme/custom_portal.js" failed (2: No such file or directory), client: 62.204.144.186, server: xyz.tld, request: "GET /ynhtheme/custom_portal.js HTTP/2.0", host: "xyz.tld", referrer: "https://xyz.tld/"
2022/08/11 17:02:04 [error] 224760#224760: *15244 open() "/var/www/wordpress/ynhtheme/custom_overlay.css" failed (2: No such file or directory), client: 62.204.144.186, server: xyz.tld, request: "GET /ynhtheme/custom_overlay.css HTTP/2.0", host: "xyz.tld", referrer: "https://xyz.tld/"
2022/08/11 17:02:04 [crit] 224760#224760: *15244 connect() to unix:/var/run/php/php7.3-fpm-wordpress.sock failed (2: No such file or directory) while connecting to upstream, client: 62.204.144.186, server: xyz.tld, request: "GET /favicon.ico HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm-wordpress.sock:", host: "xyz.tld", referrer: "https://xyz.tld/"
2022/08/11 17:02:12 [error] 224760#224760: *15259 lua entry thread aborted: runtime error: /usr/share/ssowat/helpers.lua:1008: bad argument #1 to 'lower' (string expected, got nil)
stack traceback:
coroutine 0:
	[C]: in function 'lower'
	/usr/share/ssowat/helpers.lua:1008: in function </usr/share/ssowat/helpers.lua:1001>, client: 138.201.246.50, server: xyz.tld, request: "POST /yunohost/sso/ HTTP/1.1", host: "xyz.tld", referrer: "https://xyz.tld/yunohost/sso/?r=aHR0cHM6Ly9pbS5hbGxtZW5kZW5ldHouZGUvaW5ib3g="
2022/08/11 17:02:12 [error] 224760#224760: *15260 lua entry thread aborted: runtime error: /usr/share/ssowat/helpers.lua:1008: bad argument #1 to 'lower' (string expected, got nil)
stack traceback:
coroutine 0:
	[C]: in function 'lower'
	/usr/share/ssowat/helpers.lua:1008: in function </usr/share/ssowat/helpers.lua:1001>, client: 138.201.246.50, server: xyz.tld, request: "POST /yunohost/sso/ HTTP/1.1", host: "xyz.tld", referrer: "https://xyz.tld/yunohost/sso/?r=aHR0cHM6Ly9pbS5hbGxtZW5kZW5ldHouZGUvaW5ib3g="
2022/08/11 17:02:13 [error] 224760#224760: *15262 lua entry thread aborted: runtime error: /usr/share/ssowat/helpers.lua:1008: bad argument #1 to 'lower' (string expected, got nil)
stack traceback:
coroutine 0:
	[C]: in function 'lower'
	/usr/share/ssowat/helpers.lua:1008: in function </usr/share/ssowat/helpers.lua:1001>, client: 138.201.246.50, server: xyz.tld, request: "POST /yunohost/sso/ HTTP/1.1", host: "xyz.tld", referrer: "https://xyz.tld/yunohost/sso/?r=aHR0cHM6Ly9pbS5hbGxtZW5kZW5ldHouZGUvaW5ib3g="
2022/08/11 17:02:13 [error] 224760#224760: *15264 lua entry thread aborted: runtime error: /usr/share/ssowat/helpers.lua:1008: bad argument #1 to 'lower' (string expected, got nil)
stack traceback:
coroutine 0:
	[C]: in function 'lower'
	/usr/share/ssowat/helpers.lua:1008: in function </usr/share/ssowat/helpers.lua:1001>, client: 138.201.246.50, server: xyz.tld, request: "POST /yunohost/sso/ HTTP/1.1", host: "xyz.tld", referrer: "https://xyz.tld/yunohost/sso/?r=aHR0cHM6Ly9pbS5hbGxtZW5kZW5ldHouZGUvaW5ib3g="
2022/08/11 17:02:40 [error] 224760#224760: *15119 [lua] helpers.lua:380: authenticate(): Connection failed for: s19anmarco90@gmail.com, client: 187.248.44.146, server: xyz.tld, request: "POST /yunohost/sso/?r=aHR0cHM6Ly9taWNyb2Jsb2cuaW0uYWxsbWVuZGVuZXR6LmRlL0RpdmVydGlkYU5hbmN5 HTTP/2.0", host: "xyz.tld", referrer: "https://xyz.tld/yunohost/sso/?r=aHR0cHM6Ly9taWNyb2Jsb2cuaW0uYWxsbWVuZGVuZXR6LmRlL0RpdmVydGlkYU5hbmN5"
2022/08/11 17:03:29 [error] 224760#224760: *15119 [lua] helpers.lua:380: authenticate(): Connection failed for: marcó san 90, client: 187.248.44.146, server: xyz.tld, request: "POST /yunohost/sso/?r=aHR0cHM6Ly9taWNyb2Jsb2cuaW0uYWxsbWVuZGVuZXR6LmRlL0RpdmVydGlkYU5hbmN5 HTTP/2.0", host: "xyz.tld", referrer: "https://xyz.tld/yunohost/sso/?r=aHR0cHM6Ly9taWNyb2Jsb2cuaW0uYWxsbWVuZGVuZXR6LmRlL0RpdmVydGlkYU5hbmN5"
2022/08/11 17:03:30 [crit] 224760#224760: *15303 connect() to unix:/var/run/php/php7.3-fpm-wordpress.sock failed (2: No such file or directory) while connecting to upstream, client: 170.39.215.215, server: xyz.tld, request: "GET /.well-known/nodeinfo HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm-wordpress.sock:", host: "xyz.tld"
2022/08/11 17:03:31 [crit] 224760#224760: *15307 connect() to unix:/var/run/php/php7.3-fpm-wordpress.sock failed (2: No such file or directory) while connecting to upstream, client: 170.39.215.215, server: xyz.tld, request: "GET /nodeinfo/1.0 HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm-wordpress.sock:", host: "xyz.tld"
2022/08/11 17:03:36 [error] 224760#224760: *15310 lua entry thread aborted: runtime error: /usr/share/ssowat/helpers.lua:1008: bad argument #1 to 'lower' (string expected, got nil)
stack traceback:
coroutine 0:
	[C]: in function 'lower'
	/usr/share/ssowat/helpers.lua:1008: in function </usr/share/ssowat/helpers.lua:1001>, client: 185.26.156.246, server: xyz.tld, request: "POST /yunohost/sso/ HTTP/1.1", host: "xyz.tld", referrer: "https://xyz.tld/yunohost/sso/?r=aHR0cHM6Ly9pbS5hbGxtZW5kZW5ldHouZGUvaW5ib3g="
2022/08/11 17:04:15 [error] 224760#224760: *15119 [lua] helpers.lua:380: authenticate(): Connection failed for: marcosan90, client: 187.248.44.146, server: xyz.tld, request: "POST /yunohost/sso/?r=aHR0cHM6Ly9taWNyb2Jsb2cuaW0uYWxsbWVuZGVuZXR6LmRlL0RpdmVydGlkYU5hbmN5 HTTP/2.0", host: "xyz.tld", referrer: "https://xyz.tld/yunohost/sso/?r=aHR0cHM6Ly9taWNyb2Jsb2cuaW0uYWxsbWVuZGVuZXR6LmRlL0RpdmVydGlkYU5hbmN5"
2022/08/11 17:04:24 [error] 224760#224760: *15340 lua entry thread aborted: runtime error: /usr/share/ssowat/helpers.lua:1008: bad argument #1 to 'lower' (string expected, got nil)
stack traceback:
coroutine 0:
	[C]: in function 'lower'
	/usr/share/ssowat/helpers.lua:1008: in function </usr/share/ssowat/helpers.lua:1001>, client: 91.204.46.37, server: xyz.tld, request: "POST /yunohost/sso/ HTTP/1.1", host: "xyz.tld", referrer: "https://xyz.tld/yunohost/sso/?r=aHR0cHM6Ly9pbS5hbGxtZW5kZW5ldHouZGUvaW5ib3g="

invidious does not start
https://paste.yunohost.org/raw/zoquyegako

/var/log/nginx/error.log

find: '/usr/share/ssowat/portal/assets/themes/dark': No such file or directory

Can you go in the webadmin, in the Services section and see if any service is down

except ## invidious all Services are running

Then what “most apps” for example give a 502 error

i have not reinstalling all apps jet but so fare

bibliogram, Castopod, invidious, wordpress are not running

ttrss and CryptPad are up

Hmokay not sure about why bibliogram and invidious would be down if their service are up

Regarding castopod and wordpress, let’s see that grep -nr 'php*.sock' /etc/php returns

502 error = rss-bridge, roundcube, phpmyadmin, hubzilla

seam to work = nitter, Scuttlebutt Room, shellinabox

__

php 7,3 is not installed on debian 11 - can this be the reason ?

root@vmd:~# grep -nr 'php*.sock' /etc/php
root@vmd:~# 

My bad, I meant:

grep -nr 'php.*sock' /etc/php

(swapped . and *)

root@vmd:~# grep -nr 'php.*sock' /etc/php
/etc/php/7.4/fpm/pool.d/phpmyadmin.conf:36:listen = /var/run/php/php7.4-fpm-phpmyadmin.sock
/etc/php/7.4/fpm/pool.d/rss-bridge.conf:9:listen = /var/run/php/php7.4-fpm-rss-bridge.sock
/etc/php/7.4/fpm/pool.d/roundcube.conf:9:listen = /var/run/php/php7.4-fpm-roundcube.sock
/etc/php/7.4/fpm/pool.d/wordpress.conf:9:listen = /var/run/php/php7.4-fpm-wordpress.sock
/etc/php/7.4/fpm/pool.d/hubzilla.conf:36:listen = /var/run/php/php7.4-fpm-hubzilla.sock
/etc/php/7.4/fpm/pool.d/www.conf:36:listen = /run/php/php7.4-fpm.sock
/etc/php/7.4/fpm/php.ini:873:; http://php.net/default-socket-timeout
/etc/php/7.4/fpm/php.ini:1164:; http://php.net/mysqli.default-socket
/etc/php/7.4/cli/php.ini:873:; http://php.net/default-socket-timeout
/etc/php/7.4/cli/php.ini:1164:; http://php.net/mysqli.default-socket
/etc/php/8.0/fpm/pool.d/ttrss.conf:36:listen = /var/run/php/php8.0-fpm-ttrss.sock
/etc/php/8.0/fpm/pool.d/castopod.conf:9:listen = /var/run/php/php8.0-fpm-castopod.sock
/etc/php/8.0/fpm/pool.d/www.conf:36:listen = /run/php/php8.0-fpm.sock
/etc/php/8.0/fpm/php.ini:882:; http://php.net/default-socket-timeout
/etc/php/8.0/fpm/php.ini:1173:; http://php.net/mysqli.default-socket
/etc/php/8.0/cli/php.ini:882:; http://php.net/default-socket-timeout
/etc/php/8.0/cli/php.ini:1173:; http://php.net/mysqli.default-socket

Ah, and what about

grep -nr 'php.*sock' /etc/nginx

if i do a fresh installation of invidious - invidious is running fine

root@vmd:~# grep -nr 'php.*sock' /etc/nginx
/etc/nginx/conf.d/pics.xyz.tld.d/ttrss.conf:15:    fastcgi_pass unix:/var/run/php/php8.0-fpm-ttrss.sock;
/etc/nginx/conf.d/podcast.xyz.tld.d/castopod.conf:13:    fastcgi_pass unix:/var/run/php/php8.0-fpm-castopod.sock;
/etc/nginx/conf.d/rss.xyz.tld.d/rss-bridge.conf:15:    fastcgi_pass unix:/var/run/php/php7.3-fpm-rss-bridge.sock;
/etc/nginx/conf.d/xyz.tld.d/hubzilla.conf:26:    fastcgi_pass unix:/var/run/php/php7.3-fpm-hubzilla.sock;
/etc/nginx/conf.d/xyz.tld.d/wordpress.conf:27:           fastcgi_pass unix:/var/run/php/php7.3-fpm-wordpress.sock;
/etc/nginx/conf.d/mail.xyz.tld.d/roundcube.conf:15:    fastcgi_pass unix:/var/run/php/php7.3-fpm-roundcube.sock;
/etc/nginx/conf.d/admin.xyz.tld.d/phpmyadmin.conf:14:    fastcgi_pass unix:/var/run/php/php7.3-fpm-phpmyadmin.sock;
/etc/nginx/sites-available/default:59:	#	# With php-fpm (or other unix sockets):
/etc/nginx/sites-available/default:60:	#	fastcgi_pass unix:/run/php/php7.4-fpm.sock;
/etc/nginx/sites-available/default:61:	#	# With php-cgi (or other tcp sockets):

Well then let’s sed -i 's/php7.3-fpm/php7.4-fpm/g' /etc/nginx/*/*.conf

And reload nginx

Should fix a bunch of apps

root@vmd:~# sed -i 's/php7.3-fpm/php7.4-fpm/g' /etc/nginx/*/*.conf
root@vmd:~# 

And restart nginx - but the problems are the same … :frowning: