XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: 2 - Critical
    • Resolution: Unresolved
    • Affects Version/s: 5.8.3
    • Fix Version/s: None
    • Component/s: User Plugins
    • Severity:
      Critical

      Description

      Hello,

      I have a big issue trying to deploy a new version of my plugin. I put the new jar in the mounted directory (we mount /opt/jfrog/artifactory/etc to /root/artifactory which is local on the machine that hosts the artifactory container).

      However, I see the following in the logs:

      2018-07-05 09:03:43,532 [Thread-6] [INFO ] (o.j.c.w.ConfigurationManagerImpl:28) - [Node ID: 5db8c6e9eaf890c7:5b5b591f:16465b7309f:-8000] detected local modify for config 'artifactory.plugin.lib/artifactory-buddy-1.9-SNAPSHOT.jar'
      2018-07-05 09:03:45,195 [Thread-6] [INFO ] (o.j.c.w.ConfigurationManagerImpl:288) - [Node ID: 5db8c6e9eaf890c7:5b5b591f:16465b7309f:-8000] detected local create for config 'artifactory.plugin.lib/artifactory-buddy-1.9-SNAPSHOT.jar'
      2018-07-05 09:03:46,310 [Thread-6] [ERROR] (o.j.c.w.ConfigurationManagerImpl:266) - Config manager Failed to handle file change for file: /opt/jfrog/artifactory/etc/plugins/lib/artifactory-buddy-1.9-SNAPSHOT.jar
      java.io.IOException: File '/opt/jfrog/artifactory/etc/plugins/lib/artifactory-buddy-1.9-SNAPSHOT.jar' cannot be written to
      at org.apache.commons.io.FileUtils.openOutputStream(FileUtils.java:357) ~[commons-io-2.4.jar:2.4]
      at org.apache.commons.io.FileUtils.writeStringToFile(FileUtils.java:1928) ~[commons-io-2.4.jar:2.4]
      at org.apache.commons.io.FileUtils.write(FileUtils.java:2045) ~[commons-io-2.4.jar:2.4]
      at org.apache.commons.io.FileUtils.write(FileUtils.java:1988) ~[commons-io-2.4.jar:2.4]
      at org.jfrog.config.wrappers.ConfigWrapperImpl.dbToFile(ConfigWrapperImpl.java:467) ~[jfrog-config-1.3.14.jar:na]
      at org.jfrog.config.wrappers.ConfigWrapperImpl.modifyInternal(ConfigWrapperImpl.java:396) ~[jfrog-config-1.3.14.jar:na]
      at org.jfrog.config.wrappers.ConfigWrapperImpl.modifiedWithRetry(ConfigWrapperImpl.java:356) ~[jfrog-config-1.3.14.jar:na]
      at org.jfrog.config.wrappers.ConfigWrapperImpl.create(ConfigWrapperImpl.java:225) ~[jfrog-config-1.3.14.jar:na]
      at org.jfrog.config.wrappers.ConfigurationManagerImpl.handleFileCreatedEvent(ConfigurationManagerImpl.java:288) [jfrog-config-1.3.14.jar:na]
      at org.jfrog.config.wrappers.ConfigurationManagerImpl.fileChanged(ConfigurationManagerImpl.java:257) [jfrog-config-1.3.14.jar:na]
      at org.jfrog.config.wrappers.ConfigurationManagerImpl.fileChanged(ConfigurationManagerImpl.java:234) [jfrog-config-1.3.14.jar:na]
      at org.jfrog.config.watch.FileWatchingManager.doWatch(FileWatchingManager.java:93) [jfrog-config-1.3.14.jar:na]
      at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_131]
      2018-07-05 09:03:46,320 [Thread-6] [INFO ] (o.j.c.w.ConfigurationManagerImpl:272) - [Node ID: 5db8c6e9eaf890c7:5b5b591f:16465b7309f:-8000] detected local modify for config 'artifactory.plugin.lib/artifactory-buddy-1.9-SNAPSHOT.jar'
      2018-07-05 09:03:47,091 [Thread-6] [ERROR] (o.j.c.w.ConfigurationManagerImpl:266) - Config manager Failed to handle file change for file: /opt/jfrog/artifactory/etc/plugins/lib/artifactory-buddy-1.9-SNAPSHOT.jar
      java.io.IOException: File '/opt/jfrog/artifactory/etc/plugins/lib/artifactory-buddy-1.9-SNAPSHOT.jar' cannot be written to
      at org.apache.commons.io.FileUtils.openOutputStream(FileUtils.java:357) ~[commons-io-2.4.jar:2.4]
      at org.apache.commons.io.FileUtils.writeStringToFile(FileUtils.java:1928) ~[commons-io-2.4.jar:2.4]
      at org.apache.commons.io.FileUtils.write(FileUtils.java:2045) ~[commons-io-2.4.jar:2.4]
      at org.apache.commons.io.FileUtils.write(FileUtils.java:1988) ~[commons-io-2.4.jar:2.4]
      at org.jfrog.config.wrappers.ConfigWrapperImpl.dbToFile(ConfigWrapperImpl.java:467) ~[jfrog-config-1.3.14.jar:na]
      at org.jfrog.config.wrappers.ConfigWrapperImpl.modifyInternal(ConfigWrapperImpl.java:396) ~[jfrog-config-1.3.14.jar:na]
      at org.jfrog.config.wrappers.ConfigWrapperImpl.modifiedWithRetry(ConfigWrapperImpl.java:356) ~[jfrog-config-1.3.14.jar:na]
      at org.jfrog.config.wrappers.ConfigWrapperImpl.modified(ConfigWrapperImpl.java:230) ~[jfrog-config-1.3.14.jar:na]
      at org.jfrog.config.wrappers.ConfigurationManagerImpl.handleFileModifiedEvent(ConfigurationManagerImpl.java:272) [jfrog-config-1.3.14.jar:na]
      at org.jfrog.config.wrappers.ConfigurationManagerImpl.fileChanged(ConfigurationManagerImpl.java:261) [jfrog-config-1.3.14.jar:na]
      at org.jfrog.config.wrappers.ConfigurationManagerImpl.fileChanged(ConfigurationManagerImpl.java:234) [jfrog-config-1.3.14.jar:na]
      at org.jfrog.config.watch.FileWatchingManager.doWatch(FileWatchingManager.java:93) [jfrog-config-1.3.14.jar:na]
      at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_131]
      

      It seems that even if I execute the reload command: ` http://ulcentral.ullink.lan/artifactory/api/plugins/execute/cleanup` it won't use the new version.

      The documentation is lacking any information in this regard

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            td_ul TD (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Sync Status

                Connection: RTFACT Sync
                RTMID-17079 -
                SYNCHRONIZED
                • Last Sync Date: