Okay I figured it out  -- a nightmare I am afraid.

It turns out if you have an apps email account, which is the
administrative account for an appengine application on apps it will
not work with upload. This is an ugly feature and really hurts anyone
planning on using appengine with apps. The workaround is to create a
regular gmail account and then give this account administrative access
to your app on your apps domain. This is tricky because you first need
to log in to your apps account, do the invite, log out and then log in
to the regular gmail account. If you are still logged in to the apps
account when you access the regular gmail account you cannot accept
the invitation you sent.

Sorry if the above sounds confusing but it is, I hope Google can
improve this.

Simon

On Mar 7, 12:50 pm, sjh <[email protected]> wrote:
> Hi,
>
> I have an app that works fine on my local machine including the local
> datastore. I can upload the app without any problems. However, when I
> try and upload the data with
>
> appcfg.py upload_data --config_file=spectrum_loader.py --
> filename=spectrum_data.csv --kind=Spectrum --auth_domain=forgedam.com
> --url=http://speclib.forgedam.com/remote_api./
>
> I get the following error as if the url cannot be accessed:
>
> E:\windows\code\python\appengine\speclib>appcfg.py upload_data --
> config_file=spectrum_loader.py --filename=spectrum_data.csv --
> kind=Spectrum --auth_domain=forge
> dam.com --url=http://speclib.forgedam.com/remote_api./
> C:\Python25\lib\site-packages\pytz-2008cn1-py2.5-win32.egg\pytz
> \__init__.py:29: UserWarning: Module pytz was already imported from C:
> \Python25\lib\site-packages
> \pytz-2008cn1-py2.5-win32.egg\pytz\__init__.py, but c:\python25\lib
> \site-packages\matplotlib-0.98.5.2n2-py2.5-win32.egg is being added to
> sys.path
> Application: speclib01; version: 1.
> Uploading data records.
> [INFO    ] Logging to bulkloader-log-20100307.124250
> [INFO    ] Throttling transfers:
> [INFO    ] Bandwidth: 250000 bytes/second
> [INFO    ] HTTP connections: 8/second
> [INFO    ] Entities inserted/fetched/modified: 20/second
> [INFO    ] Opening database: bulkloader-progress-20100307.124250.sql3
> [INFO    ] Connecting to speclib.forgedam.com/remote_api
> [ERROR   ] Exception during authentication
> Traceback (most recent call last):
>   File "C:\Program Files\Google\google_appengine\google\appengine\tools
> \bulkloader.py", line 3158, in Run
>     self.request_manager.Authenticate()
>   File "C:\Program Files\Google\google_appengine\google\appengine\tools
> \bulkloader.py", line 1169, in Authenticate
>     remote_api_stub.MaybeInvokeAuthentication()
>   File "C:\Program Files\Google\google_appengine\google\appengine\ext
> \remote_api\remote_api_stub.py", line 539, in
> MaybeInvokeAuthentication
>     datastore_stub._server.Send(datastore_stub._path, payload=None)
>   File "C:\Program Files\Google\google_appengine\google\appengine\tools
> \appengine_rpc.py", line 346, in Send
>     f = self.opener.open(req)
>   File "C:\Python25\lib\urllib2.py", line 387, in open
>     response = meth(req, response)
>   File "C:\Python25\lib\urllib2.py", line 498, in http_response
>     'http', request, response, code, msg, hdrs)
>   File "C:\Python25\lib\urllib2.py", line 425, in error
>     return self._call_chain(*args)
>   File "C:\Python25\lib\urllib2.py", line 360, in _call_chain
>     result = func(*args)
>   File "C:\Python25\lib\urllib2.py", line 506, in http_error_default
>     raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
> HTTPError: HTTP Error 404: Not Found
> [INFO    ] Authentication Failed
>
> Here is a copy of my app.yaml
>
> application: speclib01
> version: 1
> runtime: python
> api_version: 1
>
> handlers:
> - url: /remote_api
>   script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py
>   login: admin
>
> - url: /static_files
>   static_dir: static_files
>
> - url: /.*
>   script: speclib.py
>
> I have tried a thousand permutations but cannot figure this out.
>
> Many thanks for any help.
>
> sjh

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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?hl=en.

Reply via email to