Almost never (reboot). No (plugin)
Beiträge von bkeadle
-
-
even after manually deleting, it keeps happening
-
I'm receiving email alerts showing:
Code/etc/cron.daily/logrotate: error: error creating output file /var/log/nginx/openmediavault-webgui_access.log.1.gz: File exists error: error creating output file /var/log/nginx/openmediavault-webgui_error.log.1.gz: File exists run-parts: /etc/cron.daily/logrotate exited with return code 1
shouldn't logrotate be able to handle deleting previously rotated logs?
-
I was testing email notification by manually running the rsync job. However, I *did* receive the email when it ran as a cron job. Is that to be expected?
-
in the rsync job, I've enabled Send email, but I do not receive an email. Under Notification settings, and can send a test message and I receive it just fine
OMV version: 2.2.13 (Stone burner)
-
Well, yeah, I know how to immediately fix the problem (I actually used truncate). but is there a way to prevent these logs from growing this big in the first place?
-
-
Figured it out
I modified /usr/share/openmediavault/mkconf/rsync:
Code
Alles anzeigenlog=$(omv_config_get "//services/rsync/jobs/job[uuid='${uuid}']/comment") if [ -z "$log" ]; then log="/var/log/rsynclog.log" ; fi if [ $(wc -l $log | cut -d ' ' -f 1) -gt 99 ]; then sed -i -e "1,345 d" $log; fi ... -o "NOW=\$(date +\"%F %T\")" -n \ -o "echo \"=======================================================================================\" >> ${log}" -n\ -o "echo \"\$NOW BEGIN: ${srcuri}\" >> ${log}" -n\ ... -o "NOW=\$(date +\"%F %T\")" -n \ -o "echo \"\$NOW END: ${desturi}\" >> ${log}" -n\
-
what is correct? my guess at retrieving the comment value?
oh! I check the syntax of my script and I had an error. It's doing what I hoped! Thanks for the confirmation!
Figured it out
I modified /usr/share/openmediavault/mkconf/rsync:
Code
Alles anzeigenlog=$(omv_config_get "//services/rsync/jobs/job[uuid='${uuid}']/comment") if [ -z "$log" ]; then log="/var/log/rsynclog.log" ; fi if [ $(wc -l $log | cut -d ' ' -f 1) -gt 99 ]; then sed -i -e "1,345 d" $log; fi ... -o "NOW=\$(date +\"%F %T\")" -n \ -o "echo \"=======================================================================================\" >> ${log}" -n\ -o "echo \"\$NOW BEGIN: ${srcuri}\" >> ${log}" -n\ ... -o "NOW=\$(date +\"%F %T\")" -n \ -o "echo \"\$NOW END: ${desturi}\" >> ${log}" -n\
-
I'm doing some custom scripting, to be able to log start and end times of an rsync job. I'm wanting to utilize the Comment field of an rsync job as the value for the log file. How can I retrieve this information? Looking at the rsync mkconf I see this code:
Codesrcuri=$(omv_config_get "//services/rsync/jobs/job[uuid='${uuid}']/src") srcuriarg="${srcuri}" destsfref=$(omv_config_get "//services/rsync/jobs/job[uuid='${uuid}']/dest") desturi=$(omv_get_sharedfolder_path "${destsfref}") desturiarg=$(omv_escapeshellarg "${desturi}") destmntdir=$(omv_get_sharedfolder_mount_dir "${destsfref}")
which makes me think there is something similar to retrieve the Comment value. I thought...hoped...this would work:Am I close? Any suggestions?
-
When I login to the WebGUI, I see that the login is accepted, it flashes like it's going to the admin page, but then returns right back to the WebGUI login screen.
-
I did make some progress on this. I added lines 4,5 and 9,10
Code
Alles anzeigenFri Feb 24 18:08:17 root@omv-pw vi /usr/share/openmediavault/mkconf/rsync ... -o "trap cleanup 0 1 2 5 15" -n \ -o "NOW=\$(date +\"%F %T\")" -n \ -o "echo \"\$NOW BEGIN: ${srcuri}\" >> /var/log/rsync-OMV.log" -n\ -o "touch ${runfile}" -n \ ... -o " ${srcuriarg} ${desturiarg} & wait \$!" -n\ -o "NOW=\$(date +\"%F %T\")" -n \ -o "echo \"\$NOW END: ${srcuri}\" >> /var/log/rsync-OMV.log" -n\ ${OMV_CONFIG_FILE} | xmlstarlet unesc > ${filename}
Which creates an appended log /var/log/rsync-OMV.log
What I'd really like to do is to be able to reference the rsync job's destination or comment, so that a job can append to a job-specific log file:
e.g. /var/log/rsync-Installs.log
Is there some reference/variable that I can read from the job to get this Destination or Comment value? e.g.:
In fact, I would like to know how to retrieve the Comment value for the job, and I would simply make the comment the filename of the log file, e.g.: /var/log/rsync-Installs.log. Reviewing this code:
I was wondering if there was a similar command to get the Comment value. I had guessed it to be like:
but that didn't work. -
I'm looking for this too.
Either a way to log start and end time for these jobs, or actually get the email alert?
-
Thanks for that! I was *finally* able to get open-iscsi installed. I was wondering how to find a specific package and manually download and install.
-
Thank you for your reply:
Code
Alles anzeigen$ apt-cache policy open-iscsi open-iscsi: Installed: (none) Candidate: 2.0.873-3 Version table: 2.0.873-3 0 500 http://ftp.au.debian.org/debian/ wheezy/main i386 Packages Mon Jun 27 12:21:37 root@omv-cc ~ $ cat /etc/apt/sources.list deb http://ftp.au.debian.org/debian wheezy main contrib non-free deb http://ftp.debian.org/debian/ wheezy-updates main contrib non-free deb http://security.debian.org/ wheezy/updates main contrib non-free deb http://hwraid.le-vert.net/debian wheezy main Mon Jun 27 12:21:49 root@omv-cc ~
I have a backup of the orginal(?), but the current sources list was found elsewhere in the forums to get something else working. I tried putting back the original (just a simply file copy is all?), but still got the same results:
Code
Alles anzeigen$ cat /etc/apt/sources.list.bak # # deb cdrom:[Debian GNU/Linux 7.0.0 _Wheezy_ - Official Snapshot i386 LIVE/INSTALL Binary 20150629-09:31]/ wheezy contrib main non-free #deb cdrom:[Debian GNU/Linux 7.0.0 _Wheezy_ - Official Snapshot i386 LIVE/INSTALL Binary 20150629-09:31]/ wheezy contrib main non-free deb http://security.debian.org/ wheezy/updates main contrib non-free deb-src http://security.debian.org/ wheezy/updates main contrib non-free
-
I have two semi-identical OMV installations. The one I can install open-iscsi just fine. The other, I get:
Code$ apt-get install open-iscsi Reading package lists... Done Building dependency tree Reading state information... Done Package open-iscsi is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'open-iscsi' has no installation candidate
both have the same /etc/apt/sources.list
So why does one work but the other doesn't? How do I fix the other?
-
-
I have an OMV machine with 2 NICs. I only want OMV listening to one NIC so that I can have a different web service bound to the second nic (for BackupPC).
After having added the second NIC, I was suprised to see OMV having bound to the second IP as well. How can I keep OMV "connected" to a single NIC?
-
Got it!
permissions on remote-backup's ~/.ssh/authorized_keys was incorrect. changed it to 600 and now everything works!
geez!
-
I got that command from as revealed from OMV's cron job.I set up key exchange for root user, and changed the job to login as root and removed the extra options and it works as expected.
I'm sure now that the problem is with trying to ssh as my remote-backup user...and I'm prompted for a password.
I even tried this:
Code
Alles anzeigenroot@omv-pd:/var/lib/openmediavault/ssh/keys# ssh-copy-id -i openmediavault-1a5daba4-f676-4f33-a1b1-a7840deecf39.pub remote-backup@openfiler299 remote-backup@openfiler299's password: Now try logging into the machine, with "ssh 'remote-backup@openfiler299'", and check in: ~/.ssh/authorized_keys to make sure we haven't added extra keys that you weren't expecting. root@omv-pd:/var/lib/openmediavault/ssh/keys# ssh remote-backup@openfiler299 remote-backup@openfiler299's password:
and still getting prompted for remote-backup's password