GAE Loader Problem

March 2, 2014

I have been having problem with uploading data using GAE uploader.

I keep getting the following message,

[INFO    ] [WorkerThread-2] Backing off due to errors: 1.0 seconds
[INFO    ] An error occurred. Shutting down...
[ERROR   ] Error in WorkerThread-0: app "dev~app" cannot access app "app"'s data
[INFO    ] 1396 entities total, 0 previously transferred
[INFO    ] 0 entities (7706 bytes) transferred in 10.4 seconds
[INFO    ] Some entities not successfully transferred

"Dev~app" cannot access "app"'s data.

And my app's yaml is as follows

application: crux-io-carcloud
    version: *dev*
    runtime: python27
    api_version: 1
    threadsafe: no

Notice, the dev for version.

Turns out, that I have to add the --application=dev~app on my script, shown below.

appcfg.py upload_data --config_file=offsite_uploader.py \
                      --filename=data.csv  \
                      --has_header \
                      --kind=DataInfo \
                      --url=http://localhost:8080/_ah/remote_api \
                      --db_filename=data.csv.sql3 \
                      --batch_size=50 \
                      --rps_limit=200 \
                      --num_threads=5 \
                      --application=dev~app \  
                      ..