Error 401 on deploy/release:perform

View: New views
4 Messages — Rating Filter:   Alert me  

Error 401 on deploy/release:perform

by Clifton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm getting error 401 when I try to deploy to my artifactory instance. I've recently upgraded from a much older version of Artifactory but I also managed to perform at least one deployment since the upgrade. Could somebody help? It looks like my server tag has the correct uid/pwd to the developer admin account that I setup. Is there an easy way to diagnose the root cause to this problem? All I get on the console is error 401.

Re: Error 401 on deploy/release:perform

by Yoav Landman-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Looks like your authentication failed. The server side log (artifactory.log and access.log) should give you more information about possible authentication failures. Unfortunately maven discards anything from the response beside the status code (Artifactory does send back an error description that other REST tools emit).
On Mon, Nov 2, 2009 at 11:41 PM, Clifton <clifton.craig@...> wrote:

I'm getting error 401 when I try to deploy to my artifactory instance. I've
recently upgraded from a much older version of Artifactory but I also
managed to perform at least one deployment since the upgrade. Could somebody
help? It looks like my server tag has the correct uid/pwd to the developer
admin account that I setup. Is there an easy way to diagnose the root cause
to this problem? All I get on the console is error 401.

-----
Cliff
http://codeforfun.wordpress.com
http://old.nabble.com/file/u156847/Cliff-in-the-lab.png
--
View this message in context: http://old.nabble.com/Error-401-on-deploy-release%3Aperform-tp26157852p26157852.html
Sent from the Artifactory-Users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Artifactory-users mailing list
Artifactory-users@...
https://lists.sourceforge.net/lists/listinfo/artifactory-users




------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Artifactory-users mailing list
Artifactory-users@...
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Re: Error 401 on deploy/release:perform

by Clifton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This is crazy! I looked at my access log on the server after performing a deploy. It shows [DENIED DEPLOY] libs-snapshots-local:.. for anonymous/[my machine ip]

I am definitely setting the server tag in $MAVEN_HOME/conf/settings.xml and there's no overriding settings in my $HOME/.m2. I'm running the deploy from the cmd line and I can't seem to figure out why it's not sending the credentials. I'm gonna triple check my pom, copy/paste the server id from the pom into the settings.xml.

**D'oh***

I just figured it all out! I had been running maven from an entirely different location. Long story lengthened, a while back when I realized Apple was smart enough to pre-bundle Maven (which caused this very same problem) I became smart enough to copy my Subversion copy in place of the included version. I then forgot it was there and started checking out maven into another location I use across multiple machines. I assumed all along that this was the very same version that I was running since it had been picking up my repo settings. Thanx for all of your help and I feel silly now.

Yoav Landman-3 wrote:
Looks like your authentication failed. The server side log (artifactory.log
and access.log) should give you more information about possible
authentication failures. Unfortunately maven discards anything from the
response beside the status code (Artifactory does send back an error
description that other REST tools emit).

On Mon, Nov 2, 2009 at 11:41 PM, Clifton <clifton.craig@gmail.com> wrote:

>
> I'm getting error 401 when I try to deploy to my artifactory instance. I've
> recently upgraded from a much older version of Artifactory but I also
> managed to perform at least one deployment since the upgrade. Could
> somebody
> help? It looks like my server tag has the correct uid/pwd to the developer
> admin account that I setup. Is there an easy way to diagnose the root cause
> to this problem? All I get on the console is error 401.
>
> -----
> Cliff
> http://codeforfun.wordpress.com
> http://old.nabble.com/file/u156847/Cliff-in-the-lab.png
> --
> View this message in context:
> http://old.nabble.com/Error-401-on-deploy-release%3Aperform-tp26157852p26157852.html
> Sent from the Artifactory-Users mailing list archive at Nabble.com.
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Artifactory-users mailing list
> Artifactory-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Artifactory-users mailing list
Artifactory-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Re: Error 401 on deploy/release:perform

by Yossi Shaul-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
BTW, mvn help:effective-settings can help debugging such issues. It will print the "effective" settings.xml - the aggregated active maven settings from your maven home and user's home.


From: Clifton <clifton.craig@...>
To: artifactory-users@...
Sent: Wed, November 4, 2009 3:58:42 PM
Subject: Re: [Artifactory-users] Error 401 on deploy/release:perform


This is crazy! I looked at my access log on the server after performing a
deploy. It shows [DENIED DEPLOY] libs-snapshots-local:.. for anonymous/[my
machine ip]

I am definitely setting the server tag in $MAVEN_HOME/conf/settings.xml and
there's no overriding settings in my $HOME/.m2. I'm running the deploy from
the cmd line and I can't seem to figure out why it's not sending the
credentials. I'm gonna triple check my pom, copy/paste the server id from
the pom into the settings.xml.

**D'oh***

I just figured it all out! I had been running maven from an entirely
different location. Long story lengthened, a while back when I realized
Apple was smart enough to pre-bundle Maven (which caused this very same
problem) I became smart enough to copy my Subversion copy in place of the
included version. I then forgot it was there and started checking out maven
into another location I use across multiple machines. I assumed all along
that this was the very same version that I was running since it had been
picking up my repo settings. Thanx for all of your help and I feel silly
now.


Yoav Landman-3 wrote:

>
> Looks like your authentication failed. The server side log
> (artifactory.log
> and access.log) should give you more information about possible
> authentication failures. Unfortunately maven discards anything from the
> response beside the status code (Artifactory does send back an error
> description that other REST tools emit).
>
> On Mon, Nov 2, 2009 at 11:41 PM, Clifton <clifton.craig@...> wrote:
>
>>
>> I'm getting error 401 when I try to deploy to my artifactory instance.
>> I've
>> recently upgraded from a much older version of Artifactory but I also
>> managed to perform at least one deployment since the upgrade. Could
>> somebody
>> help? It looks like my server tag has the correct uid/pwd to the
>> developer
>> admin account that I setup. Is there an easy way to diagnose the root
>> cause
>> to this problem? All I get on the console is error 401.
>>
>> -----
>> Cliff
>> http://codeforfun.wordpress.com
>> http://old.nabble.com/file/u156847/Cliff-in-the-lab.png
>> --
>> View this message in context:
>> http://old.nabble.com/Error-401-on-deploy-release%3Aperform-tp26157852p26157852.html
>> Sent from the Artifactory-Users mailing list archive at Nabble.com.
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference

>> _______________________________________________
>> Artifactory-users mailing list
>> Artifactory-users@...
>> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Artifactory-users mailing list
> Artifactory-users@...
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
>


-----
Cliff
http://codeforfun.wordpress.com
http://old.nabble.com/file/u156847/Cliff-in-the-lab.png
--
View this message in context: http://old.nabble.com/Error-401-on-deploy-release%3Aperform-tp26157852p26196735.html
Sent from the Artifactory-Users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Artifactory-users mailing list
Artifactory-users@...
https://lists.sourceforge.net/lists/listinfo/artifactory-users


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Artifactory-users mailing list
Artifactory-users@...
https://lists.sourceforge.net/lists/listinfo/artifactory-users