Problem nginx, server portal not showing, external hard drive not working

What type of hardware are you using: Raspberry Pi 3, 4+
What YunoHost version are you running: latest a month ago
How are you able to access your server: Direct access via physical keyboard/screen
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: I guess current off for a long period when I wasn’t home

Describe your issue

I got a screen plug and the rasp4B doesn’t launch. It went directly into maintenance mode asking for root password or ctrl+D.

When I press the latest, it then reboot in maintenant.

Is the root password, the same than the one to go into SUDO or SU ? (doubting about myself ^^')

And then I’ve seen people sayning need to change the boot option.

But I run on SD, and my guess would be that SD is dying, is that possible ? Is there a way to change that or recover from the SD ? ^^’

Thank you !

Share relevant logs or error messages

[OK] mount boot.mount - /boot
[OK] reach target network.target - Network is online (skipping lines on purpose)
[OK] started rpc-statd-notified.service - notify NFS peers of a restart.
You are in emergency mode.
To boot in default mode, use password root …

hello,
Little update. The problem I had was… It’s a qwerty and not Azerty !!! That’s why I couldn’t write my password in emergency mode…

Anyway, this is solved. I could enter the server by commenting the lines of my external drive in /etc/fstab, I’m via ssh now. I ran all the upgrade of the system today.
but still no access to my portal, I then checked and run a diagnosis. Lot of services doesn’t work, the only 2 which can’t be restarted are “nginx” and “redis-server”. It looks like it can’t write a file which should be on my external drive.

I then took the drive off, plugged in my macbook and looking what’s happend. It’s not mounting properlly, can’t see it in the finder, but find it in the disk manager, I see it’s full full, no one Byte left.

It’s a 4TB, I have /home, /var/mail & /var/log on it and the server was using 250GB before the problem.

Well, I don’t really know where to look for now.
I get a kind of line :


"ssl_stapling" ignored, no OCSP responder URL in the certificate "/etc/yunohost/certs/myURL/crt.pem
[emerg] 1183#1183: mkdir() "/home/yunohost.app/my_webdav/tmp/" failed (2: No such file or directory)
Jul 31 06:15:55 nginx[1183]: nginx: configuration file /etc/nginx/nginx.conf test failed

some help would be cool !

I find this on an other post, but the fix didn’t helped in my case :

[1] 11366
proc            /proc           proc    defaults          0       0
PARTUUID=a811d99a-01  /boot           vfat    defaults          0       2
PARTUUID=a811d99a-02  /               ext4    defaults,noatime  0       1
#UUID="b1cfe83c-16d4-4508-80c5-0a302b376e7b" /mnt/hdd ext4 defaults,nofail 0 0
#/mnt/hdd/home/ /home/ none defaults,bind 0 0
#/mnt/hdd/var/mail /var/mail none defaults,bind 0 0
#/mnt/hdd/var/log /var/log none defaults,bind 0 0
root@florentcurk:/# total 96984
150339 drwxr-xr-x  9 root root         4096 Jul 31 06:15 .
    29 drwxr-xr-x 13 root root         4096 May 14 08:43 ..
168371 -rw-r--r--  1 root root         4062 Jul 31 06:16 alternatives.log
367160 drwxr-xr-x  2 root root         4096 Jul 30 19:45 apt
168367 -rw-r-----  1 root adm       2572496 Jul 31 06:54 auth.log
141468 -rw-r-----  1 root adm          1232 Jul  6 17:19 auth.log.1
126059 -rw-rw----  1 root utmp      1441600 Jul 31 06:35 btmp
149590 -rw-r-----  1 root adm        190630 Jul 31 06:54 cron.log
168369 -rw-r-----  1 root adm        133984 Jul 30 23:59 cron.log.1
168403 -rw-r--r--  1 root root        74873 Jul 30 20:03 dpkg.log
149544 -rw-------  1 root root         1900 Jul 31 06:16 fail2ban.log
168366 -rw-r-----  1 root adm         55480 Jul 31 06:17 kern.log
141466 -rw-r-----  1 root adm         50920 Jul 30 19:28 kern.log.1
126060 -rw-rw-r--  1 root utmp     11021856 Jul 31 06:17 lastlog
168365 -rw-r-----  1 root adm      22905073 Jul 31 06:54 mail.log
141471 -rw-r-----  1 root adm            94 Jul 30 19:28 mail.log.1
367151 drwxr-xr-x  3 root root         4096 Jul 31 05:11 nginx
168372 -rw-------  1 root root        10876 Jul 31 06:16 openvpn-client.log
168373 -rw-------  1 root root          186 Jul 31 06:54 openvpn-client.status
149589 -rw-------  1 root root          535 Jul 31 06:23 php8.3-fpm.log
168370 -rw-------  1 root root          751 Jul 30 20:03 php8.3-fpm.log.1
245048 drwxrwxr-t  2 root postgres     4096 Jul 30 19:28 postgresql
245049 drwx------  2 root root         4096 Jul  6 15:17 private
126057 lrwxrwxrwx  1 root root           39 Jul  6 15:17 README -> ../../usr/share/doc/systemd/README.logs
547205 drwxr-x---  2 root adm          4096 Jul 11 09:21 samba
168364 -rw-r-----  1 root adm      71594389 Jul 31 06:54 syslog
141465 -rw-r-----  1 root adm        133426 Jul 30 19:28 syslog.1
367140 drwxr-xr-x  2 root root         4096 Jul 30 19:39 unattended-upgrades
168368 -rw-r-----  1 root adm          2173 Jul 31 06:25 user.log
141467 -rw-r-----  1 root adm          1033 Jul  6 17:19 user.log.1
126058 -rw-rw-r--  1 root utmp         8000 Jul 31 06:17 wtmp
141469 -rw-------  1 root root         1265 Jul 31 06:16 ynh-vpnclient.log
367139 drwxr-x---  3 root root         4096 Jul 31 00:00 yunohost

Ideas ? :smiley:
Thank you all !