First of all, sorry for writing "remote" instead of "bulkload" in my
last 2 posts.
There is no "remote" version. The only version is "bulkload".
I created it with Python like I said in my first post in this thread.

I logged out my gmail.com account and mydomain.com account in my
browser.
Then I visit http://bulkload.latest.myprogram.appspot.com/remote_api.
There comes a login page of mydomain.com.
When I login with my admin account on mydomain.com, it says
Error: Forbidden
Your client does not have permission to get URL /remote_api from this
server.

I do not use GAE UserService anywhere in my code.
I do not have any <security-constraint> in my web.xml.

I looked at the logs as you said. I have the following in my request-
only-filtered log:
12-24 01:33AM 02.761 /remote_api 403 36ms 0cpu_ms 0kb Mozilla/5.0
(X11; U; Linux i686; en-US) AppleWebKit/532.6 (KHTML, like Gecko)
Chrome/4.0.266.0 Safari/532.6,gzip(gfe)
See details
193.xxx.yyy.zzz - myid [24/Dec/2009:01:33:02 -0800] "GET /remote_api
HTTP/1.1" 403 0 "https://www.google.com/a/mydomain.com/ServiceLogin?
service=ah&passive=true&continue=http://
bulkload.latest.myprogram.appspot.com/_ah/login%3Fcontinue%3Dhttp://
bulkload.latest.myprogram.appspot.com/
remote_api&ltmpl=ga&ahname=dummy&sig=a0d1d0bdb0ea9947083be67280bb1e39"
"Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/532.6 (KHTML,
like Gecko) Chrome/4.0.266.0 Safari/532.6,gzip(gfe)"

How can I check if my admin account on mydomain.com is really an admin
for http://bulkload.latest.myprogram.appspot.com/remote_api?
I checked it by logging in https://www.google.com/a/cpanel/kavancha.com/Users
and see that "admin" is an "Administrator" as stated in "Status"
column next to "Username" column. Am I right?

Thanks for your help.
Now what should I do next?

On Dec 24, 4:54 am, Matthew Blain <matthew.bl...@google.com> wrote:
> (Note that the log in page is only needed to test interactive login.)
>
> On Dec 23, 6:53 pm, Matthew Blain <matthew.bl...@google.com> wrote:
>
> > You need to log in to the application, not just the Google control
> > panel--do you have a login page you can visit 
> > onhttp://remote.latest.myprogram.appspot.com/remote_api?
> > What do the logs look like in the admin console for your app?
>
> > On Dec 19, 2:36 am, lembas <keremo...@gmail.com> wrote:
>
> > > First I visithttps://www.google.com/a/cpanel/mydomain.com
> > > then login as ad...@mydomain.com
> > > and then I visithttp://remote.latest.myprogram.appspot.com/remote_api, 
> > > which has
> > > remoteapi definition in web.xml as stated 
> > > inhttp://groups.google.com/group/google-appengine-java/browse_thread/th...,
> > > it says
> > > Error: Forbidden
> > > Your client does not have permission to get URL /remote_api from this
> > > server.
>
> > > but if i visithttp://myprogram.appspot.com/remote_api, which is the
> > > current version without any remoteapi definition in web.xml, it says
> > > Error: Not Found
> > > The requested URL /remote_api was not found on this server.
>
> > > what should I do now?
>
> > > On Dec 19, 2:24 am, Matthew Blain <matthew.bl...@google.com> wrote:
>
> > > > A quick test is if you can visit yourapp/remote_api in the web
> > > > browser--it should work if you log in as an admin, well it should say
> > > > "This request did not contain a necessary header" but not any other
> > > > errors.
>
> > > > On Dec 16, 2:52 pm, lembas <keremo...@gmail.com> wrote:
>
> > > > > I get exactly the same error when I try to bulkupload with this
> > > > > command:
> > > > > appcfg.py upload_data --auth_domain=mydomain.com --db_filename=skip --
> > > > > url=http://remote.latest.myprogram.appspot.com/remote_api--no_cookies
> > > > > --has_header --config_file=loader.py --filename=kind.csv --kind=Kind
> > > > > myprogram
>
> > > > > On Dec 17, 12:37 am, lembas <keremo...@gmail.com> wrote:
>
> > > > > > Hi,
>
> > > > > > I have a java app on myprogram.appspot.com.
> > > > > > I use google eclipse plugin to deploy it.(Eclipse 3.5, App Engine 
> > > > > > SDK
> > > > > > 1.3.0, GWT SDK 2.0.0)
> > > > > > I set the version to bulkload and deployed it.
> > > > > > Now I have bulkload.latest.myprogram.appspot.com as I can see 
> > > > > > onhttps://appengine.google.com/deployment?app_id=myprogram
>
> > > > > > I try to bulkdownload data to my app but cannot succeed.
>
> > > > > > I use:
> > > > > >bulkloader.py --dump --batch_size=5 --kind=Kind --
> > > > > > auth_domain=mydomain.com --url=http://
> > > > > > bulkload.latest.myprogram.appspot.com/remote_api 
> > > > > > --filename=dump.sql3
> > > > > > myprogram
>
> > > > > > when I execute this command it asks my an email and a password. I
> > > > > > enter ad...@mydomain.com and its password but the result is:
> > > > > > [ERROR   ] Exception during authentication
> > > > > > Traceback (most recent call last):
> > > > > >   File "C:\Program 
> > > > > > Files\Google\google_appengine\google\appengine\tools
> > > > > > \bulkload
> > > > > > er.py", line 2985, in Run
> > > > > >     request_manager.Authenticate()
> > > > > >   File "C:\Program 
> > > > > > Files\Google\google_appengine\google\appengine\tools
> > > > > > \bulkload
> > > > > > er.py", line 1152, in Authenticate
> > > > > >     remote_api_stub.MaybeInvokeAuthentication()
> > > > > >   File "C:\Program 
> > > > > > Files\Google\google_appengine\google\appengine\ext
> > > > > > \remote_api
> > > > > > \remote_api_stub.py", line 494, in MaybeInvokeAuthentication
> > > > > >     datastore_stub._server.Send(datastore_stub._path, payload=None)
> > > > > >   File "C:\Program 
> > > > > > Files\Google\google_appengine\google\appengine\tools
> > > > > > \appengin
> > > > > > e_rpc.py", line 344, in Send
> > > > > >     f = self.opener.open(req)
> > > > > >   File "C:\Python26\lib\urllib2.py", line 389, in open
> > > > > >     response = meth(req, response)
> > > > > >   File "C:\Python26\lib\urllib2.py", line 502, in http_response
> > > > > >     'http', request, response, code, msg, hdrs)
> > > > > >   File "C:\Python26\lib\urllib2.py", line 427, in error
> > > > > >     return self._call_chain(*args)
> > > > > >   File "C:\Python26\lib\urllib2.py", line 361, in _call_chain
> > > > > >     result = func(*args)
> > > > > >   File "C:\Python26\lib\urllib2.py", line 510, in http_error_default
> > > > > >     raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
> > > > > > HTTPError: HTTP Error403: Forbidden
> > > > > > [INFO    ] Authentication Failed
>
> > > > > > I got exactly the same error above when I tried downloading with 
> > > > > > this
> > > > > > command:
> > > > > > appcfg.py download_data --auth_domain=mydomain.com --url=http://
> > > > > > bulkload.latest.myprogram.appspot.com/remote_api --
> > > > > > config_file=exporter.py --filename=kind_data_archive.csv --kind=Kind
> > > > > > myprogram
>
> > > > > > If I enter my gmail.com account and password, which I use to deploy
> > > > > > the app in google eclipse plugin, the error is:
> > > > > > Invalid username or password.
> > > > > > Please enter login credentials for
> > > > > > bukload.latest.myprogram.appspot.com
>
> > > > > > My app.yaml in myprogram folder is:
> > > > > > application: myprogram
> > > > > > version: bulkload
> > > > > > runtime: python
> > > > > > api_version: 1
>
> > > > > > handlers:
> > > > > > - url: /remote_api
> > > > > >   script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py
> > > > > >   login: admin
>
> > > > > > Any help? Or should I ask it on google-appengine-python group or
> > > > > > google-appengine group?
>
> > > > > > Thanks.

--

You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.


Reply via email to