Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
LinkBack Thread Tools Search this Thread Display Modes
  #171 (permalink)  
Old 10-13-2009, 12:08 PM
Moderator
 
Posts: 1,147
Default

Code:
su - root
echo $PATH
I believe that is what he is trying to get you to run. This will output the contents of the $PATH variable, showing where your shell is looking for executables.
Reply With Quote
  #172 (permalink)  
Old 10-13-2009, 12:36 PM
Advanced Member
 
Posts: 191
Default

Thanks ArcaneMagus:

root@zimbra:~# su - root
root@zimbra:~# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
root@zimbra:~#
Reply With Quote
  #173 (permalink)  
Old 10-14-2009, 05:21 AM
Active Member
 
Posts: 30
Default

the only thing I notice is that the binary sizes on your system are smaller than mine, but then it's a different distro so that probably explains. It wouldn't hurt to update the various binary packages the script uses, but otherwise the right binaries appear to be in the right place with the right permissions. Unless there's some unique typo's in your copy of the script that we can't see (feel free to attach the script here) i'm out of ideas
Reply With Quote
  #174 (permalink)  
Old 10-14-2009, 10:22 AM
Advanced Member
 
Posts: 191
Default

Attach is my code that you requested. Let me know what exactly I have missing in the code.
Well, when I check the backup this morning, I still have some of the same error message and a new one. This is the message that came up in the log:
Quote:
Host zimbra.my.account.com
Stopping stats...Done.
Stopping mta...Done.
Stopping spell...Done.
Stopping snmp...Done.
Stopping archiving...Done.
Stopping antivirus...Done.
Stopping antispam...Done.
Stopping imapproxy...Done.
Stopping memcached...Done.
Stopping mailbox...Done.
Stopping logger...Done.
Stopping ldap...Done.
Doing a fast cold sync...
Reinstating Zimbra's crontab...
Starting Zimbra...
Host zimbra.my.account.com
Starting ldap...Done.
Starting logger...Done.
Starting mailbox...Done.
Starting antispam...Done.
Starting antivirus...Done.
Starting snmp...Done.
Starting spell...Done.
Starting mta...Done.
Starting stats...Done.
Service down time was - Hr:0 Min:2 Sec:27
Running A hack... This one to check and start Stats subsystem
Hack not needed Stats seems to be running fine...
Writing a diff backup: 41_UHC_Zimbra_Backup_14-October-2009_DIFF
into: /srv/zimbra_dars/ with file sizes of max: 4395M
Saving Unencrtyped Archive...
Parse error on command line (or included files): Invalid argument for -A option
Dar had a problem!
mail: /usr/sbin/sendmail: No such file or directory
Can't send mail: sendmail process failed with error code 1
Unknown command: "sendmail="
Null message body; hope that's ok
Attached Files
File Type: txt scriptforbackup.txt (29.5 KB, 15 views)
Reply With Quote
  #175 (permalink)  
Old 10-16-2009, 09:55 AM
Advanced Member
 
Posts: 191
Default

I have my script attached. Can someone please help me with my backup. I don't want my system to crash without any backup of mails. Please help...
Thanks
Reply With Quote
  #176 (permalink)  
Old 10-17-2009, 06:59 AM
Active Member
 
Posts: 30
Default

the script appears to be moaning about the -A variable $CURRENTFULL which is defined earlier in the script by the following code:

Code:
CURRENTFULL=`ls -A -1 "$ARCHIVEDIR""$BACKUPWEEK"*$FULL_PREFIX*dar 2>/dev/null | cut -d . -f1 `
You can test the code on your system by replacing the $variables with the appropriate config for your system and then manually running the command from the shell, e.g. (on my box)

Code:
[root@zim]# ls -A -1 /opt/zimbra-backup/current/41*FULL*dar 2>/dev/null | cut -d . -f1
/opt/zimbra-backup/current/41_Zimbra_Backup_12-October-2009_FULL
It looks like you're making a DIFF backup, but if the script doesn't work on your system have you been able to make a FULL backup for the script to find with this code? ..if not (and the code returns nothing when you test it on your box) this might explain why the script fails at this point? If that's the case what error do you see when making a FULL backup?

The email error means your OS uses "sendmail" for the "mail" command but sendmail can't be found in /usr/sbin/sendmail .. Can you confirm that it's installed?

NB: I see that you cut/pasted one of my tweaks into the script, it's nice to see someone reads them! Please be aware that the tweaks are cummulative and you've missed one where I changed the name format of the Backuplist file. Your script uses the original code name to create the Backuplist file, so if you ever set ATTACHLIST to YES the name of the file created and the name of the file the attachlist tweak looks for won't match and it'll fail. At the moment you have ATTACHLIST set to NO so this doesn't affect the other issues you've got.

Christian
Reply With Quote
  #177 (permalink)  
Old 10-17-2009, 11:38 AM
Advanced Member
 
Posts: 191
Default

I don't think sendmail is installed. I am not sure if installing sendmail will affect my zimbra installation. Let me know how it can be installed without affecting zimbra.
Thanks

Quote:
Originally Posted by chewitt View Post
the script appears to be moaning about the -A variable $CURRENTFULL which is defined earlier in the script by the following code:

Code:
CURRENTFULL=`ls -A -1 "$ARCHIVEDIR""$BACKUPWEEK"*$FULL_PREFIX*dar 2>/dev/null | cut -d . -f1 `
You can test the code on your system by replacing the $variables with the appropriate config for your system and then manually running the command from the shell, e.g. (on my box)

Code:
[root@zim]# ls -A -1 /opt/zimbra-backup/current/41*FULL*dar 2>/dev/null | cut -d . -f1
/opt/zimbra-backup/current/41_Zimbra_Backup_12-October-2009_FULL
It looks like you're making a DIFF backup, but if the script doesn't work on your system have you been able to make a FULL backup for the script to find with this code? ..if not (and the code returns nothing when you test it on your box) this might explain why the script fails at this point? If that's the case what error do you see when making a FULL backup?

The email error means your OS uses "sendmail" for the "mail" command but sendmail can't be found in /usr/sbin/sendmail .. Can you confirm that it's installed?

NB: I see that you cut/pasted one of my tweaks into the script, it's nice to see someone reads them! Please be aware that the tweaks are cummulative and you've missed one where I changed the name format of the Backuplist file. Your script uses the original code name to create the Backuplist file, so if you ever set ATTACHLIST to YES the name of the file created and the name of the file the attachlist tweak looks for won't match and it'll fail. At the moment you have ATTACHLIST set to NO so this doesn't affect the other issues you've got.

Christian
Reply With Quote
  #178 (permalink)  
Old 10-17-2009, 11:54 AM
Zimbra Consultant & Moderator
 
Posts: 19,653
Default

Quote:
Originally Posted by borngunners View Post
I don't think sendmail is installed. I am not sure if installing sendmail will affect my zimbra installation. Let me know how it can be installed without affecting zimbra.
You can install it but you just make sure it's not set to start on boot.
__________________
Regards


Bill
Reply With Quote
  #179 (permalink)  
Old 10-17-2009, 09:12 PM
Advanced Member
 
Posts: 191
Default

Quote:
Originally Posted by phoenix View Post
You can install it but you just make sure it's not set to start on boot.
I have installed it and took care of all the other errors I have been having before the backup doing what it is suppose to be doing now and this is the log with some few more erros:

Quote:
full Backup started at: 22:29
Setting date & version Marker into /opt/zimbra/DATE_VERSION.txt
Doing a hotsync of /opt/zimbra/ to /tmp/fakebackup/
Disabling the Zimbra crontab...
Stopping the Zimbra server...

Host zimbra.my.account.com
Stopping stats...Done.
Stopping mta...Done.
Stopping spell...Done.
Stopping snmp...Done.
Stopping archiving...Done.
Stopping antivirus...Done.
Stopping antispam...Done.
Stopping imapproxy...Done.
Stopping memcached...Done.
Stopping mailbox...Done.
Stopping logger...Done.
Stopping ldap...Done.
Doing a fast cold sync...
Reinstating Zimbra's crontab...
Starting Zimbra...
Host zimbra.my.account.com
Starting ldap...Done.
Starting logger...Done.
Starting mailbox...Done.
Starting antispam...Done.
Starting antivirus...Done.
Starting snmp...Done.
Starting spell...Done.
Starting mta...Done.
Starting stats...Done.
Service down time was - Hr:0 Min:2 Sec:25
Running A hack... This one to check and start Stats subsystem
Hack not needed Stats seems to be running fine...
Writing a full backup: 41_Mail_Zimbra_Backup_17-October-2009_FULL
into: /backup/zimbra_dars/ with file sizes of max: 4395M
file "zmbackupfull.log", 62 lines, read only
Saving Unencrtyped Archive...


--------------------------------------------
58694 inode(s) saved
with 1147 hard link(s) recorded
0 inode(s) changed at the moment of the backup
0 inode(s) not saved (no inode/file change)
0 inode(s) failed to save (filesystem error)
0 inode(s) ignored (excluded by filters)
0 inode(s) recorded as deleted from reference backup
--------------------------------------------
Total number of inode considered: 58694
--------------------------------------------
EA saved for 0 inode(s)
--------------------------------------------
Creating MD5 Checksum for 41_Mail_Zimbra_Backup_17-October-2009_FULL.1.dar...
copy archive to 192.168.1.100 remote directory /srv/zimbra/
Warning: Identity file /root/.ssh/id_rsa not accessible: No such file or directory.
Host key verification failed.^M
lost connection
Error copying archive and checksum to 192.168.1.100
Can't send mail: sendmail process failed with error code 69
Unknown command: "sendmail="
Null message body; hope that's ok
Reply With Quote
  #180 (permalink)  
Old 10-17-2009, 10:04 PM
Active Member
 
Posts: 30
Default

well.. you've added a new problem by changing the config to use the "copy archive to external host" function which is failing to connect over SSH. The script is attempting key based auth but you've either not got a key or the right type of key (rsa in your current config) installed. There are plenty of FAQ/HOWTO's on setting up key-based SSH auth, you just need to get that working so you can use SCP from the shell.

and sendmail based "mail" still doesn't work. I suggest you experiment with some manual testing of "mail" using the -v (verbose) option to see the SMTP dialogue. Sendmail Error 69 means "resource unavailable" ..the question is which resource? ..the SMTP dialogue might shed some light on that.

Last edited by chewitt; 10-17-2009 at 10:10 PM..
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.