cf push fails with "Unauthorized error: You are not authorized. Error: Invalid authorization"


Remi Tassing
 

Hi Jospeh,

I tried several things for a couple of days but it didn't work and I had no option but to start from scratch. Now it's working.

I notice one mistake I might have made was to use "SYSTEM_DOMAIN" for "common name" instead of "*.SYSTEM_DOMAIN" when creating the SSL certificate (openssl genrsa -out cf.key 1024).

I also notice some steps in the tutorial are slightly old/outdated w.r.t. to AWS EC2 versioning, configuration ...

I tried the command you sent (don't think it matters now) and it returns "logging_endpoint":"wss://loggregator.SYSTEM_DOMAIN:4443"

Remi


Heitor Meira <htrmeira@...>
 

We had a similar issue, we passed the buildpack that the application should
use and it worked.

I have no idea why this helped.

On Mon, Oct 5, 2015 at 7:01 PM, CF Runtime <cfruntime(a)gmail.com> wrote:

Are you using an aws elb or a ha_proxy instance for your load balancer?

If you curl api.SYSTEM_DOMAIN/v2/info, what is the logging_endpoint from
the response?

Joseph
CF Release Integration Team



On Mon, Oct 5, 2015 at 3:36 AM, remi clotaire tassing tagne <
tassingremi(a)gmail.com> wrote:

Hi,

So I've finally managed to deploy CF on AWS but haven't managed pushing
the most rudimentary node.js app. BTW, pushing this app to my local CF
instance worked.

I tried troubleshooting with "cf logs" and "cf events" and
"CF_TRACE=true" but I just can't figure out the root cause. I've even
created an org and space and a user with SpaceDeveloper role but without
luck. 'cf push' gives me:

cf push
Using manifest file /home/remi/workspace/apps/hello-nodejs/manifest.yml

Creating app hello-nodejs in org test / space test as cf...
OK

Creating route hello-nodejs.ip.address.xip.io...
OK

Binding hello-nodejs.ip.address.xip.io to hello-nodejs...
OK

Uploading hello-nodejs...
Uploading app files from: /home/remi/workspace/apps/hello-nodejs
Uploading 1K, 3 files
Done uploading
OK

timeout connecting to log server, no log will be shown
Starting app hello-nodejs in org test / space test as cf...
Warning: error tailing logs
Unauthorized error: You are not authorized. Error: Invalid authorization

FAILED
hello-nodejs failed to stage within 15.000000 minutes

Any idea where I should look for the problem?

Thanks in advance!

Remi
--
Heitor Meira
Undergraduate in Computer Science - www.ccc.ufcg.edu.br
Member of Distributed Systems Laboratory - www.lsd.ufcg.edu.br


CF Runtime
 

Are you using an aws elb or a ha_proxy instance for your load balancer?

If you curl api.SYSTEM_DOMAIN/v2/info, what is the logging_endpoint from
the response?

Joseph
CF Release Integration Team



On Mon, Oct 5, 2015 at 3:36 AM, remi clotaire tassing tagne <
tassingremi(a)gmail.com> wrote:

Hi,

So I've finally managed to deploy CF on AWS but haven't managed pushing
the most rudimentary node.js app. BTW, pushing this app to my local CF
instance worked.

I tried troubleshooting with "cf logs" and "cf events" and "CF_TRACE=true"
but I just can't figure out the root cause. I've even created an org and
space and a user with SpaceDeveloper role but without luck. 'cf push' gives
me:

cf push
Using manifest file /home/remi/workspace/apps/hello-nodejs/manifest.yml

Creating app hello-nodejs in org test / space test as cf...
OK

Creating route hello-nodejs.ip.address.xip.io...
OK

Binding hello-nodejs.ip.address.xip.io to hello-nodejs...
OK

Uploading hello-nodejs...
Uploading app files from: /home/remi/workspace/apps/hello-nodejs
Uploading 1K, 3 files
Done uploading
OK

timeout connecting to log server, no log will be shown
Starting app hello-nodejs in org test / space test as cf...
Warning: error tailing logs
Unauthorized error: You are not authorized. Error: Invalid authorization

FAILED
hello-nodejs failed to stage within 15.000000 minutes

Any idea where I should look for the problem?

Thanks in advance!

Remi


Remi Tassing
 

Hi,

So I've finally managed to deploy CF on AWS but haven't managed pushing the most rudimentary node.js app. BTW, pushing this app to my local CF instance worked.

I tried troubleshooting with "cf logs" and "cf events" and "CF_TRACE=true" but I just can't figure out the root cause. I've even created an org and space and a user with SpaceDeveloper role but without luck. 'cf push' gives me:

cf push
Using manifest file /home/remi/workspace/apps/hello-nodejs/manifest.yml

Creating app hello-nodejs in org test / space test as cf...
OK

Creating route hello-nodejs.ip.address.xip.io...
OK

Binding hello-nodejs.ip.address.xip.io to hello-nodejs...
OK

Uploading hello-nodejs...
Uploading app files from: /home/remi/workspace/apps/hello-nodejs
Uploading 1K, 3 files
Done uploading
OK

timeout connecting to log server, no log will be shown
Starting app hello-nodejs in org test / space test as cf...
Warning: error tailing logs
Unauthorized error: You are not authorized. Error: Invalid authorization

FAILED
hello-nodejs failed to stage within 15.000000 minutes

Any idea where I should look for the problem?

Thanks in advance!

Remi