Posts by odinb

    See the same thing on mine, and it is a fresh OMV5 install!


    root@NAS-OMV:~# systemctl status nfs-blkmap

    ● nfs-blkmap.service - pNFS block layout mapping daemon

    Loaded: loaded (/lib/systemd/system/nfs-blkmap.service; disabled; vendor preset: enabled)

    Active: active (running) since Mon 2020-05-18 14:41:21 CDT; 40min ago

    Process: 341 ExecStart=/usr/sbin/blkmapd $BLKMAPDARGS (code=exited, status=0/SUCCESS)

    Main PID: 346 (blkmapd)

    Tasks: 1 (limit: 4915)

    Memory: 600.0K

    CGroup: /system.slice/nfs-blkmap.service

    └─346 /usr/sbin/blkmapd


    May 18 14:41:21 NAS-OMV.kingsville.lan blkmapd[346]: open pipe file /run/rpc_pipefs/nfs/blocklayout failed: No such file or directory

    root@NAS-OMV:~#

    Guess this will be coming downstream soon!


    CVE-2020-11651: An issue was discovered in SaltStack Salt before 2019.2.4 and 3000 before 3000.2. The salt-master process ClearFuncs class does not properly validate method calls. This allows a remote user to access some methods without authentication. These methods can be used to retrieve user tokens from the salt master and/or run arbitrary commands on salt minions.



    CVE-2020-11652: An issue was discovered in SaltStack Salt before 2019.2.4 and 3000 before 3000.2. The salt-master process ClearFuncs class allows access to some methods that improperly sanitize paths. These methods allow arbitrary directory access to authenticated users.


    NAS-OMV:~$ sudo apt list --installed |grep salt


    WARNING: apt does not have a stable CLI interface. Use with caution in scripts.


    salt-common/usul,usul,now 2019.2.3+ds-1 all [installed,automatic]

    salt-minion/usul,usul,now 2019.2.3+ds-1 all [installed,automatic]

    NAS-OMV:~$



    https://www.theregister.co.uk/…ation_tool_vulnerable_to/


    https://www.securityweek.com/c…8SecurityWeek+RSS+Feed%29

    By the way, the issue that several people see with resolve.conf not populating after upgrade is fixed by issuing:


    Code
    $ sudo dpkg-reconfigure resolvconf

    then reboot. At this point, /etc/resolv.conf will be updated again from your DHCP-server!

    Ok, so my fstab looks like this:


    So you are saying to hash out/remove:
    "UUID=f7e3bc30-c184-4f4d-aa81-b87ffeb6d844 /media/f7e3bc30-c184-4f4d-aa81-b87ffeb6d844 ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2"


    and then reboot, and OMV should pick it and re-add it to fstab?


    Then I should be able to add it from GUI to SMB/CIFS-shares, is this the correct understanding?



    Edit:


    Tried above, no change to fstab, still no shared-folder available in GUI.
    Sorry if I am "thickheaded", but I want to get it right...

    Hi!


    Performed an upgrade from OMV4 to OMV5, but did not uninstall all plugins prior to performing the upgrade (stupid me).
    Of-course this botched the upgrade, and I got stuck with broken packages, and after cleanup I basically had to re-install from scratch!
    Followed the "Install OMV5 on Debian 10 (Buster)" (Install OMV5 on Debian 10 (Buster))


    The system is now up and running, and I have started adding my configuration back, but are running into issues!
    When trying to add the SMB/CIFS mounts back, there are no device in Shares dropdown!


    Think it has to do with my "/etc/openmediavault/config.xml" file that was re-installed?
    Thinking it has to do with the configuration of my drive(s) in there?


    The MD-RAID is still there, and I can access the filesystem and files just fine via SSH!


    Any hints on how to configure them back?



    and



    Code
    root@openmediavault:~# blkid
    /dev/sda1: UUID="c3d682ab-930b-4215-a7ac-2f3a21001b45" TYPE="ext4" PARTUUID="00058f90-01"
    /dev/sda5: UUID="243a4b95-21cb-4ead-bc29-e2f38fd37486" TYPE="swap" PARTUUID="00058f90-05"
    /dev/sdb: UUID="d1b4c83e-18a4-f458-86e6-7e94f3158245" UUID_SUB="013fed50-8691-f6d3-22ed-c58d0414439c" LABEL="openmediavault:0" TYPE="linux_raid_member"
    /dev/sdc: UUID="d1b4c83e-18a4-f458-86e6-7e94f3158245" UUID_SUB="bcadfe76-e21a-d14d-70f5-ec7fc650ea3b" LABEL="openmediavault:0" TYPE="linux_raid_member"
    /dev/sdd: UUID="d1b4c83e-18a4-f458-86e6-7e94f3158245" UUID_SUB="e55c1629-9f3c-8bcf-daca-984e7cfa1885" LABEL="openmediavault:0" TYPE="linux_raid_member"
    /dev/sde: UUID="d1b4c83e-18a4-f458-86e6-7e94f3158245" UUID_SUB="cef53523-bbec-a1e2-29d2-5f50fe4c939e" LABEL="openmediavault:0" TYPE="linux_raid_member"
    /dev/md0: LABEL="OMV" UUID="f7e3bc30-c184-4f4d-aa81-b87ffeb6d844" TYPE="ext4"
    /dev/sdf: UUID="d1b4c83e-18a4-f458-86e6-7e94f3158245" UUID_SUB="03a3b1cd-b233-d458-23b2-1a00e336ea7e" LABEL="openmediavault:0" TYPE="linux_raid_member"
    root@openmediavault:~#


    and



    Code
    root@openmediavault:~# dpkg -l | grep openm
    ii openmediavault 5.3.2-1 all openmediavault - The open network attached storage solution
    ii openmediavault-flashmemory 5.0.1 all folder2ram plugin for OpenMediaVault
    ii openmediavault-keyring 1.0 all GnuPG archive keys of the OpenMediaVault archive
    ii openmediavault-omvextrasorg 5.2.4 all OMV-Extras.org Package Repositories for OpenMediaVault
    root@openmediavault:~#

    Nevermind, had to totally clean the system, and start over from almost scratch!


    The install guide here worked after cleaning up all broken packages:
    Install OMV5 on Debian 10 (Buster)


    If you have issues fixing broken packages here is a good guide:
    https://askubuntu.com/question…broken-packages-in-ubuntu


    But be very careful! You can/will permanently remove packages, which could lead to a non-booting/broken system!


    So, I am now at the configuration stage of my OMV! Will try to avoid using plugins/OMV-extras moving forward!
    Docker FTW!


    So, lesson learned, uninstall plugins prior to updating!

    Managed to remove Virtualbox, Netatalk still left...


    root@openmediavault:/usr/lib# apt-get -f install
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages will be REMOVED:
    openmediavault-netatalk
    0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
    4 not fully installed or removed.
    After this operation, 254 kB disk space will be freed.
    Do you want to continue? [Y/n]
    (Reading database ... 273954 files and directories currently installed.)
    Removing openmediavault-netatalk (4.0.7-1) ...
    /var/lib/dpkg/info/openmediavault-netatalk.postrm: 42: /var/lib/dpkg/info/openmediavault-netatalk.postrm: omv-mkconf: not found
    dpkg: error processing package openmediavault-netatalk (--remove):
    installed openmediavault-netatalk package post-removal script subprocess returned error exit status 127
    Errors were encountered while processing:
    openmediavault-netatalk
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    root@openmediavault:/usr/lib#



    root@openmediavault:~# find / -iname 'netatalk*'
    /var/log/netatalk.log.5.gz
    /var/log/netatalk.log
    /var/log/netatalk.log.4.gz
    /var/log/netatalk.log.6.gz
    /var/log/netatalk.log.2.gz
    /var/log/netatalk.log.7.gz
    /var/log/netatalk.log.3.gz
    /var/log/netatalk.log.1
    /var/lib/dpkg/info/netatalk.postrm
    /var/lib/dpkg/info/netatalk.list
    /var/lib/netatalk
    /var/lib/systemd/deb-systemd-helper-masked/netatalk.service
    /var/lib/systemd/deb-systemd-helper-enabled/netatalk.service.dsh-also
    /var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants/netatalk.service
    /usr/include/netatalk
    /usr/lib/x86_64-linux-gnu/samba/vfs/netatalk.so
    /etc/pam.d/netatalk
    /etc/init.d/netatalk
    /etc/netatalk
    /etc/logrotate.d/netatalk
    /etc/logcheck/violations.ignore.d/netatalk
    /etc/logcheck/ignore.d.server/netatalk
    /etc/systemd/system/multi-user.target.wants/netatalk.service
    /etc/systemd/system/netatalk.service
    /etc/dbus-1/system.d/netatalk-dbus.conf
    /etc/default/netatalk.dpkg-old
    /etc/default/netatalk
    find: ‘/proc/22536/task/22536/net’: Invalid argument
    find: ‘/proc/22536/net’: Invalid argument
    root@openmediavault:~# dpkg --remove --force-remove-reinstreq openmediavault-netatalk
    (Reading database ... 273953 files and directories currently installed.)
    Removing openmediavault-netatalk (4.0.7-1) ...
    /var/lib/dpkg/info/openmediavault-netatalk.postrm: 42: /var/lib/dpkg/info/openmediavault-netatalk.postrm: omv-mkconf: not found
    dpkg: error processing package openmediavault-netatalk (--remove):
    installed openmediavault-netatalk package post-removal script subprocess returned error exit status 127
    Errors were encountered while processing:
    openmediavault-netatalk


    root@openmediavault:~#



    root@openmediavault:~# dpkg -l | grep openm
    iF openmediavault 5.3.2-1 all openmediavault - The open network attached storage solution
    ii openmediavault-keyring 1.0 all GnuPG archive keys of the OpenMediaVault archive
    rH openmediavault-netatalk 4.0.7-1 all OpenMediaVault netatalk (AppleTalk Protocol Suite) plugin
    iU openmediavault-nut 5.0-1 all OpenMediaVault Network UPS Tools (NUT) plugin
    iU openmediavault-omvextrasorg 5.2.4 all OMV-Extras.org Package Repositories for OpenMediaVault
    root@openmediavault:~#

    Followed the guide in post #38, and GUI loads just fine, and I can see that OMV-5.3.2-1 (usul) is installed, but I am getting errors running "apt-get -f install":


    The repos I have:
    root@openmediavault:/etc/apt/sources.list.d# cat openmediavault.list
    deb http://packages.openmediavault.org/public/ usul main
    deb https://openmediavault.github.io/packages/ usul main
    # deb http://downloads.sourceforge.n…/openmediavault/packages/ usul main
    root@openmediavault:/etc/apt/sources.list.d# apt-cache policy
    Package files:
    100 /var/lib/dpkg/status
    release a=now
    500 http://repo.mongodb.org/apt/debian jessie/mongodb-org/3.4/main amd64 Packages
    release o=mongodb,a=jessie,n=jessie/mongodb-org,l=mongodb,c=main,b=amd64
    origin repo.mongodb.org
    500 http://www.ui.com/downloads/unifi/debian stable/ubiquiti amd64 Packages
    release o=Ubiquiti Networks, Inc.,a=stable,n=unifi-5.12,l=Ubiquiti Networks, Inc.,c=ubiquiti,b=amd64
    origin http://www.ui.com
    500 https://openmediavault.github.io/packages usul/main amd64 Packages
    release o=openmediavault.org archive,a=usul,n=usul,l=openmediavault.org archive,c=main,b=amd64
    origin openmediavault.github.io
    995 http://packages.openmediavault.org/public usul/main amd64 Packages
    release o=openmediavault.org archive,a=usul,n=usul,l=openmediavault.org archive,c=main,b=amd64
    origin packages.openmediavault.org
    Pinned packages:
    root@openmediavault:/etc/apt/sources.list.d#


    OMV Installed:
    root@openmediavault:~# dpkg -l | grep openm
    iF openmediavault 5.3.2-1 all openmediavault - The open network attached storage solution
    ii openmediavault-keyring 1.0 all GnuPG archive keys of the OpenMediaVault archive
    ii openmediavault-netatalk 4.0.7-1 all OpenMediaVault netatalk (AppleTalk Protocol Suite) plugin
    iU openmediavault-nut 5.0-1 all OpenMediaVault Network UPS Tools (NUT) plugin
    iU openmediavault-omvextrasorg 5.2.4 all OMV-Extras.org Package Repositories for OpenMediaVault
    ii openmediavault-shellinabox 3.4 all Web-based SSH client.
    rc openmediavault-virtualbox 4.1.2 all VirtualBox plugin for OpenMediaVault.
    root@openmediavault:~#



    What am I missing?

    From the error log (only interesting parts):

    Yep, discovered that AFTER upgrading!


    I have this installed:

    Code
    root@openmediavault:/# sudo ls /boot | grep vmlinuz | cut -d'-' -f2,3
    4.16.0-0.bpo.2
    4.17.0-0.bpo.1
    root@openmediavault:/#


    Specifically these:

    As far as I can see/have noticed, php5 is no longer needed for OMV, so I went ahead and uninstalled it fully a couple of days ago, and have seen no issues so far!


    So, if your system is not using php5 for something else, I assume it is safe to remove.


    What I did to resolve the Php5-issue:


    dpkg --get-selections | grep php5


    sudo apt-get remove php5-cgi php5-cli php5-common php5-fpm php5-json php5-pam php5-proctitle


    ls -l /etc/cron.d/


    rm -rf /etc/cron.d/php5

    Tried to, via the OMV-GUI, remove virtualbox plugin, reboot, then re-install it via same GUI. Had to re-point the plugin to the VM folder, but after this, they showed up, and works. The PHPVirtualBox GUI now also works, go figure!


    The above mentioned errors are however still there, the segfault one seemingly the most serious one. Maybe someone should look into the cause of that one, since my google searches showed other people had also seen this!

    Seeing that the "openmediavault-webgui_error.log" is throwing errors about ""/var/www/openmediavault/virtualbox/index.php" is not found (2: No such file or directory)" and ""/var/www/openmediavault/virtualbox/css/theme-all.min.css" failed (2: No such file or directory)", but then again, I see these errors on the working box, so maybe nothing.


    I also see in messages that that OMV-engined is segfaulting every time I login to the OMV-gui and the phpvirtualbox-GUI (kernel: [ 441.370153] omv-engined[1894]: segfault at 7fba703f9205 ip 0000555aa68c034f sp 00007fff3ce84760 error 4 in php7.0[555aa6653000+3aa000]), but then again, see this on both the working and non-working machine.


    Really cannot find any leads to where to look.

    Hi!


    After upgrade on my second OMV-box, I am unable to browse to the phpVirtualBox GUI. The VM guest-machines can be started, and are running just fine, it seems, but when I try to open the phpVirtualBox GUI, I get an error stating:

    Code
    An unknown PHP error occurred. This is most likely a syntax error in config.php in phpVirtualBox's folder. The most common errors are an unclosed quote or a missing semicolon in a configuration item that has been entered (e.g. location, username, or password).
    Depending on your PHP configuration, navigating directly to config.php in your web browser may display the PHP error message.
    If find that this is not the case, or have no idea what this error message means, please raise the issue at http://sourceforge.net/p/phpvirtualbox/discussion/help/

    If I browse to the suggested URL for "config.php", I get "Error 404. Sorry, the page you requested was not found."


    The service is running:


    Code
    root@x2100:~# ps -ef |grep vbox
    vbox 739 1 0 19:51 ? 00:00:00 /usr/lib/virtualbox/vboxwebsrv --host 127.0.0.1 --port 18083
    vbox 1129 1 0 19:51 ? 00:00:00 /usr/lib/virtualbox/VBoxXPCOMIPCD
    vbox 1268 1 0 19:51 ? 00:00:02 /usr/lib/virtualbox/VBoxSVC --auto-shutdown
    vbox 2199 1268 1 19:52 ? 00:00:30 /usr/lib/virtualbox/VBoxHeadless --comment Machine1 --startvm d1835859-aa07-409d-8f8e-4e73dc3992bb --vrde config
    vbox 2255 1268 9 19:52 ? 00:02:37 /usr/lib/virtualbox/VBoxHeadless --comment Machine2 --startvm dfd0ad57-d2cd-4c2a-9980-2e22804e4b99 --vrde config
    vbox 2297 1268 1 19:52 ? 00:00:23 /usr/lib/virtualbox/VBoxHeadless --comment Machine3 --startvm 1cdf706c-4d7a-4b8a-b031-ff2018fdf185 --vrde config
    vbox 2339 1268 1 19:53 ? 00:00:28 /usr/lib/virtualbox/VBoxHeadless --comment Machine4 --startvm f3536833-c6bc-403e-9b32-f91f2aca7481 --vrde config
    root 3954 2997 0 20:20 pts/1 00:00:00 grep vbox
    root@x2100:~#

    I cannot find any significant differences between this and another OMV-box where it works after upgrade.



    Any ideas?