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

Using file storage for config storage tree causes some problems #3960

Closed
gschueler opened this issue Aug 30, 2018 · 0 comments · Fixed by #3962
Closed

Using file storage for config storage tree causes some problems #3960

gschueler opened this issue Aug 30, 2018 · 0 comments · Fixed by #3962
Labels
Milestone

Comments

@gschueler
Copy link
Member

Describe the bug

If the config storage tree is configured to use 'file' provider, several errors occur in the app. such as "not a directory path: acls" or "not a directory path: projects/myproject/acls".

org.rundeck.storage.api.StorageException: not a directory path: acls
	at org.rundeck.storage.api.StorageException.listException(StorageException.java:85)
	at org.rundeck.storage.data.file.FileTree.filterResources(FileTree.java:166)
	at org.rundeck.storage.data.file.FileTree.listDirectory(FileTree.java:120)
	at org.rundeck.storage.impl.DelegateTree.listDirectory(DelegateTree.java:71)
	at org.rundeck.storage.impl.DelegateTree.listDirectory(DelegateTree.java:71)
	at org.rundeck.storage.conf.ListenerTree.listDirectory(ListenerTree.java:97)
	at org.rundeck.storage.impl.DelegateTree.listDirectory(DelegateTree.java:71)
	at org.rundeck.storage.impl.DelegateTree.listDirectory(DelegateTree.java:71)
	at org.rundeck.storage.impl.StringToPathTree.listDirectory(StringToPathTree.java:66)
	at rundeck.services.ConfigStorageService.$tt__listDirPaths(ConfigStorageService.groovy:71)

Additionally, saving a new project config file fails with "NullPointerException" "Cannot invoke method propertyNames() on null object"

Caused by: java.lang.NullPointerException: Cannot invoke method propertyNames() on null object
	at rundeck.services.ProjectManagerService.mergeProperties(ProjectManagerService.groovy:603)
	at rundeck.services.ProjectManagerService.$tt__mergeProjectProperties(ProjectManagerService.groovy:588)
	at grails.gorm.transactions.GrailsTransactionTemplate$2.doInTransaction(GrailsTransactionTemplate.groovy:94)
	at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
	at grails.gorm.transactions.GrailsTransactionTemplate.execute(GrailsTransactionTemplate.groovy:91)
	at rundeck.services.ProjectManagerService.$tt__mergeProjectProperties(ProjectManagerService.groovy:565)
	at grails.gorm.transactions.GrailsTransactionTemplate$2.doInTransaction(GrailsTransactionTemplate.groovy:94)
	at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
	at grails.gorm.transactions.GrailsTransactionTemplate.execute(GrailsTransactionTemplate.groovy:91)
	at com.dtolabs.rundeck.server.projects.RundeckProject.mergeProjectProperties(RundeckProject.java:82)
	at rundeck.services.FrameworkService.updateFrameworkProjectConfig(FrameworkService.groovy:249)
	at rundeck.controllers.FrameworkController.saveProject(FrameworkController.groovy:1215)
	... 83 common frames omitted

My Rundeck detail

  • Rundeck version: 3.0

To Reproduce

Setup config storage tree using file provider in rundeck-config:

rundeck.config.storage.provider.1.type=file
rundeck.config.storage.provider.1.path=/
rundeck.config.storage.provider.1.config.baseDir=/tmp/rd-store-configs

Expected behavior

Rundeck works as before, (excepting missing acls/project configs)
Additional context

Creating some missing dirs allows certain pages to load, but is not a very workable workaround.

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

Successfully merging a pull request may close this issue.

1 participant