OpenMediaVault-Plugin-Developers / installScript

script that installs omv-extras and openmediavault if not installed already.
1.07k stars 206 forks source link

Errors running script on rpi 3b+ #133

Closed SebbesApa closed 9 months ago

SebbesApa commented 9 months ago

Hi, just ran this script and got the following errors on a rpi 3b+, this on a fresh install of Raspberry Pi OS (Leagacy, 64bit) Debian Bullseye 2023-12-15. Followed this gude: https://wiki.omv-extras.org/doku.php?id=omv6:raspberry_pi_install

I'm uncertain if everything below is an error though.

Setting up nfs-kernel-server (1:1.3.4-6) ...
Created symlink /etc/systemd/system/multi-user.target.wants/nfs-server.service → /lib/systemd/system/nfs-server.service.
Job for nfs-server.service canceled.

Creating config file /etc/exports with new version

Creating config file /etc/default/nfs-kernel-server with new version

*******

Creating config file /etc/chrony/chrony.conf with new version

Creating config file /etc/chrony/chrony.keys with new version
dpkg-statoverride: warning: --update given but /var/log/chrony does not exist
Created symlink /etc/systemd/system/chronyd.service → /lib/systemd/system/chrony.service.
Created symlink /etc/systemd/system/multi-user.target.wants/chrony.service → /lib/systemd/system/chrony.service.

*******
3 of those in different places:
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
****

Created symlink /etc/systemd/system/multi-user.target.wants/nmbd.service → /lib/systemd/system/nmbd.service.
Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked.
/usr/bin/deb-systemd-helper: error: systemctl preset failed on samba-ad-dc.service: No such file or directory
Created symlink /etc/systemd/system/multi-user.target.wants/smbd.service → /lib/systemd/system/smbd.service.
samba-ad-dc.service is a disabled or a static unit, not starting it.

**
dm-event.service is a disabled or a static unit, not starting it.
**
sshd.service is a disabled or a static unit, not starting it.
**
Failed to stop ntp.service: Unit ntp.service not loaded.
Unit ntp.service does not exist, proceeding anyway.
**

2. Clearing available dpkg packages...
dpkg: error: dpkg frontend lock was locked by another process with pid 24771
Note: removing the lock file is always wrong, and can end up damaging the
locked area and the entire system. See <https://wiki.debian.org/Teams/Dpkg/FAQ>.
**
          ID: folder2ram_mountall
    Function: cmd.run
        Name: /sbin/folder2ram -mountall
      Result: True
     Comment: Command "/sbin/folder2ram -mountall" run
     Started: 17:08:24.065025
    Duration: 3102.753 ms
     Changes:
              ----------
              pid:
                  26814
              retcode:
                  0
              stderr:
                  cp: cannot create directory '/var/lib/rrdcached/db/localhost/uptime': File exists
                  cp: cannot create directory '/var/lib/rrdcached/db/localhost/rrdcached': File exists
              stdout:

                  will now start all mountpoints
                  start /var/log
                  start /var/tmp
                  start /var/lib/openmediavault/rrd
                  start /var/spool
                  start /var/lib/rrdcached
                  copy files to /var/lib/rrdcached failure, rolling back the mount
                  start /var/lib/monit
                  start /var/cache/samba
***
[omvinstall] Failed to install flashmemory plugin.
***
ryecoaaron commented 9 months ago

Everything except for the failure to install the flashmemory plugin is ok. It is hard to know why things are failing when I can't see all of the output. Can you also post the output of: grep Model /proc/cpuinfo

SebbesApa commented 9 months ago

grep Model /proc/cpuinfo Model : Raspberry Pi 3 Model B Rev 1.2

Attaching the whole output: omv.log

ryecoaaron commented 9 months ago

I would reboot. Then post the output of: dpkg -l | grep openme sudo apt-get -f install

SebbesApa commented 9 months ago

Perhaps nothing is wrong?

omvuser@raspberrypiomv:~ $ dpkg -l | grep openme
ii  openmediavault                       6.9.10-2                         all          openmediavault - The open network attached storage solution
ii  openmediavault-flashmemory           6.2                              all          folder2ram plugin for openmediavault
ii  openmediavault-keyring               1.0.2-2                          all          GnuPG archive keys of the openmediavault archive
ii  openmediavault-omvextrasorg          6.3.3                            all          OMV-Extras.org Package Repositories for OpenMediaVault
omvuser@raspberrypiomv:~ $ sudo apt-get -f install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
omvuser@raspberrypiomv:~ $
ryecoaaron commented 9 months ago

That looks good. What about:

dpkg -l | grep folder2ram sudo folder2ram -syncall

SebbesApa commented 9 months ago

`omvuser@raspberrypiomv:~ $ dpkg -l | grep folder2ram ii folder2ram 0.3.5 all script-based utility to manage tmpfs folders ii openmediavault-flashmemory 6.2 all folder2ram plugin for openmediavault omvuser@raspberrypiomv:~ $ sudo folder2ram -syncall

will now sync all mountpoints sync of /var/log successful! sync of /var/tmp successful! sync of /var/lib/openmediavault/rrd successful! sync of /var/spool successful! sync of /var/lib/rrdcached successful! sync of /var/lib/monit successful! sync of /var/cache/samba successful! `

ryecoaaron commented 9 months ago

I think the system is in a good state now.

SebbesApa commented 9 months ago

ok tnx