Discussion:
Zenbackup errors
thunter0028
2012-12-31 20:51:15 UTC
Permalink
thunter0028 [http://community.zenoss.org/people/thunter0028] created the discussion

"Zenbackup errors"

To view the discussion, visit: http://community.zenoss.org/message/70732#70732

--------------------------------------------------------------
    I am gettig the following while trying to run a zenbackup:

[***@xxxxxxxx\backups]$ zenbackup --no-eventsdb --file=20121231_zenbackup.tgz
INFO:zenbackup:Getting ZEP dbname, user, password, port from configuration files.
INFO:zenbackup:Doing a partial backup of the events database.
INFO:zenbackup:Backup of events database completed in 0 seconds.
INFO:zenbackup:Backing up the ZODB.
INFO:zenbackup:Backup of ZODB database completed in 1 minute.
INFO:zenbackup:Backing up config files.
INFO:zenbackup:Backup of config files completed.
INFO:zenbackup:Backing up ZenPacks.
INFO:zenbackup:Backup of ZenPacks completed.
INFO:zenbackup:Backing up bin dir.
INFO:zenbackup:Backup of bin completed.
2012-12-31 15:48:34,401 INFO zenbackup: Backing up ZenPack contents.
2012-12-31 15:48:34,411 INFO zenbackup: Backup of ZenPack contents complete.
2012-12-31 15:48:34,411 INFO zenbackup: Backup of ZenPacks completed.
2012-12-31 15:48:34,411 INFO zenbackup: Backing up performance data (RRDs).
2012-12-31 15:48:35,735 INFO zenbackup: Backup of performance data completed in 1 second.
2012-12-31 15:48:35,735 INFO zenbackup: Packaging backup file.
2012-12-31 15:48:35,751 WARNING zenbackup: tar: 20121231_zenbackup.tgz: Cannot open: Permission denied
tar: Error is not recoverable: exiting now
tar: 20121231_zenbackup.tgz: Wrote only 4096 of 10240 bytes
tar: Error is not recoverable: exiting now


2012-12-31 15:48:35,752 CRITICAL zenbackup: Backup terminated abnormally.
2012-12-31 15:48:35,752 INFO zenbackup: Cleaning up staging directory /tmp/tmpo_5wl8
2012-12-31 15:48:35,873 INFO zenbackup: Backup completed successfully in 1 minute.

This just started happening and I am not able to make backups. Can anyone help?

Tony
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/70732#70732]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
jcurry
2013-01-01 12:24:59 UTC
Permalink
jcurry [http://community.zenoss.org/people/jcurry] created the discussion

"Re: Zenbackup errors"

To view the discussion, visit: http://community.zenoss.org/message/70755#70755

--------------------------------------------------------------
Well...
Your error messages says you don't have permission to write to 20121231_zenbackup.tgz - who owns that file and who are you running your backup command as?  Have you (or someone else) accidentally changed the permissions on this file or its directory?

The other thing that sometimes gives misleading error messages is if you run out of temporary filespace.  Zenoss actually creates the backup in temp space - under /tmp by default - and it is only at the end of the backup that it actually gets written to your --file parameter.  If /tmp looks a bit tight, you can always provide a --temp-dir parameter to zenbackup to specify where to use as temporary space - see zenbackup --help for more info.

Cheers,
Jane
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/70755#70755]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
thunter0028
2013-01-24 17:34:14 UTC
Permalink
thunter0028 [http://community.zenoss.org/people/thunter0028] created the discussion

"Re: Zenbackup errors"

To view the discussion, visit: http://community.zenoss.org/message/71198#71198

--------------------------------------------------------------
The answer was folder permissions. I had created the folder before running the backups so the were owned by root. A simple group and owner change to Zenoss solved the problem.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/71198#71198]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...