Beiträge von jonathankoren
-
-
Well, my monit script doesn't seem to be working consistently either. Lots of "failed to start" in the logs, but running monit validate from the shell causes it to restart.
-
My final problem was that after a shutdown, autoshutdown would die, and fail to restart. I believe I fixed that by creating an /etc/monit/conf.d/autoshutdown that contains
-
It appears to work now. Thanks.
-
I recently upgraded from OMV 2.x to OMV 3.0.59. The upgrade went smoothly but autoshutdown isn't hibernating like it used to. I can run pm-hibernate manually, and the box hibernates as expected, so it isn't a kernel or some other issue. Also, if I change the shutdown command from hibernate to shutdown, then box powers off as expected. It's something specific to hibernation.
Looking at the log, I can see the pm-hibernate command get issued, I see processes restarting, so I'm kind of at a loss.
Code
Alles anzeigenJan 15 01:57:13 openmediavault systemd[1]: Dependency failed for File System Check on /dev/disk/by-uuid/93b392a1-99ac-4150-9d70-b43b24441bd4. Jan 15 02:00:01 openmediavault CRON[10815]: (root) CMD (/usr/sbin/omv-mkgraph >/dev/null 2>&1) Jan 15 02:00:01 openmediavault rrdcached[1595]: Received FLUSHALL Jan 15 02:05:01 openmediavault CRON[14643]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1) Jan 15 02:05:18 openmediavault - : autoshutdown [10451]: INFO: Shutdown issued: 'pm-hibernate' Jan 15 02:05:18 openmediavault autoshutdown.sh[10451]: - : autoshutdown [10451]: INFO: Shutdown issued: 'pm-hibernate' Jan 15 02:05:26 openmediavault systemd[1]: Expecting device dev-disk-by\x2duuid-93b392a1\x2d99ac\x2d4150\x2d9d70\x2db43b24441bd4.device... Jan 15 02:05:26 openmediavault systemd[1]: Starting Run anacron jobs... Jan 15 02:05:26 openmediavault systemd[1]: Started Run anacron jobs. Jan 15 02:05:26 openmediavault anacron[15773]: Anacron 2.3 started on 2017-01-15 Jan 15 02:05:26 openmediavault anacron[15773]: Normal exit (0 jobs run) Jan 15 02:05:26 openmediavault - : autoshutdown [15774]: INFO: autoshutdown-script restart from /etc/pm/power.d/autoshutdown-restart Jan 15 02:05:26 openmediavault systemd[1]: Stopping autoshutdown... Jan 15 02:05:26 openmediavault systemd[1]: Starting autoshutdown... Jan 15 02:05:26 openmediavault systemd[1]: Started autoshutdown.q Jan 15 02:06:56 openmediavault systemd[1]: Job dev-disk-by\x2duuid-93b392a1\x2d99ac\x2d4150\x2d9d70\x2db43b24441bd4.device/start timed out. Jan 15 02:06:56 openmediavault systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-93b392a1\x2d99ac\x2d4150\x2d9d70\x2db43b24441bd4.device. Jan 15 02:06:56 openmediavault systemd[1]: Dependency failed for /media/93b392a1-99ac-4150-9d70-b43b24441bd4. Jan 15 02:06:56 openmediavault systemd[1]: Dependency failed for File System Check on /dev/disk/by-uuid/93b392a1-99ac-4150-9d70-b43b24441bd4. Jan 15 02:09:01 openmediavault CRON[16108]: (root) CMD ( [ -x /usr/lib/php5/sessionclean ] && /usr/lib/php5/sessionclean)
-
I'm (apparently) running OMV 1.0.24. (Why can't "About" tell the version number, instead of a tag cloud of random libraries? Seriously.)
I've run into a problem mounting my USB drive. Normally, when I plug in the drive and click "File Systems | Mount", OMV looks up the drives UUID, creates a directory named /media/9f-blah-blah-blah and executes `mount -text4 /dev/sdf1 /media/9f-blah-blah-blah`. Now whenever I try to mount the drive, it complains /media/usb0 not existing, so I have to manually create that. Normally, I'd just say "whatever" and leave it at that, but because the drive isn't being mounted under /media/9f-blah-blah-blah, the usbbackup plugin refuses to run, saying it can't find the drive.
Also, if you create /mnt/usb0, "File Systems | Mount" will work, but unmount won't, because it says it can't find the UUID of the drive.
Code
Alles anzeigenError #3003: exception 'OMVException' with message 'Failed to get configuration (xpath=//system/fstab/mntent[uuid=''])' in /usr/share/php/openmediavault/rpcservice.inc:551 Stack trace: #0 /usr/share/openmediavault/engined/rpc/fstab.inc(209): OMVRpcServiceAbstract->deleteConfigObjectByPath('//system/fstab/...', 'org.openmediava...') #1 [internal function]: OMVRpcServiceFsTab->delete(Array, Array) #2 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array) #3 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('delete', Array, Array) #4 /usr/share/openmediavault/engined/rpc/filesystemmgmt.inc(991): OMVRpc::exec('FsTab', 'delete', Array, Array) #5 [internal function]: OMVRpcServiceFileSystemMgmt->umount(Array, Array) #6 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array) #7 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('umount', Array, Array) #8 /usr/sbin/omv-engined(501): OMVRpc::exec('FileSystemMgmt', 'umount', Array, Array, 1) #9 {main}
What caused changed the mount point, and how can I fix it?
I'm pretty sure it was working before under 1.0.24 (but I don't really remember), so I'm at a loss. It definitely worked prior to my 1.0.24 upgrade in I guess October according the forum.
-
To answer my own question, yes it is a config issue. $GLOBALS['OMV_USBBACKUP_SCRIPTS_DIR'] isn't being set.
Adding OMV_USBBACKUP_SCRIPTS_DIR="/var/lib/openmediavault/usbbackup.d" to /etc/default/openmediavault resolved the issue. -
I recently upgraded from 0.5 to 1.0.24 , and I'm (trying) to run usbbackup 1.0.2 .
When I was running 0.5, I could run this plugin no problem, but after upgrade, it's failing with:
/bin/sh: 0: Can't open /rsync-aac0b665-7d09-4053-9691-3336de60452dThe file exists, just not under / (duh), but rather under the more sensible /var/lib/openmediavault/usbbackup.d
I believe this is simply some sort of misconfig, like an envvar isn't being set.
1) has anyone else seen this?
2) where would the usbbackup script (the one running the stuff under /var/lib/omv/usbbackup.d live?thanks.
-
Once I could log into the webgui, deleting and recreating the AFP share seemed to fix this issue. Even if it didn't, SMB sharing worked fine.
Problem Solved!
http://pbskids.org/video/?guid…7e-4dcb-9f08-2af1131d98e8 -
Using firefox instead of safari does solve the webgui problem!
Now on to the weird AFP stuff!
-
Regarding the failure to create files, this is a machine specific issue. Using SSH to log into OMV, all the directories behave as expected. Using another machine to mount the share is where the problem manifests.
-
-
Just to clarify about the webgui problems. I am not seeing the Amiga-esque "Incorrect username or password failure" message. The login page simply reloads.
-
I've been running OMV for almost a year now without problems, until this week, when I suddenly started experiencing two problems. I don't know if they're related.
Problem 1: I can no longer log in through the webgui. This is emphatically not a password issue. I haven't touched the webgui admin password since I installed it, and the password is stored in the browser's autocomplete. I have even tried changing the password using omv-firstaid, and I still can not move past the log in screen. Perhaps the oddest part is that I was logged in to the gui when I got logged out (perhaps through inactivity? I'm not entirely sure.) and haven't been able to get back in since. Checking /var/log/apache2/openmediavault-webgui_error.log reveals nothing. It is literally an empty file. error.log doesn't contain anything useful either. Checking /var/log/openmediavault reveals files that haven't been touched since January.
Problem 2: When I mount a share from my mac using AFP, some directories are acting read-only even though they report being RW. Just to be clear, I'm mounting the share as a known user. This user shares the same user name on both my laptop and OMV. On my mac, the directories report as being chmod 775 and having user/group ownership as 'jonathan staff'. SSHing into OMV, I see the directories with permissions 'drwxrwsr-x' with ownership 'jonathan photos' Exactly as expected. These permissions are recursive through the share, and report the same from both the mac and from the OMV shell. For some set of directories (and I don't understand what the membership function is) I can use the mac to create files in the directory, and in others I can't. (e.g. "touch: asdf: Permission denied") I haven't had this problem before. In fact right before this started, I had just written files into those directories earlier that night.
Desperate for straws to grab, I tried omv-update, and packages got updated. Trying omv-update again just now I got "E: Invalid operation DPkg::Options::=--force-confdef", but trying `apt-get update; apt-get dist-upgrade`worked, but it didn't fix anything. FWIW I have OMV 0.5.53 installed. I don't even know how to begin debugging this, since I can't even find a reasonable log message.
Any help? Thanks.
-
Apparently notifications was disabled on the general tab, but everything was enabled on the notifications tab.
Thanks
-
When I log in to admin gui, I get the yellow "Your configuration has changed, you must apply them," bar.
I have no idea what the changes are. Whatever I did, it has long since been forgotten. So I hit apply, and I get the error:
"Failed to execute command 'export LANG=C; monit restart collectd 2>&1': /etc/monit/monitrc:46: Error: service name conflict, fs_media_93b392a1-99ac-4150-9d70-b43b24441bd4 already defined '/media/93b392a1-99ac-4150-9d70-b43b24441bd4'"
Hmmm... Fire up vi, and kill all the sections that refer to 93b392, hit apply, and still no luck, but the sections are back.
It appears that OMV is trying to add the same section twice to monitrc, which of course doesn't work. Unfortunately, I can't OMV to simply revert the changes, or tell it that the changes have already been applied. Any help?
Here's sections in the bogus monitrc:
Code
Alles anzeigen# Alert if filesystem is missing or disk space gets low check filesystem fs_media_93b392a1-99ac-4150-9d70-b43b24441bd4 with path /media/93b392a1-99ac-4150-9d70-b43b24441bd4 if space usage > 80% for 5 times within 15 cycles then alert else if succeeded for 10 cycles then alert #Check requires monit 5.4 (included in Wheezy). #check program mp_media_93b392a1-99ac-4150-9d70-b43b24441bd4 with path "mountpoint -q '/media/93b392a1-99ac-4150-9d70-b43b24441bd4'" # if status == 1 then alert # Alert if filesystem is missing or disk space gets low check filesystem fs_media_93b392a1-99ac-4150-9d70-b43b24441bd4 with path /media/93b392a1-99ac-4150-9d70-b43b24441bd4 if space usage > 80% for 5 times within 15 cycles then alert else if succeeded for 10 cycles then alert #Check requires monit 5.4 (included in Wheezy). #check program mp_media_93b392a1-99ac-4150-9d70-b43b24441bd4 with path "mountpoint -q '/media/93b392a1-99ac-4150-9d70-b43b24441bd4'" # if status == 1 then alert
-
That seemed to work.
-
There was only one disk in the machine at the time of the installation.
This is the only disk in the bios boot order. -
I'm installing front theopenmediavault 0.5.0.24_amd64 from a USB thumb drive onto a system sata disk on an Asus H87I-Plus MB.
I'm running into 2 problems.
First, whenever the installation is complete, the system reboots, but then no bootable drives are found.
Second, If I go to reinstall again onto the system drive, it fails because "there's not enough space on disk" and so it fails to repartition or do anything else. Trying to mount the disk from the root shell looks weird because I guess frisk isn't looking a GPT partition table or something. It's very strange.
In the end, I have to constantly pull the drive and put it into a different machine and then erase the partition table.
I don't even know what to look for, since the install process is highly linear and then just says "success".