java.io.FileNotFoundException: /opt/j2ee/domains/sonatype.org/oss.repository/nexus-professional-webapp-1.9.0.2-20110330-003359/./../sonatype-work/nexus/conf/security.xml (Permission denied)

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • so last night oss.sonatype.org is rebooted and today I got many complaints from ossrh users, saying they are having 401 errors then I found their roles are lost and the cause is: {noformat} java.io.FileNotFoundException: /opt/j2ee/domains/sonatype.org/oss.repository/nexus-professional-webapp-1.9.0.2-20110330-003359/./../sonatype-work/nexus/conf/security.xml (Permission denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.sonatype.security.model.source.FileModelConfigurationSource.saveConfiguration(FileModelConfigurationSource.java:247) at org.sonatype.security.model.source.FileModelConfigurationSource.storeConfiguration(FileModelConfigurationSource.java:142) at org.sonatype.security.realms.tools.DefaultConfigurationManager.save(DefaultConfigurationManager.java:540) at com.sonatype.nexus.staging.security.StagingSecurityResource.onEvent(StagingSecurityResource.java:331) at org.sonatype.plexus.appevents.AbstractSimpleEventMulticaster.notifyEventListeners(AbstractSimpleEventMulticaster.java:55) at com.sonatype.nexus.staging.DefaultStagingRepositoryManager.dropStageRepository(DefaultStagingRepositoryManager.java:229) at com.sonatype.nexus.staging.DefaultStagingManager.dropStagingRepository(DefaultStagingManager.java:664) at com.sonatype.nexus.staging.promotion.PromotionTask.doRun(PromotionTask.java:203) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:192) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) {noformat} and {noformat} -rw-r--r-- 1 j2ee-repository j2ee-repository 121 Feb 3 21:00 procurement.xml -rw-r--r-- 1 j2ee-repository j2ee-repository 896227 Feb 3 21:00 procurement.xml.bak -rw-r--r-- 1 j2ee-repository j2ee-repository 531 Apr 6 13:18 security-configuration.xml -rw-r--r-- 1 bdemers bdemers 6143293 Mar 29 08:42 security.xml {noformat} Nexus should return something like 500 error when it can not persist security data.
    via by Juven Xu,
  • TeamCity is leaking caches/git file descriptors
    via by Unknown author,
  • Marker Issues
    via GitHub by TheSeize
    ,
  • Embedded Jetty | Page number 3 | PC E-World
    via by Unknown author,
    • java.io.FileNotFoundException: /opt/j2ee/domains/sonatype.org/oss.repository
    • exus-professional-webapp-1.9.0.2-20110330-003359/./../sonatype-work
    • exus/conf/security.xml (Permission denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.sonatype.security.model.source.FileModelConfigurationSource.saveConfiguration(FileModelConfigurationSource.java:247) at org.sonatype.security.model.source.FileModelConfigurationSource.storeConfiguration(FileModelConfigurationSource.java:142) at org.sonatype.security.realms.tools.DefaultConfigurationManager.save(DefaultConfigurationManager.java:540) at com.sonatype.nexus.staging.security.StagingSecurityResource.onEvent(StagingSecurityResource.java:331) at org.sonatype.plexus.appevents.AbstractSimpleEventMulticaster.notifyEventListeners(AbstractSimpleEventMulticaster.java:55) at com.sonatype.nexus.staging.DefaultStagingRepositoryManager.dropStageRepository(DefaultStagingRepositoryManager.java:229) at com.sonatype.nexus.staging.DefaultStagingManager.dropStagingRepository(DefaultStagingManager.java:664) at com.sonatype.nexus.staging.promotion.PromotionTask.doRun(PromotionTask.java:203) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:192) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

    Users with the same issue

    Matty
    Matty1 times, last one,
    Unknown visitor1 times, last one,
    Axelo
    Axelo2 times, last one,
    rp
    rp1 times, last one,
    Eric Henderson
    Eric Henderson20 times, last one,
    149 more bugmates