dart-archive / pub-dartlang

DEPRECATED - old pub.dartlang.org site in Python
https://github.com/dart-lang/pub-dartlang-dart
Other
43 stars 18 forks source link

strange 404 from Pub dev server #200

Open DartBot opened 10 years ago

DartBot commented 10 years ago

From @jmesserly on November 06, 2013 00:46:54

it seems to fail somewhat randomly...

server side:

INFO 2013-11-05 23:40:10,408 module.py:608] default: "POST /api/packages/versions/upload HTTP/1.1" 404 513

client:

Looks great! Are you ready to upload your package (y/n)? y Uploading...Error in PubHttpClient.send ( issue 12581 ) error: HTTP error 404: Not Found stacktrace: #0 PubHttpClient.send (file:///mnt/data/b/build/slave/dart-editor-linux-trunk/build/dart/sdk/lib/_internal/pub/lib/src/http.dart:60)

1 Client.send. (package:oauth2/src/client.dart:90)

2 _Future._propagateToListeners. (dart:async/future_impl.dart:453)

3 _rootRun (dart:async/zone.dart:683)

4 _RootZone.run (dart:async/zone.dart:823)

5 _Future._propagateToListeners (dart:async/future_impl.dart:445)

6 _Future._complete (dart:async/future_impl.dart:303)

7 _Future._asyncComplete. (dart:async/future_impl.dart:354)

8 _asyncRunCallback (dart:async/schedule_microtask.dart:18)

9 _createTimer. (dart:async-patch/timer_patch.dart:11)

10 _Timer._createTimerHandler._handleTimeout (timer_impl.dart:151)

11 _Timer._createTimerHandler. (timer_impl.dart:166)

12 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:93)

Failed to upload the package. ../../../mnt/data/b/build/slave/dart-editor-linux-trunk/build/dart/sdk/lib/_internal/pub/lib/src/command/lish.dart 86 _publish. dart:async _createTimer. timer_impl.dart 151 _Timer._createTimerHandler._handleTimeout timer_impl.dart 166 _Timer._createTimerHandler. dart:isolate _RawReceivePortImpl._handleMessage

---- Log transcript ---- FINE: Using DART_SDK to find SDK at /usr/local/google/home/jmesserly/Applications/dart/dart-sdk FINE: Pub 0.8.10+4. r29892 IO : Spawning git --version IO : Listing directory /tmp/tmp47imz2/scheduled_test/lib. FINE: Listed directory /tmp/tmp47imz2/scheduled_test/lib: | /tmp/tmp47imz2/scheduled_test/lib/scheduled_process.dart | /tmp/tmp47imz2/scheduled_test/lib/scheduled_test.dart | /tmp/tmp47imz2/scheduled_test/lib/src | /tmp/tmp47imz2/scheduled_test/lib/scheduled_server.dart | /tmp/tmp47imz2/scheduled_test/lib/descriptor.dart IO : Listing directory /tmp/tmp47imz2/scheduled_test. FINE: Listed directory /tmp/tmp47imz2/scheduled_test: | /tmp/tmp47imz2/scheduled_test/pubspec.yaml | /tmp/tmp47imz2/scheduled_test/test | /tmp/tmp47imz2/scheduled_test/LICENSE | /tmp/tmp47imz2/scheduled_test/lib IO : Listing directory /tmp/tmp47imz2/scheduled_test/lib. IO : Listing directory /tmp/tmp47imz2/scheduled_test/lib/src. IO : Listing directory /tmp/tmp47imz2/scheduled_test/lib/src/descriptor. FINE: Listed directory /tmp/tmp47imz2/scheduled_test/lib/src/descriptor: | /tmp/tmp47imz2/scheduled_test/lib/src/descriptor/nothing_descriptor.dart | /tmp/tmp47imz2/scheduled_test/lib/src/descriptor/pattern_descriptor.dart | /tmp/tmp47imz2/scheduled_test/lib/src/descriptor/async_descriptor.dart | /tmp/tmp47imz2/scheduled_test/lib/src/descriptor/directory_descriptor.dart | /tmp/tmp47imz2/scheduled_test/lib/src/descriptor/descriptor.dart | /tmp/tmp47imz2/scheduled_test/lib/src/descriptor/file_descriptor.dart IO : Listing directory /tmp/tmp47imz2/scheduled_test/lib/src/scheduled_server. FINE: Listed directory /tmp/tmp47imz2/scheduled_test/lib/src/scheduled_server: | /tmp/tmp47imz2/scheduled_test/lib/src/scheduled_server/handler.dart | /tmp/tmp47imz2/scheduled_test/lib/src/scheduled_server/safe_http_server.dart FINE: Listed directory /tmp/tmp47imz2/scheduled_test/lib/src: | /tmp/tmp47imz2/scheduled_test/lib/src/value_future.dart | /tmp/tmp47imz2/scheduled_test/lib/src/scheduled_future_matchers.dart | /tmp/tmp47imz2/scheduled_test/lib/src/schedule_error.dart | /tmp/tmp47imz2/scheduled_test/lib/src/future_group.dart | /tmp/tmp47imz2/scheduled_test/lib/src/task.dart | /tmp/tmp47imz2/scheduled_test/lib/src/descriptor | /tmp/tmp47imz2/scheduled_test/lib/src/substitute_future.dart | /tmp/tmp47imz2/scheduled_test/lib/src/schedule.dart | /tmp/tmp47imz2/scheduled_test/lib/src/scheduled_server | /tmp/tmp47imz2/scheduled_test/lib/src/utils.dart | /tmp/tmp47imz2/scheduled_test/lib/src/mock_clock.dart FINE: Listed directory /tmp/tmp47imz2/scheduled_test/lib: | /tmp/tmp47imz2/scheduled_test/lib/scheduled_process.dart | /tmp/tmp47imz2/scheduled_test/lib/scheduled_test.dart | /tmp/tmp47imz2/scheduled_test/lib/src | /tmp/tmp47imz2/scheduled_test/lib/scheduled_server.dart | /tmp/tmp47imz2/scheduled_test/lib/descriptor.dart FINE: Got server http://localhost:8080/ from PUB_HOSTED_URL. FINE: Got server http://localhost:8080/ from PUB_HOSTED_URL. FINE: Got server http://localhost:8080/ from PUB_HOSTED_URL. FINE: Got server http://localhost:8080/ from PUB_HOSTED_URL. IO : Listing directory /tmp/tmp47imz2/scheduled_test. FINE: Listed directory /tmp/tmp47imz2/scheduled_test: | /tmp/tmp47imz2/scheduled_test/pubspec.yaml | /tmp/tmp47imz2/scheduled_test/test | /tmp/tmp47imz2/scheduled_test/LICENSE | /tmp/tmp47imz2/scheduled_test/lib IO : Listing directory /tmp/tmp47imz2/scheduled_test. IO : Listing directory /tmp/tmp47imz2/scheduled_test/test. IO : Listing directory /tmp/tmp47imz2/scheduled_test/test/scheduled_test. FINE: Listed directory /tmp/tmp47imz2/scheduled_test/test/scheduled_test: | /tmp/tmp47imz2/scheduled_test/test/scheduled_test/current_schedule_state_test.dart | /tmp/tmp47imz2/scheduled_test/test/scheduled_test/signal_error_test.dart | /tmp/tmp47imz2/scheduled_test/test/scheduled_test/out_of_band_task_test.dart | /tmp/tmp47imz2/scheduled_test/test/scheduled_test/timeout_test.dart | /tmp/tmp47imz2/scheduled_test/test/scheduled_test/nested_task_test.dart | /tmp/tmp47imz2/scheduled_test/test/scheduled_test/current_schedule_errors_test.dart | /tmp/tmp47imz2/scheduled_test/test/scheduled_test/current_schedule_current_task_test.dart | /tmp/tmp47imz2/scheduled_test/test/scheduled_test/wrap_async_test.dart | /tmp/tmp47imz2/scheduled_test/test/scheduled_test/task_return_value_test.dart | /tmp/tmp47imz2/scheduled_test/test/scheduled_test/on_complete_test.dart | /tmp/tmp47imz2/scheduled_test/test/scheduled_test/abort_test.dart | /tmp/tmp47imz2/scheduled_test/test/scheduled_test/set_up_test.dart | /tmp/tmp47imz2/scheduled_t...

Original issue: http://code.google.com/p/dart/issues/detail?id=14846

DartBot commented 10 years ago

From @munificent on November 11, 2013 14:40:54

Is this intermittent or consistent?

DartBot commented 10 years ago

From @jmesserly on November 11, 2013 14:45:30

It's consistently intermittent! ;-)

in other words: very easy to reproduce with the dev server, but it doesn't fail 100% of the time. It starts out okay and seems to get worse. If you're using a script that repeatedly calls "pub lish" for different packages (such as publish_all_pkgs.py), the first few will succeed and at some point the uploads start failing. Then if you go to the command line and try to fix individual packages, it can sometimes take 5 or more tries. Overall it's quite strange.

DartBot commented 10 years ago

From @munificent on December 19, 2013 17:02:46

I'm bouncing this to Area-PubSite which is where I've bucketed the pub.dartlang.org bugs because I think this is an issue with the server and not pub itself.

Labels: -Area-Pub Area-PubSite