ytrstu / vosao

Automatically exported from code.google.com/p/vosao
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Logging into v0.6.6 for the first time: so far, no luck... #270

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I've deployed v0.6.6 using the AppEngine 1.3.5 SDK, using the prescribed 
method: exploding the war and issuing appcfg.cmd update on the -.war folder.

After opening my browser to the right -.appspot.com address, I'm presented with 
the Google log-in screen, after which I end up on a page stating:

=== SNIP ===
Error: Forbidden
Your client does not have permission to get URL /setup from this server.
=== SNIP ===

In the GAE/J dashboard log, I'see the following trace:

=== SNIP ===
07-22 09:49AM 54.435 
/_ah/login_required/?continue=http://[deleted].appspot.com/setup 404 136ms 
106cpu_ms 73api_cpu_ms 0kb Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; 
rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6 (.NET CLR 3.5.30729),gzip(gfe)
91.176.92.20 - - [22/Jul/2010:09:49:54 -0700] "GET 
/_ah/login_required/?continue=http://[deleted].appspot.com/setup HTTP/1.1" 404 
211 - "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6) 
Gecko/20100625 Firefox/3.6.6 (.NET CLR 3.5.30729),gzip(gfe)" 
"[deleted].appspot.com" ms=137 cpu_ms=107 api_cpu_ms=73 cpm_usd=0.003038
I 07-22 09:49AM 54.493
javax.servlet.ServletContext log:  Velocity  [error] ResourceManager : unable 
to find resource '/_ah/login_required/index.vm' in any resource loader.
I 07-22 09:49AM 54.493
javax.servlet.ServletContext log:  Velocity  [debug] Resource not found for 
path '/_ah/login_required/index.vm' - 
org.apache.velocity.exception.ResourceNotFoundException: Unable to find 
resource '/_ah/login_required/index.vm'
=== SNIP ===

There are two admin accounts associated with this app, a Google App account and 
a regular Google account.

The app was deployed with a Google App account.

The Google App account requires Federated Login on GAE/J, but that didn't work 
to start with, after which I decided to fall back to the Google Accounts API 
setting.

The second Google Account was added as admin after that, in an attempt to 
continue with a regular Google Account, but to avail.

Original issue reported on code.google.com by me.dannm...@gmail.com on 22 Jul 2010 at 5:45

GoogleCodeExporter commented 8 years ago
Go to the app engine dashboard, click versions, then click the Live URI link. 
For some reason this worked for me.

Original comment by rquast%o...@gtempaccount.com on 22 Jul 2010 at 11:25

GoogleCodeExporter commented 8 years ago
I've managed to log in to the site, but with great difficulty.

The problem seems related to issues with Google's authentication mechanism, 
which makes it hard (or confusing) to use multiple services through multiple 
accounts at the same time, in the same browser.

There is work in progress to amend this situation described here: 
http://googlesystem.blogspot.com/2010/07/google-tests-multiple-accounts-sign-in.
html

I have a suspicion that because of those issues, a service does not always 
receive the right sign-in credentials (cached in the browser) when someone is 
wielding multiple accounts at the same time (and mixing up Google and Google 
Apps accounts).

Original comment by me.dannm...@gmail.com on 24 Jul 2010 at 8:46

GoogleCodeExporter commented 8 years ago
Quick way to fix this I found was to change web.xml - comment out the security 
xml for /setup. I think this was added in 0.6 (probably the reason why many 
people had the issue).  When you have run /setup, simply uncomment the security 
xml and appcfg update the code again.

Original comment by rquast%f...@gtempaccount.com on 29 Jul 2010 at 5:26

GoogleCodeExporter commented 8 years ago
I FOUND IT!

Here is the cause:

You didn't select authentication option - google apps domain only when you 
created the application. After selecting that you have to go to your google 
apps admin account and add it as a service (and also specify the new appid). 
The steps are all listed in this totally elusive site... BAD BAD GOOGLE!

http://code.google.com/appengine/articles/auth.html

You won't need to edit the web.xml if you do this.

Original comment by rquast%e...@gtempaccount.com on 1 Aug 2010 at 9:40