محرك تطبيق Google: فشل expload_data لأن "الجهاز المستهدف يرفضه بنشاط" على DevServer

StackOverflow https://stackoverflow.com/questions/3126036

سؤال

أحاول تحميل البيانات من CSV إلى تطبيقي باستخدام DevServer:

appcfg.py upload_data --config_file="DataLoader.py" --filename="data.csv" --kind=Foo --url=http://localhost:8083/remote_api "path/to/app"

النتائج:

Application: appname; version: 1.
Uploading data records.
[INFO    ] Logging to bulkloader-log-20100626.181045
[INFO    ] Throttling transfers:
[INFO    ] Bandwidth: 250000 bytes/second
[INFO    ] HTTP connections: 8/second
[INFO    ] Entities inserted/fetched/modified: 20/second
[INFO    ] Batch Size: 10
[INFO    ] Opening database: bulkloader-progress-20100626.181045.sql3
Please enter login credentials for localhost
Email: email@domain.com
Password for email@domain.com:
[INFO    ] Connecting to localhost:8083/remote_api
[INFO    ] Starting import; maximum 10 entities per post
Google\google_appengine\google\appengine\api\datastore_types.py:673: DeprecationWarning: object.__init__() takes no parameters
  super(Link, self).__init__(self, link)
............[INFO    ] Unexpected thread death: WorkerThread-7
[INFO    ] An error occurred. Shutting down...
........[ERROR   ] Error in WorkerThread-1: <urlopen error [Errno 10061] No connection could be made because the target machine actively refused it>
[ERROR   ] Error in WorkerThread-7: <urlopen error [Errno 10061] No connection could be made because the target machine actively refused it>

[INFO    ] 1230 entites total, 0 previously transferred
[INFO    ] 200 entities (218274 bytes) transferred in 25.8 seconds
[INFO    ] Some entities not successfully transferred

ينقل عدد الكيانات النطاقات بين 200-850 كما أحاول الأوقات اللاحقة.

ما الذي يجري هنا؟ عادة هذا يعمل بشكل جيد. التنقل إلى http://localhost:8083/ يعمل ، ويعمل التطبيق على ما يرام. (باستثناء نقص البيانات.)

هل كانت مفيدة؟

المحلول

قلل عدد مؤشرات الترابط إلى 4 عن طريق إضافة خيار سطر الأوامر --num_threads=4

إذا كان لا يزال لا يعمل يقلل من عدد المواضيع.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top