I didn't have a docker issue but when I couldn't login to my Web Panel I got useful info from this log:
/var/log/nginx/openmediavault-webgui_error.log
I didn't have a docker issue but when I couldn't login to my Web Panel I got useful info from this log:
/var/log/nginx/openmediavault-webgui_error.log
Solved my issue with duffr's answer:
chmod 777 /var/lib/php/sessions
Thank's votdev for pointing me to the logs! That was quite helpful!
FYI
On a cloned SD Card I also solved it with hugn's answer (which basically does the same to the "sessions" directory):
sudo rm -rf /var/lib/php/sessions
sudo mkdir -m 777 /var/lib/php/sessions
ls /var/lib/php -l
sudo nginx -s reload
Display MoreFor me it was root and not pi + admin password +
sudo rm -rf /var/lib/php/sessions
sudo mkdir -m 777 /var/lib/php/sessions
ls /var/lib/php -l
sudo nginx -s reload
Now it’s working
Thanks!!!
I had the same problem as the OP. hugn's answer solved it instantly! I'm happy, thanks!
root@rock64:~# systemctl stop php7.3-fpm
Failed to stop php7.3-fpm.service: Unit php7.3-fpm.service not loaded.
root@rock64:~# rm /var/lib/php/sessions/*
rm: cannot remove '/var/lib/php/sessions/*': No such file or directory
root@rock64:~# systemctl start php7.3-fpm
Failed to start php7.3-fpm.service: Unit php7.3-fpm.service not found
User Blocked:
I regularly used first-aid to "Reset failed login attempt counter".
Logs:
I found something in
/var/log/nginx/openmediavault-webgui_error.log
2020/11/19 15:46:57 [error] 1800#1800: *63 FastCGI sent in stderr: "PHP message: PHP Warning: session_start(): open(/var/lib/php/sessions/sess_d960ui2irim3oialm4hr26mje5, O_RDWR) failed: Permission denied (13) in /usr/share/php/openmediavault/session.inc on line 43" while reading response header from upstream, client: 127.0.0.1, server: openmediavault-webgui, request: "HEAD / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm-openmediavault-webgui.sock:", host: "127.0.0.1"
/var/log/nginx/openmediavault-webgui_access.log
I still can't login to my web control panel.
Here is a short video-capture of 2 login attempts with correct PW and a final one in contrast with an incorrect PW:
https://dl.dropboxusercontent.…dyxsdj/omv_login_loop.mp4
(I did refresh my browser Cache and tried it with different browsers)
Samba shares work fine.
Points 2 - 10 all work and confirm everything is valid
Point 11 "Submit diagnostic report to administrator" is attached.
worked with no errors
df -h
Filesystem Size Used Avail Use% Mounted on
udev 2.0G 0 2.0G 0% /dev
tmpfs 399M 5.9M 394M 2% /run
/dev/mmcblk1p7 15G 3.8G 11G 28% /
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/mmcblk1p6 112M 1000K 111M 1% /boot/efi
/dev/sdg1 1.8T 77M 1.7T 1% /srv/dev-disk-by-label-HD05
/dev/sdf1 1.8T 77M 1.7T 1% /srv/dev-disk-by-label-HD04
/dev/sda1 2.7T 2.7T 24G 100% /srv/dev-disk-by-label-HD01
/dev/sdb1 2.7T 2.1T 698G 75% /srv/dev-disk-by-label-HD02
/dev/sdc1 2.7T 2.7T 20G 100% /srv/dev-disk-by-label-parity
/dev/sde1 2.8T 89M 2.8T 1% /srv/dev-disk-by-label-parity2
/dev/sdd1 2.7T 1.2T 1.6T 42% /srv/dev-disk-by-label-HD03
folder2ram 2.0G 100M 1.9G 5% /var/log
folder2ram 2.0G 0 2.0G 0% /var/tmp
folder2ram 2.0G 0 2.0G 0% /var/lib/openmediavault/rrd
folder2ram 2.0G 1.1M 2.0G 1% /var/spool
folder2ram 2.0G 7.5M 2.0G 1% /var/lib/rrdcached
folder2ram 2.0G 12K 2.0G 1% /var/lib/monit
folder2ram 2.0G 51M 1.9G 3% /var/lib/netatalk/CNID
folder2ram 2.0G 420K 2.0G 1% /var/cache/samba
tmpfs 399M 0 399M 0% /run/user/0
overlay 15G 3.8G 11G 28% /var/lib/docker/overlay2/881636066e6b8926d3c012847b581831a1c629ed8c2d8b6010aa34c12dee3dd4/merged
shm 64M 0 64M 0% /var/lib/docker/containers/7e1faae1ac1864dc01a0943bb36b7e04abdcea03302809afc6cc4d72b14035fb/mounts/shm
overlay 15G 3.8G 11G 28% /var/lib/docker/overlay2/76033edeb49d21d34c9b21b03dba0cd097f8beee6def328fcb3bac2185eda95f/merged
shm 64M 0 64M 0% /var/lib/docker/containers/37f4812469be54bd7c26ab5be761b0de6c66cd3d18d5e89f1a6257bee1062f2c/mounts/shm
Display More
Suddenly, I cannot login to the Web Control Panel. (At the same time ssh is no problem.)
Credentials are correct (I am using Lastpass to auto fill the form fields). To be sure I have double checked and tried it manually as well.
The Login seems to work (no errors) but after a few seconds the Login screen is shown again. It is in a loop.
FYI: When I intentionally use a wrong password I get the usual red error message
What I've tried to fix it:
1)
omv-firstaid:
3 Change control panel administrator password
4 Reset failed login attampts
2)
apt-get update && apt-get upgrade
3)
sudo reboot
No success
What I suspect caused it:
The last time I was logged into the web panel I was using the "Update Manager".
I think the "upgrade" did not work. Unfortunately I can't recall the details.
After that the problem happened.
When I do this via ssh I get the following:
Sounds interesting!
The module looks good. How would I connect the module with the Fan?
Great work! I am interested in your File transfer speed.
This might be a long shot but have you tried to remove all "Authorized Devices"? (Settings > Authorized Devices)
When I used Plex via OMV Docker Image, I frequently had some Claim server issues. It seem to help to remove the browser from Authorized Devices. Then I had to login again from that browser. If I remember correctly that seemed to work a couple of times.
First go to "Diensten (Services) > SMB/CIFS"
Go to the tab "Shares"
Delete the shared folder. (This will remove it from the SMB service.)
Next:
Go to "Gedeelde mappen (Shared Folders)"
Select your shared folder.
Click on "Toegangsrechten (Privileges)" button.
Uncheck all checkmarks.
Look at the column "Verwijderen (Referenced)".
It should "Nee (NO)"
Now you should be able to delete the shared folder.
I have my hard drives in a FANTEC QB-X8US3 8x3,5" SATA HDD USB3.0 eSATA.
Connected via USB to a Rock64.
On the FANTEC I have SYNC mode on so that when the Rock64 is off, the device goes to sleep mode. In sleep mode the fans are off.
I don't mind running the Rock64 all the time, but I don't want the fans to run when I don't need the drives.
I am looking for some options...
What I tested:
method | fans off? | cons |
sudo poweroff the Rock64. | yes | starting the Rock64 when I need it takes some time |
unmount all drives sudo umount-l /dev/sda1 stop samba [font='Consolas, Courier New, Courier, monospace']sudo servicesmbd stop[/font] | no | - |
standby (spindown) drives hdparm -Y /dev/sda1 | no | - |
Topics I would be interested in are:
Display MoreHi all,
I've had my RaspberyPi running OMV4 for a while. Recenty the OpenVPN plugin got released, and I'd like to use it to access my NAS even when I'm not connected to my own network.
I've managed to setup the OpenVPN plugin, however, I'm struggling with the right configuration. I have already check most of the tutorials and posts, but I can't figure it out. This is my first time setting up a VPN connection to my own network, so I'd appreciate the help as I can't seem to figure out the correct DNS settings.
What I've done so far:
- Enabled OpenVPN in OMV, local IP 192.168.0.8 (fixed)
- VPN address 10.8.0.0
- mask 255.255.255.0
- PAM authentication off
- DNS server: no idea
- public address: No-IP hostname
- Opened port 1194 on my router (TP-Link TL-WR840N)
- Requested No-IP DDNS hostname
- Exported certificate from OMV and opened with OpenVPN
However, I get the following OpenVPN output:
Sun May 20 15:39:28 2018 TCP/UDP: Preserving recently used remote address: [AF_INET]94.209.48.38:1194
Sun May 20 15:39:28 2018 Socket Buffers: R=[65536->65536] S=[65536->65536]
Sun May 20 15:39:28 2018 UDP link local: (not bound)
Sun May 20 15:39:28 2018 UDP link remote: [AF_INET]94.209.48.38:1194
Sun May 20 15:39:28 2018 MANAGEMENT: >STATE:1526823568,WAIT,,,,,,
Hi Zwei.
I was wondering if you have managed to make the plugin work.
I could not make a vpn connection with my Phone via the OpenVPN App.
What I've done so far:
I can see the profile in the app:
OpenVPN Profile
http://mysubdomain.duckdns.org
However when I try to connect the error occurs:
There was an error attempting to connect to the selected server
Thank you! Yes you're right. Nextcloud
I've installed the duckDNS docker container (with TechnoDads Video tutorial. So I guess I got the basic setup right).
Of course I've set up a duckdns account with a subdomain.
However TechnoDad doesn't cover how to access the OMV NAS from outside?
https://[subdomain].duckdns.org doesn't work.
Do I have to make DDNS settings to my router, port forwarding etc.?
Schließe Monitor und Tastatur an deinen OMV Server an.
Dadurch sah ich in meinem Fall die Meldung:
[ 31.075696] FAT-fs Cmmcblk1p6): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
Give root password for maintainance
(or press control-D to continue)
Du kannst dich dann auch einloggen und dir /etc/fstab ansehen.
Bei mir war ein Eintrag in fstab der Probleme machte. Allerdings hatte das mit UnionFS plugin zu tun...
Connect to your OMV server via SSH or FTP.
Since I don't like opening text files with CLI editors like nano, I use an FTP client (Transmit (OSX)) that can open text files with my preferred Editor(s) (Brackets, Sublime Text).
1)
Open the file /etc/openmediavault/config.xml.
Look at/serach for the tags <mntent> and <sharedfolder>.
It looks like this:
<fstab>
<mntent>
<uuid>2d20739b-cee2-4b89-be6b-7a17daabff11</uuid>
<fsname>/dev/disk/by-label/HD01</fsname>
<dir>/srv/dev-disk-by-label-HD01</dir>
<type>ext4</type>
<opts>defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl</opts>
<freq>0</freq>
<passno>2</passno>
<hidden>0</hidden>
</mntent>
</fstab>
<shares>
<sharedfolder>
<uuid>de2c953f-8f78-4692-b39f-0605a03c1ff3</uuid>
<name>HD01</name>
<comment></comment>
<mntentref>2d20739b-cee2-4b89-be6b-7a17daabff44</mntentref>
<reldirpath>HD01/</reldirpath>
<privileges>
<privilege>
<type>user</type>
<name>tom</name>
<perms>7</perms>
</privilege>
</privileges>
</sharedfolder>
Display More
Do you see anything there (shared folders or disks) that is not in the OMV Web UI?
2)
Open /etc/fstab.
It looks like this:
# >>> [openmediavault]
/dev/disk/by-label/HD01 /srv/dev-disk-by-label-HD01 ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
/dev/disk/by-label/HD02 /srv/dev-disk-by-label-HD02 ext4
# <<< [openmediavault]
Do you see the removed disk? Or any disk that might look strange?
friendly reminder that 'USB storage sucks'™
XD!
the slow drive connected via SATA:
Command line used: iozone -e -I -a -s 500M -r 1024k -r 16384k -i 0 -i 1
Output is in kBytes/sec
Time Resolution = 0.000001 seconds.
Processor cache size set to 1024 kBytes.
Processor cache line size set to 32 bytes.
File stride size set to 17 * record size.
random random bkwd record stride
kB reclen write rewrite read reread read write read rewrite read fwrite frewrite fread freread
512000 1024 164993 159405 180624 182678
512000 16384 169892 167806 181646 183644
iozone test complete.
Display More