Can´t connect anymore to YH Server

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 11.?
How are you able to access your server: SSH

Describe your issue

I’m still on YH 11… i was logged in to the YH webadmin and was looking for updates - i got an errror massage , than i thought it might be time to do the migration to YH 12 … so i was trying to backup all my apps… while i was doing that suddenly the server was not anymore reachable over the domain.

i restarted the VPS but that did not help… all my domains and also the YH webadmin interface is not anymore reachable - it just does not connect. Connecting by IP
https://179.18.xxx.xx/yunohost/admin/ does also not work

I can connect by FTP and SSH so

What is going on here? I hope someone can help… THANKS

Share relevant logs or error messages

First step is to run the diagnosis and get its output :

sudo yunohost diagnosis run
then
sudo yunohost diagnosis show

Something will help understand what is wrong

1 Like
 sudo yunohost diagnosis show
sudo: ldap_sasl_bind_s(): Can't contact LDAP server
Traceback (most recent call last):
  File "/usr/lib/python3.9/logging/config.py", line 564, in configure
    handler = self.configure_handler(handlers[name])
  File "/usr/lib/python3.9/logging/config.py", line 745, in configure_handler
    result = factory(**kwargs)
  File "/usr/lib/python3.9/logging/__init__.py", line 1142, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python3.9/logging/__init__.py", line 1171, in _open
    return open(self.baseFilename, self.mode, encoding=self.encoding,
OSError: [Errno 30] Read-only file system: '/var/log/yunohost/yunohost-cli.log'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/bin/yunohost", line 77, in <module>
    yunohost.cli(
  File "/usr/lib/python3/dist-packages/yunohost/__init__.py", line 35, in cli
    init_logging(interface="cli", debug=debug, quiet=quiet)
  File "/usr/lib/python3/dist-packages/yunohost/__init__.py", line 168, in init_logging
    configure_logging(logging_configuration)
  File "/usr/lib/python3/dist-packages/moulinette/utils/log.py", line 67, in configure_logging
    dictConfig(logging_config)
  File "/usr/lib/python3.9/logging/config.py", line 809, in dictConfig
    dictConfigClass(config).configure()
  File "/usr/lib/python3.9/logging/config.py", line 571, in configure
    raise ValueError('Unable to configure handler '
ValueError: Unable to configure handler 'file'

Ok, so let’s understand why :

  • List all mounts : sudo mount and df -h
  • Check permissions : sudo ls -lha /var/log/yunohost
  • Try rebooting and rerun the diagnosis

Thanks for your help

$ sudo mount and df -h
sudo: ldap_sasl_bind_s(): Can't contact LDAP server
$ sudo ls -lha /var/log/yunohost
sudo: ldap_sasl_bind_s(): Can't contact LDAP server
total 9.5M

Here more:

$ apt update
Ign:1 http://security.debian.org/debian-security bullseye-security InRelease
Err:2 http://security.debian.org/debian-security bullseye-security Release                         
  Could not open file /var/lib/apt/lists/partial/security.debian.org_debian-security_dists_bullseye-security_Release - open (30: Read-only file system) [IP: 151.101.38.132 80]
Hit:3 https://packages.sury.org/php bullseye InRelease                                             
Err:3 https://packages.sury.org/php bullseye InRelease                   
  Couldn't create temporary file /tmp/apt.conf.xG4RkS for passing config to apt-key
Hit:4 https://forge.yunohost.org/debian bullseye InRelease
Err:4 https://forge.yunohost.org/debian bullseye InRelease
  Couldn't create temporary file /tmp/apt.conf.d1xOQm for passing config to apt-key
Hit:5 http://download.opensuse.org/repositories/devel:/languages:/crystal/Debian_11  InRelease
Err:5 http://download.opensuse.org/repositories/devel:/languages:/crystal/Debian_11  InRelease
  Couldn't create temporary file /tmp/apt.conf.Y4K5G0 for passing config to apt-key
Hit:6 http://asi-fs-d.contabo.net/debian bullseye InRelease
Ign:7 http://asi-fs-d.contabo.net/debian bullseye-updates InRelease
Err:6 http://asi-fs-d.contabo.net/debian bullseye InRelease
  Couldn't create temporary file /tmp/apt.conf.QaNB25 for passing config to apt-key
Err:8 http://asi-fs-d.contabo.net/debian bullseye-updates Release
  Could not open file /var/lib/apt/lists/partial/asi-fs-d.contabo.net_debian_dists_bullseye-updates_Release - open (30: Read-only file system) [IP: 213.136.72.159 80]
Reading package lists... Done                           
W: chown to _apt:root of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (30: Read-only file system)
W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (30: Read-only file system)
W: chown to _apt:root of directory /var/lib/apt/lists/auxfiles failed - SetupAPTPartialDirectory (30: Read-only file system)
W: chmod 0755 of directory /var/lib/apt/lists/auxfiles failed - SetupAPTPartialDirectory (30: Read-only file system)
W: Not using locking for read only lock file /var/lib/apt/lists/lock
W: Problem unlinking the file /var/lib/apt/lists/partial/.apt-acquire-privs-test.nbxUtU - IsAccessibleBySandboxUser (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/.apt-acquire-privs-test.rk1FcR - IsAccessibleBySandboxUser (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/.apt-acquire-privs-test.fpuWWT - IsAccessibleBySandboxUser (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/.apt-acquire-privs-test.vifseQ - IsAccessibleBySandboxUser (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/.apt-acquire-privs-test.a5dbIT - IsAccessibleBySandboxUser (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/.apt-acquire-privs-test.sjZ0TP - IsAccessibleBySandboxUser (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/security.debian.org_debian-security_dists_bullseye-security_InRelease - PrepareFiles (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/security.debian.org_debian-security_dists_bullseye-security_Release - PrepareFiles (30: Read-only file system)
E: The repository 'http://security.debian.org/debian-security bullseye-security Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Problem unlinking the file /var/lib/apt/lists/partial/packages.sury.org_php_dists_bullseye_InRelease - PrepareFiles (30: Read-only file system)
W: chown to _apt:root of file /var/lib/apt/lists/packages.sury.org_php_dists_bullseye_InRelease failed - Item::QueueURI (30: Read-only file system)
W: chmod 0600 of file /var/lib/apt/lists/packages.sury.org_php_dists_bullseye_InRelease failed - Item::QueueURI (30: Read-only file system)
W: chown to root:root of file /var/lib/apt/lists/packages.sury.org_php_dists_bullseye_InRelease failed - 400::URIFailure (30: Read-only file system)
W: chmod 0644 of file /var/lib/apt/lists/packages.sury.org_php_dists_bullseye_InRelease failed - 400::URIFailure (30: Read-only file system)
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.sury.org/php bullseye InRelease: Couldn't create temporary file /tmp/apt.conf.xG4RkS for passing config to apt-key
W: Problem unlinking the file /var/lib/apt/lists/partial/forge.yunohost.org_debian_dists_bullseye_InRelease - PrepareFiles (30: Read-only file system)
W: chown to _apt:root of file /var/lib/apt/lists/forge.yunohost.org_debian_dists_bullseye_InRelease failed - Item::QueueURI (30: Read-only file system)
W: chmod 0600 of file /var/lib/apt/lists/forge.yunohost.org_debian_dists_bullseye_InRelease failed - Item::QueueURI (30: Read-only file system)
W: chown to root:root of file /var/lib/apt/lists/forge.yunohost.org_debian_dists_bullseye_InRelease failed - 400::URIFailure (30: Read-only file system)
W: chmod 0644 of file /var/lib/apt/lists/forge.yunohost.org_debian_dists_bullseye_InRelease failed - 400::URIFailure (30: Read-only file system)
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://forge.yunohost.org/debian bullseye InRelease: Couldn't create temporary file /tmp/apt.conf.d1xOQm for passing config to apt-key
W: Problem unlinking the file /var/lib/apt/lists/partial/download.opensuse.org_repositories_devel:_languages:_crystal_Debian%5f11_InRelease - PrepareFiles (30: Read-only file system)
W: chown to _apt:root of file /var/lib/apt/lists/download.opensuse.org_repositories_devel:_languages:_crystal_Debian%5f11_InRelease failed - Item::QueueURI (30: Read-only file system)
W: chmod 0600 of file /var/lib/apt/lists/download.opensuse.org_repositories_devel:_languages:_crystal_Debian%5f11_InRelease failed - Item::QueueURI (30: Read-only file system)
W: chown to root:root of file /var/lib/apt/lists/download.opensuse.org_repositories_devel:_languages:_crystal_Debian%5f11_InRelease failed - 400::URIFailure (30: Read-only file system)
W: chmod 0644 of file /var/lib/apt/lists/download.opensuse.org_repositories_devel:_languages:_crystal_Debian%5f11_InRelease failed - 400::URIFailure (30: Read-only file system)
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://download.opensuse.org/repositories/devel:/languages:/crystal/Debian_11  InRelease: Couldn't create temporary file /tmp/apt.conf.Y4K5G0 for passing config to apt-key
W: Problem unlinking the file /var/lib/apt/lists/partial/asi-fs-d.contabo.net_debian_dists_bullseye_InRelease - PrepareFiles (30: Read-only file system)
W: chown to _apt:root of file /var/lib/apt/lists/asi-fs-d.contabo.net_debian_dists_bullseye_InRelease failed - Item::QueueURI (30: Read-only file system)
W: chmod 0600 of file /var/lib/apt/lists/asi-fs-d.contabo.net_debian_dists_bullseye_InRelease failed - Item::QueueURI (30: Read-only file system)
W: Problem unlinking the file /var/lib/apt/lists/partial/asi-fs-d.contabo.net_debian_dists_bullseye-updates_InRelease - PrepareFiles (30: Read-only file system)
W: chown to root:root of file /var/lib/apt/lists/asi-fs-d.contabo.net_debian_dists_bullseye_InRelease failed - 400::URIFailure (30: Read-only file system)
W: chmod 0644 of file /var/lib/apt/lists/asi-fs-d.contabo.net_debian_dists_bullseye_InRelease failed - 400::URIFailure (30: Read-only file system)
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://asi-fs-d.contabo.net/debian bullseye InRelease: Couldn't create temporary file /tmp/apt.conf.QaNB25 for passing config to apt-key
W: Problem unlinking the file /var/lib/apt/lists/partial/asi-fs-d.contabo.net_debian_dists_bullseye-updates_Release - PrepareFiles (30: Read-only file system)
E: The repository 'http://asi-fs-d.contabo.net/debian bullseye-updates Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (30: Read-only file system)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (30: Read-only file system)


OSError: [Errno 30] Read-only file system

So you thinks this causing the problem?
What could i try next to get the system back online?
Thanks for Help

$ mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime,hidepid=invisible)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=4050236k,nr_inodes=1012559,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=813560k,mode=755)
/dev/sda3 on / type ext4 (ro,relatime)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=30,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=13323)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
/dev/sda2 on /boot type ext4 (rw,noatime)
tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=813556k,nr_inodes=203389,mode=700)

so this is the disk ?


/dev/sda3 on / type ext4 (ro,relatime)

reading here:

I was wondering to try something link:

sudo mount -o remount,rw '/dev/sda3  /mnt/'

or

sudo ntfsfix /dev/sda3

???

I’m not sure - can i damage the system even more ?

… shell i try??

with
fsck.ext4 -n /dev/sda3

found some disk errors

fsck.ext4 /dev/sda3

helped to fix them

after reboot

the YH webadmin page is up again… :slight_smile:

just mysql is still down…

@jarod5001 I’m lost

now mysql will not start

I made a snapshot so i can redo the changes by fsck but without the changes the system does not start

Do you have any idea what i could try next ? thanks