Hello,
I'm trying to import an existing database into a testing application, but I'm encountering the following problem. Here are the commands which I'm using:

mat...@mgenov-laptop:~/temp/backup/100106-145759$ ~/development/google_appengine/bulkloader.py --app_id=mgenovtestapp --url=http://mgenovtestapp.appspot.com/remote_api --kind=AddressEntity --restore --filename=AddressEntity.sqlite --debug /home/matrix/development/google_appengine/google/appengine/ext/remote_api/remote_api_stub.py:64: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
 import sha
[INFO    ] Logging to bulkloader-log-20100106.161013
[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-20100106.161013.sql3
[DEBUG   ] [Thread-1] RestoreThread: started
[DEBUG   ] [Thread-1] RestoreThread: exiting
[DEBUG   ] [Thread-2] RestoreThread: started
[DEBUG   ] [Thread-2] RestoreThread: exiting
[DEBUG   ] [WorkerThread-0] WorkerThread: started
[DEBUG   ] [WorkerThread-1] WorkerThread: started
[DEBUG   ] [WorkerThread-2] WorkerThread: started
[DEBUG   ] [WorkerThread-3] WorkerThread: started
[DEBUG   ] [WorkerThread-4] WorkerThread: started
[DEBUG   ] [WorkerThread-5] WorkerThread: started
[DEBUG   ] [WorkerThread-6] WorkerThread: started
[DEBUG   ] [WorkerThread-7] WorkerThread: started
[DEBUG   ] [WorkerThread-8] WorkerThread: started
[DEBUG   ] [WorkerThread-9] WorkerThread: started
[DEBUG ] Configuring remote_api. url_path = /remote_api, servername = mgenovtestapp.appspot.com
[DEBUG   ] Bulkloader using app_id: mgenovtestapp
[INFO    ] Connecting to mgenovtestapp.appspot.com/remote_api
Traceback (most recent call last):
File "/home/matrix/development/google_appengine/bulkloader.py", line 67, in <module>
   run_file(__file__, globals())
File "/home/matrix/development/google_appengine/bulkloader.py", line 63, in run_file
   execfile(script_path, globals_)
File "/home/matrix/development/google_appengine/google/appengine/tools/bulkloader.py", line 3960, in <module>
   sys.exit(main(sys.argv))
File "/home/matrix/development/google_appengine/google/appengine/tools/bulkloader.py", line 3956, in main
   return _PerformBulkload(arg_dict)
File "/home/matrix/development/google_appengine/google/appengine/tools/bulkloader.py", line 3814, in _PerformBulkload
   return_code = app.Run()
File "/home/matrix/development/google_appengine/google/appengine/tools/bulkloader.py", line 3125, in Run
   self.RunPostAuthentication()
File "/home/matrix/development/google_appengine/google/appengine/tools/bulkloader.py", line 3230, in RunPostAuthentication
   self.request_manager.IncrementId(list(ancestor_path), kind, high_id)
File "/home/matrix/development/google_appengine/google/appengine/tools/bulkloader.py", line 1200, in IncrementId
   assert end >= high_id
AssertionError
mat...@mgenov-laptop:~/temp/backup/100106-145759$

Note that the size of the AddressEntity.sqlite is around 500kbytes (not too much I think).

With the same command I was able to import some other entities which where with lower size but this entity is causing a problem.

Any idea what I'm doing wrong or maybe there is some issue with the appengine ?

Note that the RemoteApiServlet is mapped as follow:
<servlet>
   <servlet-name>remoteapi</servlet-name>
<servlet-class>com.google.apphosting.utils.remoteapi.RemoteApiServlet</servlet-class>
 </servlet>
 <servlet-mapping>
   <servlet-name>remoteapi</servlet-name>
   <url-pattern>/remote_api</url-pattern>
 </servlet-mapping>
 <security-constraint>
   <web-resource-collection>
     <web-resource-name>remoteapi</web-resource-name>
     <url-pattern>/remote_api</url-pattern>
   </web-resource-collection>
   <auth-constraint>
     <role-name>admin</role-name>
   </auth-constraint>
 </security-constraint>


Regards,
 Miroslav



-- 
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.


Reply via email to