We have the 'backup-daily' job scheduled to perform an incremental backup of
the Artifactory repository every weekday at 2:00AM

'Send Mail to Admins if there are Backup Errors' is selected under the
'Advanced' menu under 'Edit Backup' (Admin -> Services -> Backups -> Edit
Backup)

When the backup runs at 2:00AM it generates the following error email:

-------------------------- 8< ------------------------
Artifactory's system backup 'backup-daily' was completed with some errors.
Please see the server log for detailed information.
Your Artifactory base URL is: http://artifactory.acme.com:8081/artifactory/
The following errors have occurred:

Full system export failed: File /backup_storage_area/artifactory.config.xml
cannot be written to!: File /backup_storage_area/artifactory.config.xml
cannot be written to!
-------------------------- 8< ------------------------

I have confirmed that the Artifactory process is running as the
'artifactory' user. 
I have also confirmed that both the location '/backup_storage_area' and the
file 'artifatory.config.xml' are owned by the user 'artifactory' and have
the correct permissions. (I can edit/create/delete the file
'artifactory.config.xml' when logged in as the 'artifactory' user.)


Looking at the '/var/log/artifactory/consoleout.log' file would suggest that
the backup was successful:

-------------------------- 8< ------------------------
2013-04-04 02:00:00,036 [art-exec-1380] [INFO ]
(o.a.s.ArtifactoryApplicationContext:557) - Beginning full system export...
2013-04-04 02:00:00,037 [art-exec-1380] [INFO ]
(o.a.s.ArtifactoryApplicationContext:585) - Creating temp export directory:
/backup_storage_area/current
2013-04-04 02:00:00,037 [art-exec-1380] [INFO ]
(o.a.s.ArtifactoryApplicationContext:592) - Using backup directory:
'/backup_storage_area/current'.
2013-04-04 02:00:00,037 [art-exec-1380] [INFO ]
(o.a.c.CentralConfigServiceImpl:243) - Exporting config...
2013-04-04 02:00:00,176 [art-exec-1380] [INFO ]
(o.a.s.ArtifactoryApplicationContext:804) - Exporting security...
2013-04-04 02:00:00,839 [art-exec-1380] [INFO ]
(o.a.s.ArtifactoryApplicationContext:820) - Exporting build info...
2013-04-04 02:00:01,031 [art-exec-1380] [INFO ]
(o.a.r.s.RepositoryServiceImpl:734) - Exporting repositories...
2013-04-04 02:00:01,032 [art-exec-1380] [INFO ] (o.a.r.j.JcrRepoBase :166) -
Exporting repository 'libs-release-local' to
'/backup_storage_area/current/repositories/libs-release-local'.
2013-04-04 02:00:13,276 [art-exec-1380] [INFO ] (o.a.r.j.JcrRepoBase :166) -
Exporting repository 'libs-snapshot-local' to
'/backup_storage_area/current/repositories/libs-snapshot-local'.
2013-04-04 02:00:13,346 [art-exec-1380] [INFO ] (o.a.r.j.JcrRepoBase :166) -
Exporting repository 'plugins-release-local' to
'/backup_storage_area/current/repositories/plugins-release-local'.
2013-04-04 02:00:13,386 [art-exec-1380] [INFO ] (o.a.r.j.JcrRepoBase :166) -
Exporting repository 'plugins-snapshot-local' to
'/backup_storage_area/current/repositories/plugins-snapshot-local'.

...

13-04-04 02:04:07,662 [art-exec-1380] [INFO ] (o.a.r.j.JcrRepoBase :166) -
Exporting repository 'org-matheclipse-repository-cache' to
'/backup_storage_area/current/repositories/org-matheclipse-repository-cache'.
2013-04-04 02:04:08,014 [art-exec-1380] [INFO ] (o.a.r.j.JcrRepoBase :166) -
Exporting repository 'jboss-deprecated-cache' to
'/backup_storage_area/current/repositories/jboss-deprecated-cache'.
2013-04-04 02:04:09,655 [art-exec-1380] [INFO ] (o.a.r.j.JcrRepoBase :166) -
Exporting repository 'jboss-public-cache' to
'/backup_storage_area/current/repositories/jboss-public-cache'.
2013-04-04 02:04:23,391 [art-exec-1380] [INFO ]
(o.a.s.ArtifactoryApplicationContext:671) - Full system export completed
successfully.

-------------------------- 8< ------------------------

Looking at the timestamps of the newly created files in the
'/backup_storage_area' directory would also seem to suggest that the backup
successfully wrote them to disk.

However, what error did the backup process catch that prompted it to fire
the mail - especially if the console output suggest that the backup was
successful?



--
View this message in context: 
http://forums.jfrog.org/Scheduled-backup-generating-error-email-artifactory-config-xml-cannot-be-written-to-tp7578738.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to