I clicked on apply and boom, the UI was gone (nginx returned a 502 error). Underneath, the file /etc/php/7.3/fpm/pool.d/openmediavault-webgui.conf was not present
I'm curious if the following would have fixed it: omv-salt deploy run phpfpm
I clicked on apply and boom, the UI was gone (nginx returned a 502 error). Underneath, the file /etc/php/7.3/fpm/pool.d/openmediavault-webgui.conf was not present
I'm curious if the following would have fixed it: omv-salt deploy run phpfpm
I actually had the same problem. After Upgrade von OMV4 to OMV5 everything was ok. Than I installed update "openmediavault 5.3.8-1", restarted webgui showed "502 Bad Gateway". First thing I tried was omv-salt deploy run phpfpm. Webgui was back, but I could not login. Error:
Fehler #0:
OMV\Rpc\Exception: Failed to connect to socket: No such file or directory in /usr/share/php/openmediavault/rpc/rpc.inc:141
Stack trace:
#0 /var/www/openmediavault/rpc/session.inc(56): OMV\Rpc\Rpc::call('UserMgmt', 'authUser', Array, Array, 2, true)
#1 [internal function]: OMVRpcServiceSession->login(Array, Array)
#2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('login', Array, Array)
#4 /usr/share/php/openmediavault/rpc/proxy/json.inc(97): OMV\Rpc\Rpc::call('Session', 'login', Array, Array, 3)
#5 /var/www/openmediavault/rpc.php(45): OMV\Rpc\Proxy\Json->handle()
#6 {main}
Than I connected via ssh did omv-engine -f and I was able to login. Than I quited omv-engine, as It was still running the the terminal in foreground and I was still able to login. I rebooted but the network was gone. So I reconfigured the network interface via omv-firstaid and everything seemed to be ok.
Only thing which does not work is SMB via SMB2. SMB3 (tested with SMB03_02 and SMB03_11) is fine. Checked smb.conf, restarted smbd but SMB2 connections won't work anymore. This OMV5 systems now runs with Kernel Linux 4.19.0-8-amd64. Today there was an update notification for Kernel 5.4. Maybe this helps. I will report. Any other advices?
I had followed the upgrades, fixed the nginx issue and now cannot see filesystem nor SMB. Attaching logs. Did this process wipe my (yes I know, backup) files? I don't think it did, but I don't see, except that when I "df -h" I see Used space. I'm kinda stuck and don't know if I can go forward, or if there is a way to "safely" rollback to v4...but as a validated Linux/Omv noob, I do need help.
Filesystem Size Used Avail Use% Mounted on
udev 3.9G 0 3.9G 0% /dev
tmpfs 790M 27M 764M 4% /run
/dev/sda1 47G 20G 26G 44% /
tmpfs 3.9G 80K 3.9G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
tmpfs 3.9G 0 3.9G 0% /tmp
/dev/sdb1 3.6T 578G 3.1T 16% /srv/dev-disk-by-label-General3
/dev/sdd1 117G 61M 117G 1% /srv/dev-disk-by-label-Central100
/dev/sde1 458G 73M 458G 1% /srv/dev-disk-by-label-West
/dev/sdc1 586G 47G 540G 8% /srv/dev-disk-by-label-East500
Austin:ef6d2939-f2b2-4d15-b38e-13a93ff2064b 4.8T 624G 4.2T 13% /srv/ef6d2939-f2b2-4d15-b38e-13a93ff2064b
Alles anzeigen
Did this process wipe my (yes I know, backup) files?
Nope. If you browser the /srv/ directories you should see your files. Those filesystems look like they have plenty of space used. If samba isn't working, either make a small change in the web interface for samba or try omv-salt deploy run samba
ryecoaaron I do see all in /srv/.
Here is what is happening:
root@omv5:/# omv-salt deploy samba
Usage: omv-salt deploy [OPTIONS] COMMAND [ARGS]...
Try "omv-salt deploy --help" for help.
Error: No such command "samba".
root@omv5:/# omv-salt deploy --help
Usage: omv-salt deploy [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
list List available states and exit.
run Run the specified state(s).
root@omv5:/# omv-salt deploy run samba
omv4.atx.local:
----------
ID: configure_samba_global
Function: file.managed
Name: /etc/samba/smb.conf
Result: True
Comment: File /etc/samba/smb.conf updated
Started: 13:31:59.609202
Duration: 66.278 ms
Changes:
----------
diff:
---
+++
@@ -35,4 +35,3 @@
multicast dns register = no
# Special configuration for Apple's Time Machine
fruit:aapl = yes
-#======================= Share Definitions =======================
----------
ID: configure_samba_shares
Function: file.append
Name: /etc/samba/smb.conf
Result: True
Comment: Appended 1 lines
Started: 13:31:59.675656
Duration: 62.622 ms
Changes:
----------
diff:
---
+++
@@ -35,3 +35,4 @@
multicast dns register = no
# Special configuration for Apple's Time Machine
fruit:aapl = yes
+#======================= Share Definitions =======================
----------
ID: configure_samba_recyclebin_cron
Function: file.managed
Name: /etc/cron.daily/openmediavault-samba-recycle
Result: True
Comment: File /etc/cron.daily/openmediavault-samba-recycle is in the correct state
Started: 13:31:59.738448
Duration: 2.072 ms
Changes:
----------
ID: remove_samba_recyclebin_cron_scripts
Function: module.run
Result: True
Comment: file.find: []
Started: 13:31:59.741330
Duration: 1.002 ms
Changes:
----------
file.find:
----------
ID: configure_default_wsdd
Function: file.managed
Name: /etc/default/wsdd
Result: True
Comment: File /etc/default/wsdd is in the correct state
Started: 13:31:59.742476
Duration: 2.012 ms
Changes:
----------
ID: test_samba_service_config
Function: cmd.run
Name: samba-tool testparm --suppress-prompt
Result: True
Comment: Command "samba-tool testparm --suppress-prompt" run
Started: 13:31:59.745316
Duration: 176.223 ms
Changes:
----------
pid:
5068
retcode:
0
stderr:
stdout:
# Global parameters
[global]
disable spoolss = Yes
encrypt passwords = Yes
guest account = nobody
log file = /var/log/samba/log.%m
logging = syslog
log level = 2
max log size = 1000
pam password change = Yes
panic action = /usr/share/samba/panic-action %d
passdb backend = tdbsam
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
passwd program = /usr/bin/passwd %u
printcap name = /dev/null
server string = %h server
socket options = TCP_NODELAY IPTOS_LOWDELAY
unix extensions = Yes
workgroup = WORKGROUP
fruit:aapl = yes
aio read size = 16384
aio write size = 16384
create mask = 0777
directory mask = 0777
use sendfile = Yes
----------
ID: start_samba_service
Function: service.running
Name: smbd
Result: True
Comment: Service restarted
Started: 13:31:59.987198
Duration: 246.528 ms
Changes:
----------
smbd:
True
----------
ID: start_samba_service_nmbd
Function: service.running
Name: nmbd
Result: True
Comment: Service restarted
Started: 13:32:00.277446
Duration: 112.429 ms
Changes:
----------
nmbd:
True
----------
ID: start_wsdd_service
Function: service.running
Name: wsdd
Result: True
Comment: Service wsdd is already enabled, and is running
Started: 13:32:00.390277
Duration: 113.235 ms
Changes:
----------
wsdd:
True
Summary for omv4.atx.local
------------
Succeeded: 9 (changed=7)
Failed: 0
------------
Total states run: 9
Total run time: 782.401 ms
root@omv5:/#
Alles anzeigen
Sorry I forgot the run word in my original post. I don't see any failures in that output. Is samba working now?
outstanding!! (kiss the ground). Yes. All good. Now I can sanely rebuild by dockers, as I don't think they ported. Thank you again. love the improved forum. I'm glad I was patient.
Ok. Login via ssh. omv-update. reboot. No network. omv-firstaid. SMB3 works. SFTP works. SMB2 does not work. omv-salt run deploy samba. Nothing failed. First line complained:
root@server:/# omv-salt deploy run samba
/usr/lib/python3/dist-packages/salt/utils/jinja.py:503: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
SMB2 does not work. Commented out all smb extra options and applied setting. Still no SMB2.
I guess I still have one final issue to get back to level ground.. I have NFS shares, when I attempt to mount from an ESXI test host, it mounts to a directory NOT in /srv/ but rather in /export/
I still never see anything in "Filesystem" other than a "Loading" message, so I can't figure on where that is failing. Added syslog which I think is relevant. In either case, when I tried to delete and recreate the NFS, I got the error (also attached as error.txt), so I rolled the config back to where I am.
omv4.atx.local:
----------
ID: configure_default_nfs-kernel-server
Function: file.managed
Name: /etc/default/nfs-kernel-server
Result: True
Comment: File /etc/default/nfs-kernel-server is in the correct state
Started: 15:00:39.278119
Duration: 42.755 ms
Changes:
----------
ID: configure_nfsd_exports
Function: file.managed
Name: /etc/exports
Result: True
Comment: File /etc/exports is in the correct state
Started: 15:00:39.321057
Duration: 73.313 ms
Changes:
----------
ID: start_rpc_statd_service
Function: service.running
Name: rpc-statd
Result: True
Comment: The service rpc-statd is already running
Started: 15:00:39.404962
Duration: 46.873 ms
Changes:
----------
ID: start_nfs_kernel_server_service
Function: service.running
Name: nfs-kernel-server
Result: True
Comment: The service nfs-kernel-server is already running
Started: 15:00:39.453818
Duration: 41.322 ms
Changes:
Summary for omv4.atx.local
------------
Succeeded: 4
Failed: 0
------------
Total states run: 4
Total run time: 204.263 ms
Alles anzeigen
I have NFS shares, when I attempt to mount from an ESXI test host, it mounts to a directory NOT in /srv/ but rather in /export/
As designed. The exports in /exports are bind mounted to the directory you specify for each nfs share.
I still never see anything in "Filesystem" other than a "Loading" message, so I can't figure on where that is failing. Added syslog which I think is relevant. In either case, when I tried to delete and recreate the NFS, I got the error (also attached as error.txt), so I rolled the config back to where I am.
Looks like something isn't updated or installed properly. What is the output of: dpkg -l | grep -E "merg|openm|omv"
Correction, this error is when I look at the shared folders menu:
Couldn't extract an UUID from the provided path '/export/NFS01_VM'.
Error #0:
OMV\Exception: Couldn't extract an UUID from the provided path '/export/NFS01_VM'. in /usr/share/php/openmediavault/system/filesystem/backend/mergerfs.inc:96
Stack trace:
#0 /usr/share/php/openmediavault/system/filesystem/backend/mergerfs.inc(64): OMV\System\Filesystem\Backend\Mergerfs::extractUuidFromMountPoint('/export/NFS01_V...')
#1 /usr/share/php/openmediavault/system/filesystem/filesystem.inc(902): OMV\System\Filesystem\Backend\Mergerfs->getImpl('Austin:ef6d2939...')
#2 /usr/share/openmediavault/engined/rpc/sharemgmt.inc(158): OMV\System\Filesystem\Filesystem::getImplByMountPoint('/srv/ef6d2939-f...')
#3 [internal function]: Engined\Rpc\ShareMgmt->enumerateSharedFolders(NULL, Array)
#4 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#5 /usr/share/openmediavault/engined/rpc/sharemgmt.inc(205): OMV\Rpc\ServiceAbstract->callMethod('enumerateShared...', NULL, Array)
#6 [internal function]: Engined\Rpc\ShareMgmt->getList(Array, Array)
#7 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#8 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('getList', Array, Array)
#9 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('ShareMgmt', 'getList', Array, Array, 1)
#10 {main}
Alles anzeigen
ryecoaaron This is what I see:
root@omv5:~# dpkg -l | grep -E "merg|openm|omv"
ii mergerfs 2.28.3~debian-buster amd64 another FUSE union filesystem
ii omvextras-unionbackend 5.0.2 all union filesystems backend plugin for openmediavault
ii openmediavault 5.3.7-1 all openmediavault - The open network attached storage solution
ii openmediavault-apttool 3.6 all apt tool plugin for OpenMediaVault.
ii openmediavault-backup 5.1 all backup plugin for OpenMediaVault.
ii openmediavault-fail2ban 5.0.4 all OpenMediaVault Fail2ban plugin
ii openmediavault-keyring 1.0 all GnuPG archive keys of the OpenMediaVault archive
ii openmediavault-omvextrasorg 5.2.5 all OMV-Extras.org Package Repositories for OpenMediaVault
ii openmediavault-unionfilesystems 5.1.1 all Union filesystems plugin for OpenMediaVault.
Correction, this error is when I look at the shared folders menu:
Do you still have /sharedfolders enabled? I thought this problem was fixed in OMV a while ago.
The directory, and any subdirectories (the share names) will not be removed. However, they will not have any file content in them.
Gotcha. Thus I can safely delete /sharedfolders.
How about the File System error?
ow about the File System error?
I was never able to reproduce when it was causing a problem and like I said, I thought it was fixed. Disabling sharedfolders was something I thought would help. Maybe try deleting all pools and recreating.
Those pools in in File System? File System doesn't work in any way.
Gotcha. Thus I can safely delete /sharedfolders.
Make sure the directories are really empty first.
Those pools in in File System? File System doesn't work in any way.
Remove the pools from the unionfilesystems plugin and then remove the plugin. Something with your unionfilesystems pool is breaking the Filesystems tab.
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!