[google-appengine] Re: Upload data to development server
OMG! IT WORKS!!! I develop with Java SDK App Engine I just download the Charles Proxy app (Mac OSX), run it and use the command line: ./appcfg.py upload_data --application=myapplicationid --filename=data/mydatastorebackup.cvs --url=http://localhost:/remote_api I don't know why and how it works! BUT WORKS! -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/ogPYDf73y9MJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Upload data to development server
Lol, wow I just did the same and it solved my problem. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/3zwrlJxrtcwJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Upload data to development server
Could you give me a hint on how I download all of my APPstore data and load it into my localhost. I want a better test environment I am downloading like this appcfg.py download_data --application=s~crime-syndicate --url= --filename=test But uploading like this appcfg.py upload_data --application=crime-syndicate --filename=test --url=http://localhost:/cp_remote_api --email= --passin fails with error: [Errno 54] Connection reset by peer and Am I using the correct data types. Filename test is in some kind of sql3 stuff On Friday, August 5, 2011 12:25:25 AM UTC+2, Roch Delsalle wrote: > > Lol, wow I just did the same and it solved my problem. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/Vgazl08fYaUJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Upload data to development server
Hi rc, The upload_data command is designed for pushing data into the hosted application, on appspot, and might not be usable with the local SDK server. Authentication is particular is handled differently in the local SDK than in App Engine. Thank you, Jeff On Mon, Sep 21, 2009 at 7:01 AM, rc wrote: > > Hi, > > I am new to the Google app engine. I have developed a simple app which > has a datastore component. I want to upload some data to the > development server. I am using the 'appcfg.py upload_data' but I am > getting a login/password prompt and I am not sure what to put there. I > tried using my gmail a/c & password but that fails. > Could you please let me know what I am missing here? > > Thanks > rc > > > Uploading data records. > > [INFO] Logging to bulkloader-log-20090921.085252 > > [INFO] Throttling transfers: > > [INFO] Bandwidth: 25 bytes/second > > [INFO] HTTP connections: 8/second > > [INFO] Entities inserted/fetched/modified: 20/second > > [INFO] Opening database: bulkloader-progress-20090921.085252.sql3 > > Please enter login credentials for localhost > > Email: r**...@gmail.com > > Password for r**...@gmail.com: > > [INFO] Connecting to localhost:8080/remote_api > > [ERROR ] Exception during authentication > > Traceback (most recent call last): > > File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ > GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ > google/appengine/tools/bulkloader.py", > line 2985, in Run > > request_manager.Authenticate() > > File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ > GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ > google/appengine/tools/bulkloader.py", > line 1152, in Authenticate > > remote_api_stub.MaybeInvokeAuthentication() > > File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ > GoogleAppEngine-default.bundle/Contents/Resources/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 "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ > GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ > google/appengine/tools/appengine_rpc.py", > line 344, in Send > > f = self.opener.open(req) > > File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ > python2.5/urllib2.py", > line 374, in open > > response = self._open(req, data) > > File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ > python2.5/urllib2.py", > line 392, in _open > > '_open', req) > > File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ > python2.5/urllib2.py", > line 353, in _call_chain > > result = func(*args) > > File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ > python2.5/urllib2.py", > line 1100, in http_open > > return self.do_open(httplib.HTTPConnection, req) > > File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ > python2.5/urllib2.py", > line 1075, in do_open > > raise URLError(err) > > URLError: > > [INFO] Authentication Failed > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Upload data to development server
Hello again rc, Apologies, it seems I was too hasty in my reply. Nick has pointed out that we do in fact document how to upload data into the development server. Please see: http://code.google.com/appengine/docs/python/tools/uploadingdata.html#Loading_Data_Into_the_Development_Server Thank you, Jeff On Tue, Sep 22, 2009 at 10:57 AM, Jeff S (Google) wrote: > Hi rc, > > The upload_data command is designed for pushing data into the hosted > application, on appspot, and might not be usable with the local SDK server. > Authentication is particular is handled differently in the local SDK than in > App Engine. > > Thank you, > > Jeff > > > On Mon, Sep 21, 2009 at 7:01 AM, rc wrote: > >> >> Hi, >> >> I am new to the Google app engine. I have developed a simple app which >> has a datastore component. I want to upload some data to the >> development server. I am using the 'appcfg.py upload_data' but I am >> getting a login/password prompt and I am not sure what to put there. I >> tried using my gmail a/c & password but that fails. >> Could you please let me know what I am missing here? >> >> Thanks >> rc >> >> >> Uploading data records. >> >> [INFO] Logging to bulkloader-log-20090921.085252 >> >> [INFO] Throttling transfers: >> >> [INFO] Bandwidth: 25 bytes/second >> >> [INFO] HTTP connections: 8/second >> >> [INFO] Entities inserted/fetched/modified: 20/second >> >> [INFO] Opening database: bulkloader-progress-20090921.085252.sql3 >> >> Please enter login credentials for localhost >> >> Email: r**...@gmail.com >> >> Password for r**...@gmail.com: >> >> [INFO] Connecting to localhost:8080/remote_api >> >> [ERROR ] Exception during authentication >> >> Traceback (most recent call last): >> >> File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ >> GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ >> google/appengine/tools/bulkloader.py", >> line 2985, in Run >> >> request_manager.Authenticate() >> >> File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ >> GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ >> google/appengine/tools/bulkloader.py", >> line 1152, in Authenticate >> >> remote_api_stub.MaybeInvokeAuthentication() >> >> File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ >> GoogleAppEngine-default.bundle/Contents/Resources/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 "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ >> GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ >> google/appengine/tools/appengine_rpc.py", >> line 344, in Send >> >> f = self.opener.open(req) >> >> File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ >> python2.5/urllib2.py", >> line 374, in open >> >> response = self._open(req, data) >> >> File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ >> python2.5/urllib2.py", >> line 392, in _open >> >> '_open', req) >> >> File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ >> python2.5/urllib2.py", >> line 353, in _call_chain >> >> result = func(*args) >> >> File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ >> python2.5/urllib2.py", >> line 1100, in http_open >> >> return self.do_open(httplib.HTTPConnection, req) >> >> File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ >> python2.5/urllib2.py", >> line 1075, in do_open >> >> raise URLError(err) >> >> URLError: >> >> [INFO] Authentication Failed >> >> >> >> > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Upload data to development server
I get this error when i follow the link above Abhishek-Kapatkars-MacBook-Pro:helloworld cabhishek$ appcfg.py upload_data --config_file=content_loader.py --filename=data2.csv --kind=Album --url=http://localhost:8080/remote_api /Users/cabhishek/Documents/ workspace/helloworld Application: abhishekkapatkar; version: 5. Uploading data records. [INFO] Logging to bulkloader-log-20091101.153226 [INFO] Throttling transfers: [INFO] Bandwidth: 25 bytes/second [INFO] HTTP connections: 8/second [INFO] Entities inserted/fetched/modified: 20/second [INFO] Opening database: bulkloader-progress-20091101.153226.sql3 Please enter login credentials for localhost Email: cabhis...@gmail.com Password for cabhis...@gmail.com: [INFO] Connecting to localhost:8080/remote_api [ERROR ] Exception during authentication Traceback (most recent call last): File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ google/appengine/tools/bulkloader.py", line 3063, in Run self.request_manager.Authenticate() File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ google/appengine/tools/bulkloader.py", line 1148, in Authenticate remote_api_stub.MaybeInvokeAuthentication() File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ google/appengine/ext/remote_api/remote_api_stub.py", line 545, in MaybeInvokeAuthentication datastore_stub._server.Send(datastore_stub._path, payload=None) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ google/appengine/tools/appengine_rpc.py", line 344, in Send f = self.opener.open(req) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/urllib2.py", line 387, in open response = meth(req, response) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/urllib2.py", line 498, in http_response 'http', request, response, code, msg, hdrs) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/urllib2.py", line 425, in error return self._call_chain(*args) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/urllib2.py", line 360, in _call_chain result = func(*args) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/urllib2.py", line 506, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 500: Exception encountered handling request [INFO] Authentication Failed .. i even tried this Abhishek-Kapatkars-MacBook-Pro:helloworld cabhishek$ rm ~/.appcfg_cookies nothing worked On Sep 25, 8:51 pm, "Jeff S (Google)" wrote: > Hello again rc, > > Apologies, it seems I was too hasty in my reply. Nick has pointed out that > we do in fact document how to upload data into the development server. > Please see: > > http://code.google.com/appengine/docs/python/tools/uploadingdata.html... > > Thank you, > > Jeff > > On Tue, Sep 22, 2009 at 10:57 AM, Jeff S (Google) wrote: > > > Hi rc, > > > The upload_data command is designed for pushing data into the hosted > > application, on appspot, and might not be usable with the local SDK server. > > Authentication is particular is handled differently in the local SDK than in > > App Engine. > > > Thank you, > > > Jeff > > > On Mon, Sep 21, 2009 at 7:01 AM, rc wrote: > > >> Hi, > > >> I am new to the Google app engine. I have developed a simple app which > >> has a datastore component. I want to upload some data to the > >> development server. I am using the 'appcfg.py upload_data' but I am > >> getting a login/password prompt and I am not sure what to put there. I > >> tried using my gmail a/c & password but that fails. > >> Could you please let me know what I am missing here? > > >> Thanks > >> rc > > >> Uploading data records. > > >> [INFO ] Logging to bulkloader-log-20090921.085252 > > >> [INFO ] Throttling transfers: > > >> [INFO ] Bandwidth: 25 bytes/second > > >> [INFO ] HTTP connections: 8/second > > >> [INFO ] Entities inserted/fetched/modified: 20/second > > >> [INFO ] Opening database: bulkloader-progress-20090921.085252.sql3 > > >> Please enter login credentials for localhost > > >> Email: r**...@gmail.com > > >> Password for r**...@gmail.com: > > >> [INFO ] Connecting to localhost:8080/remote_api > > >> [ERROR ] Exception during authentication > > >> Traceback (most recent call last): > > >> File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ > >> GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ > >> google/appengine/tools/bulkloader.py", > >> line 2985, in Run > > >> request_manager.Authenticate() > > >> File "/Applications/GoogleAppEngineLauncher.app/Contents/Resource
[google-appengine] Re: Upload data to development server
Next worked for me: - removing the line login:admin from app.yaml - Updating app cofig: appcfg.py update [app-id] - (Re)starting local server: appserver [app-id] - Upload data: appcfg.py upload_data --config_file=album_loader.py --filename album_data.csv --kind Album --url=http://localhost:8080/remote_api ../ [app-id] When ask for mail and password type anything -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.