Rundeck S3 plugin











up vote
0
down vote

favorite












I am trying to push rundeck logs to S3 bucket and i followed this page - https://rundeck.org/docs/administration/cluster/logstore/s3-log-storage-plugin.html



Everything went well, but i stuck at some tmpdir error, which the document doest talks about :(



Below is the configuration files,



/etc/rundeck/framework.properties

# Send logs to S3 bucket
framework.plugin.ExecutionFileStorage.org.rundeck.amazon-s3.region=us-west-2
framework.plugin.ExecutionFileStorage.org.rundeck.amazon-s3.AWSAccessKeyId=SJSDHJJSDBSDHBLDSLA
framework.plugin.ExecutionFileStorage.org.rundeck.amazon-s3.AWSSecretKey=DKJSDBDS76t6sJDBJHDcVLpd
framework.plugin.ExecutionFileStorage.org.rundeck.amazon-s3.bucket=rundeck-exection-logs
framework.plugin.ExecutionFileStorage.org.rundeck.amazon-s3.path=logs/prod/execution-logs/${job.project}/${job.execid}.log
framework.plugin.ExecutionFileStorage.org.rundeck.amazon-s3.forceSigV4=true



/etc/rundeck/rundeck-config.properties
# Send logs to S3 bucket
rundeck.execution.logs.fileStoragePlugin=org.rundeck.amazon-s3


When i restart the rundeckd service, i am getting the below error on "/var/log/rundeck/rundeck.log",



    2018-11-22 13:53:38,479 [LogFileStorage1] ERROR rundeck.services.TaskRunner - An error occured while processing a task: java.io.IOException: No such file or directory
java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createTempFile(File.java:2024)
at java.io.File.createTempFile(File.java:2070)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite$StaticMetaMethodSiteNoUnwrap.invoke(StaticMetaMethodSite.java:133)
at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.call(StaticMetaMethodSite.java:91)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133)
at rundeck.services.ProjectService.getExecutionXmlFileForExecution(ProjectService.groovy:147)
at rundeck.services.ProjectService$getExecutionXmlFileForExecution.callCurrent(Unknown Source)
at rundeck.services.ProjectService.produceStorageFileForExecution(ProjectService.groovy:136)
at rundeck.services.logging.ExecutionFileProducer$produceStorageFileForExecution.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at rundeck.services.logging.ExecutionFileProducer$produceStorageFileForExecution.call(Unknown Source)
at rundeck.services.LogFileStorageService$_getExecutionFiles_closure21.doCall(LogFileStorageService.groovy:1123)
at sun.reflect.GeneratedMethodAccessor767.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1218)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1125)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1027)
at groovy.lang.Closure.call(Closure.java:414)
at groovy.lang.Closure.call(Closure.java:430)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2030)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2015)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2044)
at org.codehaus.groovy.runtime.dgm$160.invoke(Unknown Source)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callSafe(AbstractCallSite.java:87)
at rundeck.services.LogFileStorageService.getExecutionFiles(LogFileStorageService.groovy:1122)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1218)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1125)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1027)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1163)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1125)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1027)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:174)
at rundeck.services.LogFileStorageService$_runStorageRequest_closure3.doCall(LogFileStorageService.groovy:189)
at rundeck.services.LogFileStorageService$_runStorageRequest_closure3$doCall.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at rundeck.services.LogFileStorageService$_dequeueIncompleteLogStorage_closure9$doCall.call(Unknown Source)
at org.codehaus.groovy.grails.orm.hibernate.HibernateGormStaticApi$6.doInHibernate(HibernateGormStaticApi.groovy:517)
at org.codehaus.groovy.grails.orm.hibernate.GrailsHibernateTemplate.doExecute(GrailsHibernateTemplate.java:188)
at org.codehaus.groovy.grails.orm.hibernate.GrailsHibernateTemplate.execute(GrailsHibernateTemplate.java:132)
at org.codehaus.groovy.grails.orm.hibernate.GrailsHibernateTemplate$execute$0.call(Unknown Source)
at org.codehaus.groovy.grails.orm.hibernate.HibernateGormStaticApi.withNewSession(HibernateGormStaticApi.groovy:515)
at rundeck.LogFileStorageRequest.withNewSession(LogFileStorageRequest.groovy)
at rundeck.LogFileStorageRequest$withNewSession$2.call(Unknown Source)
at rundeck.services.LogFileStorageService.runStorageRequest(LogFileStorageService.groovy:186)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1218)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1125)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1027)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1163)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1125)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1027)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166)
at rundeck.services.LogFileStorageService$_afterPropertiesSet_closure1.doCall(LogFileStorageService.groovy:125)
at rundeck.services.LogFileStorageService$_afterPropertiesSet_closure1$doCall.call(Unknown Source)
at rundeck.services.TaskRunner.run(TaskRunner.groovy:44)
at org.springframework.core.task.SimpleAsyncTaskExecutor$ConcurrencyThrottlingRunnable.run(SimpleAsyncTaskExecutor.java:251)
at java.lang.Thread.run(Thread.java:748)


Please guide me, what i am missing here.



Thanks










share|improve this question


























    up vote
    0
    down vote

    favorite












    I am trying to push rundeck logs to S3 bucket and i followed this page - https://rundeck.org/docs/administration/cluster/logstore/s3-log-storage-plugin.html



    Everything went well, but i stuck at some tmpdir error, which the document doest talks about :(



    Below is the configuration files,



    /etc/rundeck/framework.properties

    # Send logs to S3 bucket
    framework.plugin.ExecutionFileStorage.org.rundeck.amazon-s3.region=us-west-2
    framework.plugin.ExecutionFileStorage.org.rundeck.amazon-s3.AWSAccessKeyId=SJSDHJJSDBSDHBLDSLA
    framework.plugin.ExecutionFileStorage.org.rundeck.amazon-s3.AWSSecretKey=DKJSDBDS76t6sJDBJHDcVLpd
    framework.plugin.ExecutionFileStorage.org.rundeck.amazon-s3.bucket=rundeck-exection-logs
    framework.plugin.ExecutionFileStorage.org.rundeck.amazon-s3.path=logs/prod/execution-logs/${job.project}/${job.execid}.log
    framework.plugin.ExecutionFileStorage.org.rundeck.amazon-s3.forceSigV4=true



    /etc/rundeck/rundeck-config.properties
    # Send logs to S3 bucket
    rundeck.execution.logs.fileStoragePlugin=org.rundeck.amazon-s3


    When i restart the rundeckd service, i am getting the below error on "/var/log/rundeck/rundeck.log",



        2018-11-22 13:53:38,479 [LogFileStorage1] ERROR rundeck.services.TaskRunner - An error occured while processing a task: java.io.IOException: No such file or directory
    java.io.IOException: No such file or directory
    at java.io.UnixFileSystem.createFileExclusively(Native Method)
    at java.io.File.createTempFile(File.java:2024)
    at java.io.File.createTempFile(File.java:2070)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
    at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite$StaticMetaMethodSiteNoUnwrap.invoke(StaticMetaMethodSite.java:133)
    at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.call(StaticMetaMethodSite.java:91)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133)
    at rundeck.services.ProjectService.getExecutionXmlFileForExecution(ProjectService.groovy:147)
    at rundeck.services.ProjectService$getExecutionXmlFileForExecution.callCurrent(Unknown Source)
    at rundeck.services.ProjectService.produceStorageFileForExecution(ProjectService.groovy:136)
    at rundeck.services.logging.ExecutionFileProducer$produceStorageFileForExecution.call(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
    at rundeck.services.logging.ExecutionFileProducer$produceStorageFileForExecution.call(Unknown Source)
    at rundeck.services.LogFileStorageService$_getExecutionFiles_closure21.doCall(LogFileStorageService.groovy:1123)
    at sun.reflect.GeneratedMethodAccessor767.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1218)
    at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1125)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1027)
    at groovy.lang.Closure.call(Closure.java:414)
    at groovy.lang.Closure.call(Closure.java:430)
    at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2030)
    at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2015)
    at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2044)
    at org.codehaus.groovy.runtime.dgm$160.invoke(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274)
    at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callSafe(AbstractCallSite.java:87)
    at rundeck.services.LogFileStorageService.getExecutionFiles(LogFileStorageService.groovy:1122)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1218)
    at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1125)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1027)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1163)
    at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1125)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1027)
    at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:174)
    at rundeck.services.LogFileStorageService$_runStorageRequest_closure3.doCall(LogFileStorageService.groovy:189)
    at rundeck.services.LogFileStorageService$_runStorageRequest_closure3$doCall.call(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
    at rundeck.services.LogFileStorageService$_dequeueIncompleteLogStorage_closure9$doCall.call(Unknown Source)
    at org.codehaus.groovy.grails.orm.hibernate.HibernateGormStaticApi$6.doInHibernate(HibernateGormStaticApi.groovy:517)
    at org.codehaus.groovy.grails.orm.hibernate.GrailsHibernateTemplate.doExecute(GrailsHibernateTemplate.java:188)
    at org.codehaus.groovy.grails.orm.hibernate.GrailsHibernateTemplate.execute(GrailsHibernateTemplate.java:132)
    at org.codehaus.groovy.grails.orm.hibernate.GrailsHibernateTemplate$execute$0.call(Unknown Source)
    at org.codehaus.groovy.grails.orm.hibernate.HibernateGormStaticApi.withNewSession(HibernateGormStaticApi.groovy:515)
    at rundeck.LogFileStorageRequest.withNewSession(LogFileStorageRequest.groovy)
    at rundeck.LogFileStorageRequest$withNewSession$2.call(Unknown Source)
    at rundeck.services.LogFileStorageService.runStorageRequest(LogFileStorageService.groovy:186)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1218)
    at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1125)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1027)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1163)
    at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1125)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1027)
    at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166)
    at rundeck.services.LogFileStorageService$_afterPropertiesSet_closure1.doCall(LogFileStorageService.groovy:125)
    at rundeck.services.LogFileStorageService$_afterPropertiesSet_closure1$doCall.call(Unknown Source)
    at rundeck.services.TaskRunner.run(TaskRunner.groovy:44)
    at org.springframework.core.task.SimpleAsyncTaskExecutor$ConcurrencyThrottlingRunnable.run(SimpleAsyncTaskExecutor.java:251)
    at java.lang.Thread.run(Thread.java:748)


    Please guide me, what i am missing here.



    Thanks










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I am trying to push rundeck logs to S3 bucket and i followed this page - https://rundeck.org/docs/administration/cluster/logstore/s3-log-storage-plugin.html



      Everything went well, but i stuck at some tmpdir error, which the document doest talks about :(



      Below is the configuration files,



      /etc/rundeck/framework.properties

      # Send logs to S3 bucket
      framework.plugin.ExecutionFileStorage.org.rundeck.amazon-s3.region=us-west-2
      framework.plugin.ExecutionFileStorage.org.rundeck.amazon-s3.AWSAccessKeyId=SJSDHJJSDBSDHBLDSLA
      framework.plugin.ExecutionFileStorage.org.rundeck.amazon-s3.AWSSecretKey=DKJSDBDS76t6sJDBJHDcVLpd
      framework.plugin.ExecutionFileStorage.org.rundeck.amazon-s3.bucket=rundeck-exection-logs
      framework.plugin.ExecutionFileStorage.org.rundeck.amazon-s3.path=logs/prod/execution-logs/${job.project}/${job.execid}.log
      framework.plugin.ExecutionFileStorage.org.rundeck.amazon-s3.forceSigV4=true



      /etc/rundeck/rundeck-config.properties
      # Send logs to S3 bucket
      rundeck.execution.logs.fileStoragePlugin=org.rundeck.amazon-s3


      When i restart the rundeckd service, i am getting the below error on "/var/log/rundeck/rundeck.log",



          2018-11-22 13:53:38,479 [LogFileStorage1] ERROR rundeck.services.TaskRunner - An error occured while processing a task: java.io.IOException: No such file or directory
      java.io.IOException: No such file or directory
      at java.io.UnixFileSystem.createFileExclusively(Native Method)
      at java.io.File.createTempFile(File.java:2024)
      at java.io.File.createTempFile(File.java:2070)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
      at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
      at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite$StaticMetaMethodSiteNoUnwrap.invoke(StaticMetaMethodSite.java:133)
      at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.call(StaticMetaMethodSite.java:91)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133)
      at rundeck.services.ProjectService.getExecutionXmlFileForExecution(ProjectService.groovy:147)
      at rundeck.services.ProjectService$getExecutionXmlFileForExecution.callCurrent(Unknown Source)
      at rundeck.services.ProjectService.produceStorageFileForExecution(ProjectService.groovy:136)
      at rundeck.services.logging.ExecutionFileProducer$produceStorageFileForExecution.call(Unknown Source)
      at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
      at rundeck.services.logging.ExecutionFileProducer$produceStorageFileForExecution.call(Unknown Source)
      at rundeck.services.LogFileStorageService$_getExecutionFiles_closure21.doCall(LogFileStorageService.groovy:1123)
      at sun.reflect.GeneratedMethodAccessor767.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
      at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1218)
      at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1125)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1027)
      at groovy.lang.Closure.call(Closure.java:414)
      at groovy.lang.Closure.call(Closure.java:430)
      at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2030)
      at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2015)
      at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2044)
      at org.codehaus.groovy.runtime.dgm$160.invoke(Unknown Source)
      at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274)
      at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callSafe(AbstractCallSite.java:87)
      at rundeck.services.LogFileStorageService.getExecutionFiles(LogFileStorageService.groovy:1122)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
      at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1218)
      at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1125)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1027)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1163)
      at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1125)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1027)
      at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:174)
      at rundeck.services.LogFileStorageService$_runStorageRequest_closure3.doCall(LogFileStorageService.groovy:189)
      at rundeck.services.LogFileStorageService$_runStorageRequest_closure3$doCall.call(Unknown Source)
      at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
      at rundeck.services.LogFileStorageService$_dequeueIncompleteLogStorage_closure9$doCall.call(Unknown Source)
      at org.codehaus.groovy.grails.orm.hibernate.HibernateGormStaticApi$6.doInHibernate(HibernateGormStaticApi.groovy:517)
      at org.codehaus.groovy.grails.orm.hibernate.GrailsHibernateTemplate.doExecute(GrailsHibernateTemplate.java:188)
      at org.codehaus.groovy.grails.orm.hibernate.GrailsHibernateTemplate.execute(GrailsHibernateTemplate.java:132)
      at org.codehaus.groovy.grails.orm.hibernate.GrailsHibernateTemplate$execute$0.call(Unknown Source)
      at org.codehaus.groovy.grails.orm.hibernate.HibernateGormStaticApi.withNewSession(HibernateGormStaticApi.groovy:515)
      at rundeck.LogFileStorageRequest.withNewSession(LogFileStorageRequest.groovy)
      at rundeck.LogFileStorageRequest$withNewSession$2.call(Unknown Source)
      at rundeck.services.LogFileStorageService.runStorageRequest(LogFileStorageService.groovy:186)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
      at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1218)
      at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1125)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1027)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1163)
      at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1125)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1027)
      at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166)
      at rundeck.services.LogFileStorageService$_afterPropertiesSet_closure1.doCall(LogFileStorageService.groovy:125)
      at rundeck.services.LogFileStorageService$_afterPropertiesSet_closure1$doCall.call(Unknown Source)
      at rundeck.services.TaskRunner.run(TaskRunner.groovy:44)
      at org.springframework.core.task.SimpleAsyncTaskExecutor$ConcurrencyThrottlingRunnable.run(SimpleAsyncTaskExecutor.java:251)
      at java.lang.Thread.run(Thread.java:748)


      Please guide me, what i am missing here.



      Thanks










      share|improve this question













      I am trying to push rundeck logs to S3 bucket and i followed this page - https://rundeck.org/docs/administration/cluster/logstore/s3-log-storage-plugin.html



      Everything went well, but i stuck at some tmpdir error, which the document doest talks about :(



      Below is the configuration files,



      /etc/rundeck/framework.properties

      # Send logs to S3 bucket
      framework.plugin.ExecutionFileStorage.org.rundeck.amazon-s3.region=us-west-2
      framework.plugin.ExecutionFileStorage.org.rundeck.amazon-s3.AWSAccessKeyId=SJSDHJJSDBSDHBLDSLA
      framework.plugin.ExecutionFileStorage.org.rundeck.amazon-s3.AWSSecretKey=DKJSDBDS76t6sJDBJHDcVLpd
      framework.plugin.ExecutionFileStorage.org.rundeck.amazon-s3.bucket=rundeck-exection-logs
      framework.plugin.ExecutionFileStorage.org.rundeck.amazon-s3.path=logs/prod/execution-logs/${job.project}/${job.execid}.log
      framework.plugin.ExecutionFileStorage.org.rundeck.amazon-s3.forceSigV4=true



      /etc/rundeck/rundeck-config.properties
      # Send logs to S3 bucket
      rundeck.execution.logs.fileStoragePlugin=org.rundeck.amazon-s3


      When i restart the rundeckd service, i am getting the below error on "/var/log/rundeck/rundeck.log",



          2018-11-22 13:53:38,479 [LogFileStorage1] ERROR rundeck.services.TaskRunner - An error occured while processing a task: java.io.IOException: No such file or directory
      java.io.IOException: No such file or directory
      at java.io.UnixFileSystem.createFileExclusively(Native Method)
      at java.io.File.createTempFile(File.java:2024)
      at java.io.File.createTempFile(File.java:2070)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
      at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
      at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite$StaticMetaMethodSiteNoUnwrap.invoke(StaticMetaMethodSite.java:133)
      at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.call(StaticMetaMethodSite.java:91)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133)
      at rundeck.services.ProjectService.getExecutionXmlFileForExecution(ProjectService.groovy:147)
      at rundeck.services.ProjectService$getExecutionXmlFileForExecution.callCurrent(Unknown Source)
      at rundeck.services.ProjectService.produceStorageFileForExecution(ProjectService.groovy:136)
      at rundeck.services.logging.ExecutionFileProducer$produceStorageFileForExecution.call(Unknown Source)
      at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
      at rundeck.services.logging.ExecutionFileProducer$produceStorageFileForExecution.call(Unknown Source)
      at rundeck.services.LogFileStorageService$_getExecutionFiles_closure21.doCall(LogFileStorageService.groovy:1123)
      at sun.reflect.GeneratedMethodAccessor767.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
      at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1218)
      at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1125)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1027)
      at groovy.lang.Closure.call(Closure.java:414)
      at groovy.lang.Closure.call(Closure.java:430)
      at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2030)
      at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2015)
      at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2044)
      at org.codehaus.groovy.runtime.dgm$160.invoke(Unknown Source)
      at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274)
      at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callSafe(AbstractCallSite.java:87)
      at rundeck.services.LogFileStorageService.getExecutionFiles(LogFileStorageService.groovy:1122)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
      at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1218)
      at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1125)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1027)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1163)
      at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1125)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1027)
      at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:174)
      at rundeck.services.LogFileStorageService$_runStorageRequest_closure3.doCall(LogFileStorageService.groovy:189)
      at rundeck.services.LogFileStorageService$_runStorageRequest_closure3$doCall.call(Unknown Source)
      at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
      at rundeck.services.LogFileStorageService$_dequeueIncompleteLogStorage_closure9$doCall.call(Unknown Source)
      at org.codehaus.groovy.grails.orm.hibernate.HibernateGormStaticApi$6.doInHibernate(HibernateGormStaticApi.groovy:517)
      at org.codehaus.groovy.grails.orm.hibernate.GrailsHibernateTemplate.doExecute(GrailsHibernateTemplate.java:188)
      at org.codehaus.groovy.grails.orm.hibernate.GrailsHibernateTemplate.execute(GrailsHibernateTemplate.java:132)
      at org.codehaus.groovy.grails.orm.hibernate.GrailsHibernateTemplate$execute$0.call(Unknown Source)
      at org.codehaus.groovy.grails.orm.hibernate.HibernateGormStaticApi.withNewSession(HibernateGormStaticApi.groovy:515)
      at rundeck.LogFileStorageRequest.withNewSession(LogFileStorageRequest.groovy)
      at rundeck.LogFileStorageRequest$withNewSession$2.call(Unknown Source)
      at rundeck.services.LogFileStorageService.runStorageRequest(LogFileStorageService.groovy:186)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
      at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1218)
      at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1125)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1027)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1163)
      at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1125)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1027)
      at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166)
      at rundeck.services.LogFileStorageService$_afterPropertiesSet_closure1.doCall(LogFileStorageService.groovy:125)
      at rundeck.services.LogFileStorageService$_afterPropertiesSet_closure1$doCall.call(Unknown Source)
      at rundeck.services.TaskRunner.run(TaskRunner.groovy:44)
      at org.springframework.core.task.SimpleAsyncTaskExecutor$ConcurrencyThrottlingRunnable.run(SimpleAsyncTaskExecutor.java:251)
      at java.lang.Thread.run(Thread.java:748)


      Please guide me, what i am missing here.



      Thanks







      amazon-s3 rundeck






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 22 at 14:02









      Karthikeyan

      11




      11
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          I found the issue.



          In /etc/rundeck/framework.properties



          # Base directory where instance of framework var dir is kept
          framework.var.dir= /var/lib/rundeck/var

          # Framework tmp dir
          framework.tmp.dir= ${framework.var.dir}/tmp


          But in /etc/rundeck/profile, it was pointing to below path,



          RUNDECK_TEMPDIR="/tmp/rundeck"


          Which i changed to below, and restarted the service and it worked,



          RUNDECK_TEMPDIR="/var/lib/rundeck/var/tmp"





          share|improve this answer





















            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53432667%2frundeck-s3-plugin%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            I found the issue.



            In /etc/rundeck/framework.properties



            # Base directory where instance of framework var dir is kept
            framework.var.dir= /var/lib/rundeck/var

            # Framework tmp dir
            framework.tmp.dir= ${framework.var.dir}/tmp


            But in /etc/rundeck/profile, it was pointing to below path,



            RUNDECK_TEMPDIR="/tmp/rundeck"


            Which i changed to below, and restarted the service and it worked,



            RUNDECK_TEMPDIR="/var/lib/rundeck/var/tmp"





            share|improve this answer

























              up vote
              0
              down vote













              I found the issue.



              In /etc/rundeck/framework.properties



              # Base directory where instance of framework var dir is kept
              framework.var.dir= /var/lib/rundeck/var

              # Framework tmp dir
              framework.tmp.dir= ${framework.var.dir}/tmp


              But in /etc/rundeck/profile, it was pointing to below path,



              RUNDECK_TEMPDIR="/tmp/rundeck"


              Which i changed to below, and restarted the service and it worked,



              RUNDECK_TEMPDIR="/var/lib/rundeck/var/tmp"





              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                I found the issue.



                In /etc/rundeck/framework.properties



                # Base directory where instance of framework var dir is kept
                framework.var.dir= /var/lib/rundeck/var

                # Framework tmp dir
                framework.tmp.dir= ${framework.var.dir}/tmp


                But in /etc/rundeck/profile, it was pointing to below path,



                RUNDECK_TEMPDIR="/tmp/rundeck"


                Which i changed to below, and restarted the service and it worked,



                RUNDECK_TEMPDIR="/var/lib/rundeck/var/tmp"





                share|improve this answer












                I found the issue.



                In /etc/rundeck/framework.properties



                # Base directory where instance of framework var dir is kept
                framework.var.dir= /var/lib/rundeck/var

                # Framework tmp dir
                framework.tmp.dir= ${framework.var.dir}/tmp


                But in /etc/rundeck/profile, it was pointing to below path,



                RUNDECK_TEMPDIR="/tmp/rundeck"


                Which i changed to below, and restarted the service and it worked,



                RUNDECK_TEMPDIR="/var/lib/rundeck/var/tmp"






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 25 at 6:03









                Karthikeyan

                11




                11






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53432667%2frundeck-s3-plugin%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    What visual should I use to simply compare current year value vs last year in Power BI desktop

                    How to ignore python UserWarning in pytest?

                    Alexandru Averescu