Google App Engine:upload_data 失败,因为“目标计算机主动拒绝”在开发服务器上

发布于 2024-09-07 21:37:33 字数 1952 浏览 3 评论 0原文

我正在尝试使用开发服务器将数据从 CSV 上传到我的应用程序:

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 protected]
Password for [email protected]:
[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/ 可以正常工作,并且应用程序运行得很好。 (除了缺乏数据。)

I'm trying to upload data from a CSV to my app using the devserver:

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

The result:

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 protected]
Password for [email protected]:
[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

The count of entities transferred ranges between 200-850 as I try subsequent times.

What is going on here? Normally this works fine. Navigating to http://localhost:8083/ works, and the app runs just fine. (Except the lack of data.)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

余生再见 2024-09-14 21:37:33

通过添加命令行选项 --num_threads=4 将线程数减少到 4

如果仍然不起作用,请进一步减少线程数。

Decrease the number of threads to 4 by adding the command line option --num_threads=4

If it still doesn't work decrease further the number of threads.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文