2009/11/30 Soumen Trivedi <[email protected]>:
> Hello,
> I am using Archiva 1.2.2 standalone version and w.r.t to the error log:
> org.apache.maven.archiva.
>
>> security.ArchivaServletAuthenticator  -
>> Authorization Denied
>> [ip=192.168.2.24,permission=archiva-upload-repository,repo=snapshots]
>> : no matching permissions
>> 2009-11-30 13:47:27,923 [btpool0-8] INFO
>> org.apache.maven.archiva.security.ArchivaServletAuthenticator  -
>> Authorization Denied
>
>
>
> I have seen this KIND of problem before (and not the exact error log), it
> had to do with the userId being used to upload the artifacts DID NOT HAVE
> REPOSITORY MANAGER permission and only OBSERVER permission. After correcting
> that, the problem was resolved. I hope it helps for you too.


I havent changed the permissions, but I checked and it would seem that
by default the admin user has these roles -

    * Global Repository Manager
    * User Administrator
    * System Administrator
    * Repository Observer - snapshots
    * Repository Observer - internal
    * Repository Manager - snapshots
    * Repository Manager - internal



Any other thoughts?


>
> --
> Thanks & Regards,
> Soumen Trivedi
> Email: [email protected]
>
> On Mon, Nov 30, 2009 at 5:12 PM, Adam Retter 
> <[email protected]>wrote:
>
>> Hi there I have just installed 1.2.2 on Linux and am trying to deploy
>> to the snapshot repository but I get the Exception below on the server
>> side. I have been fiddling with this all day, but as yet with no
>> success, could someone take a look please?
>>
>> I am calling "mvn deploy" with the following in settings.xml -
>>
>> <server>
>> <id>internal</id>
>> <username>admin</username>
>> <password>myPassword</password>
>> </server>
>> <server>
>> <id>snapshots</id>
>> <username>admin</username>
>> <password>myPassword</password>
>> </server>
>>
>> <profile>
>>                        <id>archiva.new</id>
>>                        <activation>
>>                                    <activeByDefault>true</activeByDefault>
>>                        </activation>
>>                        <repositories>
>>                                    <repository>
>>
>> <id>uk.co.landmark.solutions.maven.internal</id>
>>                                                <name>Landmark
>> Solutions Internal Repository</name>
>>
>> <url>http://exsubv02:8080/archiva/repository/internal</url>
>>                                                <releases>
>>
>> <enabled>true</enabled>
>>                                                </releases>
>>                                                <snapshots>
>>
>> <enabled>false</enabled>
>>                                                </snapshots>
>>                                    </repository>
>>                                    <repository>
>>
>> <id>uk.co.landmark.solutions.maven.snapshots</id>
>>                                                <name>Landmark
>> Solutions Snapshots Repository</name>
>>
>> <url>http://exsubv02:8080/archiva/repository/snapshots</url>
>>                                                <releases>
>>
>> <enabled>false</enabled>
>>                                                </releases>
>>                                                <snapshots>
>>
>> <enabled>true</enabled>
>>                                                </snapshots>
>>                                    </repository>
>>                        </repositories>
>>                        <pluginRepositories>
>>                                    <pluginRepository>
>>
>> <id>uk.co.landmark.solutions.maven.internal.plugin</id>
>>                                                <name>Landmark
>> Solutions Internal Plugin Repository</name>
>>
>> <url>http://exsubv02:8080/archiva/repository/internal</url>
>>                                                <releases>
>>
>> <enabled>true</enabled>
>>                                                </releases>
>>                                                <snapshots>
>>
>> <enabled>false</enabled>
>>                                                </snapshots>
>>                                    </pluginRepository>
>>                                    <pluginRepository>
>>
>> <id>uk.co.landmark.solutions.maven.snapshots.plugin</id>
>>                                                <name>Landmark
>> Solutions Snapshots Plugin Repository</name>
>>
>> <url>http://exsubv02:8080/archiva/repository/snapshots</url>
>>                                                <releases>
>>
>> <enabled>false</enabled>
>>                                                </releases>
>>                                                <snapshots>
>>
>> <enabled>true</enabled>
>>                                                </snapshots>
>>                                    </pluginRepository>
>>                        </pluginRepositories>
>>            </profile>
>>
>>
>> And this in my pom.xml -
>>
>> <distributionManagement>
>>   <repository>
>>      <id>internal</id>
>>      <url>http://exsubv02:8080/archiva/repository/internal</url>
>>    </repository>
>>    <snapshotRepository>
>>        <id>snapshots</id>
>>        <url>http://exsubv02:8080/archiva/repository/snapshots</url>
>>    </snapshotRepository>
>>  </distributionManagement>
>>
>>
>> 2009-11-30 13:47:24,328 [btpool0-3] INFO
>> org.apache.maven.archiva.security.ArchivaServletAuthenticator  -
>> Authorization Denied
>> [ip=192.168.2.24,permission=archiva-upload-repository,repo=snapshots]
>> : no matching permissions
>> 2009-11-30 13:47:27,923 [btpool0-8] INFO
>> org.apache.maven.archiva.security.ArchivaServletAuthenticator  -
>> Authorization Denied
>> [ip=192.168.2.24,permission=archiva-upload-repository,repo=snapshots]
>> : no matching permissions
>> 2009-11-30 13:47:30,855 [pool-3-thread-1] ERROR
>> org.apache.maven.archiva.scheduled.executors.ArchivaIndexingTaskExecutor
>>  - Error occurred while executing indexing task
>> 'indexing-job:snapshots:Registers-Common-Current-20091130.155338-2.jar:add'
>> 2009-11-30 13:47:30,929 [pool-3-thread-1] ERROR
>> taskQueueExecutor#indexing  - Error executing task
>> org.codehaus.plexus.taskqueue.execution.TaskExecutionException: Error
>> occurred while executing indexing task
>> 'indexing-job:snapshots:Registers-Common-Current-20091130.155338-2.jar:add'
>>        at
>> org.apache.maven.archiva.scheduled.executors.ArchivaIndexingTaskExecutor.executeTask(ArchivaIndexingTaskExecutor.java:163)
>>        at
>> org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable$1.run(ThreadedTaskQueueExecutor.java:116)
>>        at
>> edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
>>        at
>> edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
>>        at
>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987)
>>        at
>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528)
>>        at java.lang.Thread.run(Thread.java:675)
>> 2009-11-30 13:47:31,084 [pool-3-thread-1] ERROR
>> org.apache.maven.archiva.scheduled.executors.ArchivaIndexingTaskExecutor
>>  - Error occurred while executing indexing task
>>
>> 'indexing-job:snapshots:Registers-Common-Current-20091130.155338-2.jar.md5:add'
>> 2009-11-30 13:47:31,085 [pool-3-thread-1] ERROR
>> taskQueueExecutor#indexing  - Error executing task
>> org.codehaus.plexus.taskqueue.execution.TaskExecutionException: Error
>> occurred while executing indexing task
>>
>> 'indexing-job:snapshots:Registers-Common-Current-20091130.155338-2.jar.md5:add'
>>        at
>> org.apache.maven.archiva.scheduled.executors.ArchivaIndexingTaskExecutor.executeTask(ArchivaIndexingTaskExecutor.java:163)
>>        at
>> org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable$1.run(ThreadedTaskQueueExecutor.java:116)
>>        at
>> edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
>>        at
>> edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
>>        at
>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987)
>>        at
>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528)
>>        at java.lang.Thread.run(Thread.java:675)
>> 2009-11-30 13:47:31,196 [pool-3-thread-1] ERROR
>> org.apache.maven.archiva.scheduled.executors.ArchivaIndexingTaskExecutor
>>  - Error occurred while executing indexing task
>>
>> 'indexing-job:snapshots:Registers-Common-Current-20091130.155338-2.jar.sha1:add'
>> 2009-11-30 13:47:31,197 [pool-3-thread-1] ERROR
>> taskQueueExecutor#indexing  - Error executing task
>> org.codehaus.plexus.taskqueue.execution.TaskExecutionException: Error
>> occurred while executing indexing task
>>
>> 'indexing-job:snapshots:Registers-Common-Current-20091130.155338-2.jar.sha1:add'
>>        at
>> org.apache.maven.archiva.scheduled.executors.ArchivaIndexingTaskExecutor.executeTask(ArchivaIndexingTaskExecutor.java:163)
>>        at
>> org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable$1.run(ThreadedTaskQueueExecutor.java:116)
>>        at
>> edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
>>        at
>> edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
>>        at
>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987)
>>        at
>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528)
>>        at java.lang.Thread.run(Thread.java:675)
>>
>>
>>
>> --
>> Adam Retter
>>
>> skype :adam.retter
>> http://www.adamretter.org.uk
>>
>



-- 
Adam Retter

skype :adam.retter
http://www.adamretter.org.uk

Reply via email to