The Google Apps control panel does not affect who is a admin on a particular app engine application. That's controlled by the App Engine admin console, e.g. http://appengine.google.com/permissions?&app_id=myprogram . For remote_api to work you also need the admin to match the authentication option of the application, e.g. whatever it says on http://appengine.google.com/domain?&app_id=myprogram for "Authentication Options". If it says "anyone with a valid Google Account" then you need to use a non-Google Apps account for the admin with remote API. This is often simplest to do with a Gmail account. If it says "anyone with a valid *yourdomain* Google Apps domain", then only admins on the Permissions page with Google Apps account in that domain will work.
Hopefully this clarifies things--it's confusing because there are so many different places to check. --Matthew On Dec 24 2009, 1:48 am, lembas <[email protected]> wrote: > 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 visithttp://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<mpl=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 > forhttp://bulkload.latest.myprogram.appspot.com/remote_api? > I checked it by logging inhttps://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 <[email protected]> wrote: > > > > > (Note that the log in page is only needed to test interactive login.) > > > On Dec 23, 6:53 pm, Matthew Blain <[email protected]> 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 <[email protected]> wrote: > > > > > First I visithttps://www.google.com/a/cpanel/mydomain.com > > > > then login as [email protected] > > > > 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 [email protected] 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
