[SOLVED]Raspberry image not working out of the box

Hardware: Raspberry Pi 4
YunoHost version: latest
I have access to my server : Through SSH | NOT through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If yes, please explain:

Description of my issue

I went to https://yunohost.org/#/images_en, and cliked on the Raspberry image link.
I linked to a qemu generated image. Weird, but ok.
I created an SD card from the image, and booted
Once booted, I can connect via ssh, but not webadmin. And basically nothing is working.

When I connect via ssh:

XXX@YYYY$ ssh root@192.168.1.30
root@192.168.1.30's password:
Linux yunohost 5.4.51-v7l+ #1333 SMP Mon Aug 10 16:51:40 BST 2020 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Resizing root partition ... (this may take up to a few minutes)
**Job for resize2fs_once.service failed because the control process exited with error code.**
**See "systemctl status resize2fs_once.service" and "journalctl -xe" for details.**
======================================================================

 Congratulations on setting up your YunoHost server !

 To finish the installation, you should run the postinstallation.
 You can find documentation about it on :
     https://yunohost.org/postinstall

 You can run it from the command line interface with :
     $ yunohost tools postinstall

 Or from a browser by accessing one of your local IP :
     192.168.1.30
     2a01:e0a:297:f460:df58:8f1a:c525:1b53

======================================================================

Wi-Fi is currently blocked by rfkill.
Use raspi-config to set the country before use.

root@yunohost:~# 

journalctl -xe

root@yunohost:~# journalctl -xe
Oct 15 10:00:12 yunohost rsyslogd[410]: action 'action-1-builtin:omfile' (module 'builtin:omfile') message lost, could not be processed. Check
Oct 15 10:00:12 yunohost rsyslogd[410]: file '8' write error: Read-only file system [v8.1901.0 try https://www.rsyslog.com/e/2027 ]
Oct 15 10:00:12 yunohost rsyslogd[410]: action 'action-1-builtin:omfile' (module 'builtin:omfile') message lost, could not be processed. Check
Oct 15 10:00:12 yunohost rsyslogd[410]: file '8' write error: Read-only file system [v8.1901.0 try https://www.rsyslog.com/e/2027 ]
Oct 15 10:00:12 yunohost rsyslogd[410]: action 'action-1-builtin:omfile' (module 'builtin:omfile') message lost, could not be processed. Check
Oct 15 10:00:12 yunohost rsyslogd[410]: file '8' write error: Read-only file system [v8.1901.0 try https://www.rsyslog.com/e/2027 ]
Oct 15 10:00:12 yunohost rsyslogd[410]: action 'action-1-builtin:omfile' (module 'builtin:omfile') message lost, could not be processed. Check
Oct 15 10:00:12 yunohost rsyslogd[410]: file '8' write error: Read-only file system [v8.1901.0 try https://www.rsyslog.com/e/2027 ]
Oct 15 10:00:12 yunohost rsyslogd[410]: action 'action-1-builtin:omfile' (module 'builtin:omfile') message lost, could not be processed. Check
Oct 15 10:00:12 yunohost rsyslogd[410]: file '8' write error: Read-only file system [v8.1901.0 try https://www.rsyslog.com/e/2027 ]
Oct 15 10:00:12 yunohost rsyslogd[410]: action 'action-1-builtin:omfile' (module 'builtin:omfile') message lost, could not be processed. Check
Oct 15 10:00:12 yunohost rsyslogd[410]: file '8' write error: Read-only file system [v8.1901.0 try https://www.rsyslog.com/e/2027 ]
Oct 15 10:00:12 yunohost rsyslogd[410]: action 'action-1-builtin:omfile' (module 'builtin:omfile') message lost, could not be processed. Check
Oct 15 10:00:12 yunohost rsyslogd[410]: file '8' write error: Read-only file system [v8.1901.0 try https://www.rsyslog.com/e/2027 ]
Oct 15 10:00:12 yunohost rsyslogd[410]: action 'action-1-builtin:omfile' (module 'builtin:omfile') message lost, could not be processed. Check
Oct 15 10:00:12 yunohost rsyslogd[410]: file '8' write error: Read-only file system [v8.1901.0 try https://www.rsyslog.com/e/2027 ]
Oct 15 10:00:12 yunohost rsyslogd[410]: action 'action-1-builtin:omfile' (module 'builtin:omfile') message lost, could not be processed. Check
Oct 15 10:00:12 yunohost rsyslogd[410]: file '8' write error: Read-only file system [v8.1901.0 try https://www.rsyslog.com/e/2027 ]
Oct 15 10:00:12 yunohost rsyslogd[410]: action 'action-1-builtin:omfile' (module 'builtin:omfile') message lost, could not be processed. Check
Oct 15 10:00:12 yunohost rsyslogd[410]: file '8' write error: Read-only file system [v8.1901.0 try https://www.rsyslog.com/e/2027 ]
Oct 15 10:00:12 yunohost rsyslogd[410]: action 'action-1-builtin:omfile' (module 'builtin:omfile') message lost, could not be processed. Check
Oct 15 10:00:12 yunohost rsyslogd[410]: file '8' write error: Read-only file system [v8.1901.0 try https://www.rsyslog.com/e/2027 ]
Oct 15 10:00:12 yunohost rsyslogd[410]: action 'action-1-builtin:omfile' (module 'builtin:omfile') message lost, could not be processed. Check
Oct 15 10:00:12 yunohost rsyslogd[410]: file '8' write error: Read-only file system [v8.1901.0 try https://www.rsyslog.com/e/2027 ]
Oct 15 10:00:12 yunohost rsyslogd[410]: action 'action-1-builtin:omfile' (module 'builtin:omfile') message lost, could not be processed. Check
Oct 15 10:00:12 yunohost rsyslogd[410]: file '8' write error: Read-only file system [v8.1901.0 try https://www.rsyslog.com/e/2027 ]
Oct 15 10:00:12 yunohost rsyslogd[410]: action 'action-1-builtin:omfile' (module 'builtin:omfile') message lost, could not be processed. Check
Oct 15 10:00:12 yunohost rsyslogd[410]: file '8' write error: Read-only file system [v8.1901.0 try https://www.rsyslog.com/e/2027 ]
Oct 15 10:00:12 yunohost rsyslogd[410]: action 'action-1-builtin:omfile' (module 'builtin:omfile') message lost, could not be processed. Check
Oct 15 10:00:12 yunohost rsyslogd[410]: file '8' write error: Read-only file system [v8.1901.0 try https://www.rsyslog.com/e/2027 ]
Oct 15 10:00:12 yunohost rsyslogd[410]: action 'action-1-builtin:omfile' (module 'builtin:omfile') message lost, could not be processed. Check
Oct 15 10:00:12 yunohost rsyslogd[410]: file '8' write error: Read-only file system [v8.1901.0 try https://www.rsyslog.com/e/2027 ]
Oct 15 10:00:12 yunohost rsyslogd[410]: action 'action-1-builtin:omfile' (module 'builtin:omfile') message lost, could not be processed. Check
Oct 15 10:00:12 yunohost rsyslogd[410]: file '8' write error: Read-only file system [v8.1901.0 try https://www.rsyslog.com/e/2027 ]
Oct 15 10:00:14 yunohost sshd[5438]: Failed password for root from 221.6.32.34 port 54404 ssh2
Oct 15 10:00:17 yunohost sshd[5438]: Received disconnect from 221.6.32.34 port 54404:11: Bye Bye [preauth]
Oct 15 10:00:17 yunohost sshd[5438]: Disconnected from authenticating user root 221.6.32.34 port 54404 [preauth]
lines 965-1001/1001 (END)client_loop: send disconnect: Broken pipe

Post install attempt:

root@yunohost:~# yunohost tools postinstall
Main domain: yuno.flipo.me
You are now about to define a new administration password. The password should be at least 8 characters long—though it is good practice to use a longer password (i.e. a passphrase) and/or to use a variation of characters (uppercase, lowercase, digits and special characters).
New administration password:
Confirm new administration password:

gzip: /usr/share/yunohost/other/password/100000-most-used.txt: Read-only file system
Traceback (most recent call last):
  File "/usr/lib/python2.7/logging/__init__.py", line 892, in emit
    self.flush()
  File "/usr/lib/python2.7/logging/__init__.py", line 852, in flush
    self.stream.flush()
IOError: [Errno 30] Read-only file system
Logged from file dyndns.py, line 70
Traceback (most recent call last):
  File "/usr/lib/python2.7/logging/__init__.py", line 892, in emit
    self.flush()
  File "/usr/lib/python2.7/logging/__init__.py", line 852, in flush
    self.stream.flush()
IOError: [Errno 30] Read-only file system
Logged from file connectionpool.py, line 815
Traceback (most recent call last):
  File "/usr/lib/python2.7/logging/__init__.py", line 892, in emit
    self.flush()
  File "/usr/lib/python2.7/logging/__init__.py", line 852, in flush
    self.stream.flush()
IOError: [Errno 30] Read-only file system
Logged from file connectionpool.py, line 393
Info: The operation 'Postinstall your YunoHost server' could not be completed. Please share the full log of this operation using the command 'yunohost log display 20201015-070021-tools_postinstall-yuno.flipo.me --share' to get help
Traceback (most recent call last):
  File "/usr/lib/python2.7/logging/__init__.py", line 892, in emit
    self.flush()
  File "/usr/lib/python2.7/logging/__init__.py", line 852, in flush
    self.stream.flush()
IOError: [Errno 30] Read-only file system
Logged from file log.py, line 523
Traceback (most recent call last):
  File "/usr/lib/python2.7/logging/__init__.py", line 892, in emit
    self.flush()
  File "/usr/lib/python2.7/logging/__init__.py", line 852, in flush
    self.stream.flush()
IOError: [Errno 30] Read-only file system
Logged from file actionsmap.py, line 591
Traceback (most recent call last):
  File "/usr/lib/python2.7/logging/__init__.py", line 892, in emit
    self.flush()
  File "/usr/lib/python2.7/logging/__init__.py", line 852, in flush
    self.stream.flush()
IOError: [Errno 30] Read-only file system
Logged from file core.py, line 549
Traceback (most recent call last):
  File "/usr/bin/yunohost", line 218, in <module>
    timeout=opts.timeout,
  File "/usr/lib/python2.7/dist-packages/moulinette/__init__.py", line 149, in cli
    moulinette.run(args, output_as=output_as, password=password, timeout=timeout)
  File "/usr/lib/python2.7/dist-packages/moulinette/interfaces/cli.py", line 469, in run
    ret = self.actionsmap.process(args, timeout=timeout)
  File "/usr/lib/python2.7/dist-packages/moulinette/actionsmap.py", line 588, in process
    return func(**arguments)
  File "/usr/lib/moulinette/yunohost/log.py", line 315, in func_wrapper
    operation_logger.error(e)
  File "/usr/lib/moulinette/yunohost/log.py", line 492, in error
    return self.close(error)
  File "/usr/lib/moulinette/yunohost/log.py", line 524, in close
    self.flush()
  File "/usr/lib/moulinette/yunohost/log.py", line 433, in flush
    with open(self.md_path, 'w') as outfile:
IOError: [Errno 30] Read-only file system: '/var/log/yunohost/categories/operation/20201015-070021-tools_postinstall-yuno.flipo.me.yml'
root@yunohost:~#
root@yunohost:~# systemctl status resize2fs_once.service
â—Ź resize2fs_once.service - LSB: Resize the root filesystem to fill partition
   Loaded: loaded (/etc/init.d/resize2fs_once; generated)
   Active: failed (Result: exit-code) since Thu 2020-10-15 07:42:44 BST; 2h 15min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1113 ExecStart=/etc/init.d/resize2fs_once start (code=exited, status=1/FAILURE)
    Tasks: 0 (limit: 4915)
   CGroup: /system.slice/resize2fs_once.service

Oct 15 07:41:43 yunohost resize2fs_once[1113]: Starting resize2fs_once:resize2fs 1.44.5 (15-Dec-2018)
Oct 15 07:42:44 yunohost resize2fs_once[1113]: resize2fs: Device or resource busy While checking for on-line resizing support
Oct 15 07:42:44 yunohost resize2fs_once[1113]: Filesystem at /dev/mmcblk0p2 is mounted on /; on-line resizing required
Oct 15 07:42:44 yunohost resize2fs_once[1113]: old_desc_blocks = 5, new_desc_blocks = 8
Oct 15 07:42:44 yunohost systemd[1]: resize2fs_once.service: Control process exited, code=exited, status=1/FAILURE
Oct 15 07:42:44 yunohost systemd[1]: resize2fs_once.service: Failed with result 'exit-code'.
Oct 15 07:42:44 yunohost systemd[1]: Failed to start LSB: Resize the root filesystem to fill partition.
Oct 15 07:57:37 yunohost resize2fs_once[385]: resize2fs: Input/output error While checking for on-line resizing support
Oct 15 07:57:37 yunohost resize2fs_once[385]: Filesystem at /dev/mmcblk0p2 is mounted on /; on-line resizing required
Oct 15 07:57:37 yunohost resize2fs_once[385]: old_desc_blocks = 2, new_desc_blocks = 8

Any idea ? Is the raspberry pi image not correct ? Or just not RP4 compatible ? Thanks in advance

Hi @littlevache

It is indeed confusing to have a qemu titled image for rpi, I filed a bug so that can be fixed. If you get to that point in the install I think the image is correct.

There might be a bug in the installer, but what I see is “read only file system”, that happens when the SD card has an error and debian switches to readonly filesystem to try to prevent bad writes and keep your data safe. In that case, the install will fail obviously. Do you have a way to check the SD card ?

Thanks for your answer.
SD card is brand new, no error on basic checks. Do you have a specific tool/check you want me to perform ?

According to this post YunoHost 4.0 (Buster) release / Sortie de YunoHost 4.0 (Buster) , the raspberry image is not ready yet.
And the previous one is not available anymore (dead link). At this moment, there are NO valid, working raspberry image. Could somebody please make the previous image available again ? (this file yunohost-stretch-latest-rpi-stable.zip)

I ended up using this script for an online install:

# curl https://raw.githubusercontent.com/YunoHost/install_script/buster-unstable/install_yunohost | bash

As described in this page:

@rodinux : if you can fix your website and avoid recommending to install the unstable version that would be nice … (though agreed that this was during april and explicitly mentioned that this is “during the testing/alpha phase”)

I have no idea how / why that may have fixed the issue @littlevache is encountering but imho this is just luck/badluck with respect to the SD card connection and has nothing to do with the software being ran …

Hi @littlevache, I have edited this post installing Yunohost with an alpha-testing Yunohost v4, as explained by @Aleks. It was an unstable image
But it is not more avalaible, I have found problems when the new release was advanced and stable.
I have needed to edit the file /etc/apt/sources.list.d/yunohost.list with this line:

deb http://forge.yunohost.org/debian/ buster stable

and next upgrade to resolve issues and dependencies…

But, at first, previously, I had first installed a image of Buster Lite here: https://www.raspberrypi.org/downloads/raspberry-pi-os/

I need to explain this on this topic as recommended by @Aleks, thanks for this vigilance and sorry if I mistake you.

1 Like

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