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)

Sonatype JIRA | Juven Xu | 6 years ago
  1. 0

    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.

    Sonatype JIRA | 6 years ago | Juven Xu
    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)
  2. 0

    TeamCity is leaking caches/git file descriptors

    YouTrack | 6 years ago
    java.io.FileNotFoundException: /data/teamcity/BuildServer/system/pluginData/customDataStorage/buildTypes/bt2613/485653500 (Too many open files)
  3. 0

    FileNotFoundException during saving of PDF file

    GitHub | 5 years ago | mbastian
    java.io.FileNotFoundException: C:\****\Untilted.pdf (Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Marker Issues

    GitHub | 4 years ago | TheSeize
    java.io.FileNotFoundException: plugins/dynmap/web/tiles/_markers_/marker_final.json.new (No such file or directory)
  6. 0

    Trouble with deploying Sonatype Nexus to Tomcat6 on Gentoo (log4j)

    Stack Overflow | 7 years ago | John
    java.io.FileNotFoundException: /dev/null/sonatype-work/nexus/conf/log4j.properties (Not a directory)
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. 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()
  2. Java RT
    FileOutputStream.<init>
    1. java.io.FileOutputStream.open(Native Method)
    2. java.io.FileOutputStream.<init>(FileOutputStream.java:179)
    3. java.io.FileOutputStream.<init>(FileOutputStream.java:131)
    3 frames
  3. ${project.groupId}:${project.artifactId}
    DefaultConfigurationManager.save
    1. org.sonatype.security.model.source.FileModelConfigurationSource.saveConfiguration(FileModelConfigurationSource.java:247)
    2. org.sonatype.security.model.source.FileModelConfigurationSource.storeConfiguration(FileModelConfigurationSource.java:142)
    3. org.sonatype.security.realms.tools.DefaultConfigurationManager.save(DefaultConfigurationManager.java:540)
    3 frames
  4. com.sonatype.nexus
    StagingSecurityResource.onEvent
    1. com.sonatype.nexus.staging.security.StagingSecurityResource.onEvent(StagingSecurityResource.java:331)
    1 frame
  5. ${project.groupId}:${project.artifactId}
    AbstractSimpleEventMulticaster.notifyEventListeners
    1. org.sonatype.plexus.appevents.AbstractSimpleEventMulticaster.notifyEventListeners(AbstractSimpleEventMulticaster.java:55)
    1 frame
  6. com.sonatype.nexus
    PromotionTask.doRun
    1. com.sonatype.nexus.staging.DefaultStagingRepositoryManager.dropStageRepository(DefaultStagingRepositoryManager.java:229)
    2. com.sonatype.nexus.staging.DefaultStagingManager.dropStagingRepository(DefaultStagingManager.java:664)
    3. com.sonatype.nexus.staging.promotion.PromotionTask.doRun(PromotionTask.java:203)
    3 frames
  7. ${project.groupId}:${project.artifactId}
    AbstractNexusTask.call
    1. org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:192)
    1 frame
  8. ${project.groupId}:${project.artifactId}
    DefaultScheduledTask.call
    1. org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338)
    1 frame
  9. Java RT
    FutureTask$Sync.innerRun
    1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    1 frame