Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SEVERE: Unable to created directory /HUDSON_ROOT_DIR/data_restore #2

Open
jrichardsz opened this issue Jul 20, 2016 · 0 comments
Open

Comments

@jrichardsz
Copy link

jrichardsz commented Jul 20, 2016

Im working in openshift. I have a Jenkins and when I execute a restore operation I have this error

2016-07-20 18_22_08-zoomit zoom window

This is due to in openshift we have not root permissions in all folders. I think this will be possible
not only in openshift ( folder permissions )

So instead of

task = new RestoreTask(configuration, Hudson.getInstance().getRootDir().getAbsolutePath(), filePath, getRestoreLogFile().getAbsolutePath(), res.getServletContext());

it would be great something like :

task = new RestoreTask(configuration, RESTORE_TEMP_PATH, res.getServletContext());

and add an option in the UI so the user may configure. Or maybe use the BACKUP_PATH.

Java file :
https://github.com/hudson3-plugins/backup-plugin/blob/master/src/main/java/org/jvnet/hudson/plugins/backup/BackupLink.java

doRestoreFile method

Thanks for this plugin!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant