Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After installing 1.6.0: could not start pub serve or connect to pub #20771

Closed
DartBot opened this issue Sep 2, 2014 · 19 comments
Closed

After installing 1.6.0: could not start pub serve or connect to pub #20771

DartBot opened this issue Sep 2, 2014 · 19 comments
Assignees
Labels
closed-obsolete Closed as the reported issue is no longer relevant
Milestone

Comments

@DartBot
Copy link

DartBot commented Sep 2, 2014

This issue was originally filed by spd.d...@gmail.com


Today I upgraded DartEditor from 1.5.8 to 1.6.0 using the automatic upgrade feature in Dart's Help/About Menu Item.

Installing went Ok, but now I can no longer start my app:
"could not start pub serve or connect to pub" is reported, nothing else.

I never saw this error before, I made no changes to the configuration of my operating system or network (Windows 7).

@anders-sandholm
Copy link
Contributor

Removed Priority-Unassigned label.
Added Priority-High, Area-Editor, Triaged labels.

@kasperl
Copy link

kasperl commented Sep 2, 2014

Added this to the 1.7 milestone.

@anders-sandholm
Copy link
Contributor

Raised to critical - at least until we know what is causing this.

bruno-guigas, just wondering if you could share more info on your setup. E.g., are you behind a firewall and/or using a proxy server? Are you able to share (parts of) your app?


cc @munificent.
cc @nex3.
Removed Priority-High label.
Added Priority-Critical label.

@DartBot
Copy link
Author

DartBot commented Sep 2, 2014

This comment was originally written by spd...@gmail.com


Hi,

  • I'm behind the firewall implemented in my WLAN router
  • the Windows 7 firewall is active to block all programs not explicitely in its list
  • no Proxy server

As I commented in the bug database the problem was solved by removing C:\Users\bg\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org and restarting dart editor.
At the time of restart, while Dart startup was in progress, Windows asked several questions to admit access, which I answered with yes.

Bruno

-----Original-Nachricht-----
Betreff: Re: Issue #20771 in dart: After installing 1.6.0: could not start pub serve or connect to pub
Datum: Tue, 02 Sep 2014 16:51:43 +0200
Von: dart@googlecode.com
An: bruno-guigas@t-online.de

@clayberg
Copy link

clayberg commented Sep 2, 2014

Set owner to @keertip.

@DartBot
Copy link
Author

DartBot commented Sep 2, 2014

This comment was originally written by samuel.sch...@gmail.com


I have the same problem, but I use Eclipse Luna/Dart Plugin.

I did the following steps:

  1. Upgrade SDK to 1.6.0 on Eclipse Luna.
  2. Attempt to run a project.
  3. Print in Console Tab:

--- 14:18:55 Starting pub serve : Sample ---
Loading source assets...
Loading smoke/src/default_transformer transformers...
Transformer library "package:smoke/src/default_transformer.dart" not found.

  1. Launch fails with error: "Could not start pub serve or connect to pub".

But I not found "..\pub.dartlang.org" in my Windows file system, to remove, like Bruno said.

@keertip
Copy link
Contributor

keertip commented Sep 2, 2014

Bob,

It looks like when the user upgraded their stable version, pub either had issues with the old pub cache or maybe proxy.


Set owner to @munificent.
Removed Area-Editor label.
Added Area-Pub label.

@DartBot
Copy link
Author

DartBot commented Sep 2, 2014

This comment was originally written by samuel.sch...@gmail.com


Additional information:

I also did the following steps:

1 The Eclipse (c:\eclipse) was removed.
2 Workspace (d:\Users[name]\workspace) was renamed (workspace_old).
3 The Eclipse Luna was reinstalled.
4 Dart Plugin (through marketplace) was reinstalled.
5 Dart SDK + Dartium was updated/configured again (Eclipse / Preferences / Dart / SDK).
6 The workspace new (d:\Users[name]\workspace) was defined.

Even so the error continues.

@kasperl
Copy link

kasperl commented Sep 9, 2014

Any progress on this?

@DartBot
Copy link
Author

DartBot commented Sep 9, 2014

This comment was originally written by samuel.sch...@gmail.com


  1. I selected the option in Windows Explorer to appear the hidden files.
  2. I found the C:\Users(user)\AppData\Roaming\Pub\Cache\hosted
    pub.dartlang.org.
  3. The Pub\Cache\hosted\pub.dartlang.o <http://pub.dartlang.org>rg was
    removed.
  4. Get pub again.
  5. It's worked

Em 09/09/2014 03:09, <dart@googlecode.com> escreveu:

@munificent
Copy link
Member

I can't think of anything in pub that's changed that would affect this.

Have there been any changes in the auto-updater?

@DartBot
Copy link
Author

DartBot commented Sep 10, 2014

This comment was originally written by @vicb


"Transformer library "package:smoke/src/default_transformer.dart" not found."

I have started to see this error yesterday (as well as module_transformer.dart not found) on angular.dart.

I'm using ubuntu 64b. The error has appeared with the 1.7-dev version of Dart (could also be linked to some updated deps)

@DartBot
Copy link
Author

DartBot commented Sep 10, 2014

This comment was originally written by hadjtaieb....@gmail.com


I installed dart editor 1.6.0 on windows 7 running under vmware workstation v7.
when i start the app and run in dartuim, the message "could not start pub serve or connect to pub" is reported.

are there any configuration related to vmware ?

@DartBot
Copy link
Author

DartBot commented Sep 10, 2014

This comment was originally written by findaiformat...@gmail.com


I figured, without internet connection the error occurs and then later on keeps popping up. But after deleting config files worked again. Still, I find it annoying to be not able to work offline in general, even if all needed packages have been cached before(by other projects). Every project needs to have run pub with internet first. It seems to be dependent on the .dartEditor config files in particular

@munificent
Copy link
Member

Still, I find it annoying to be not able to work offline in general, even if all needed packages have been cached before(by other projects).

You should absolutely be able to work offline. If you run pub get and:

  1. You already have a lockfile.
  2. Everything mentioned it in is in your cache.

Then pub will not hit the network at all.

Running pub upgrade when you depend on packages from pub.dartlang.org does hit the network, for obvious reasons. It needs to see if there are newer versions for you to upgrade to.

If you don't have a lockfile or want to upgrade against your cache, both pub get and pub upgrade support a --offline flag. Using that means it will treat your cache as if it's the only source of packages and won't hit the network.

It seems to be dependent on the .dartEditor config files in particular

Interesting data point! Can you give any more details on how/why you're seeing trouble there? I'll bounce this to the editor folks then.


Removed Area-Pub label.
Added Area-Editor label.

@munificent
Copy link
Member

Set owner to @keertip.

@DartBot
Copy link
Author

DartBot commented Sep 10, 2014

This comment was originally written by findaiform...@gmail.com


Can you give any more details on how/why you're seeing trouble there?
In my case I have tested security restrictions and thumbled over that error under linux.
 
Restricted internet access // firewall settings, will prohibit accessing localhost and cause the error (no real error here).
After producing the error due to restricted internet access, pub serve fails even if internet access was permitted again. Which is obviously related to the project settings within .dartEditor, deleting the project from editor and reopen solves this issue. I guess this is related to updating a state flag in that special case.

Without lockfile and networking just turned off, pub serve will fail(of course), but without ramifications. The --offline option resolves cached packages and the project runs offline :) so, I am satisfied here.

@clayberg
Copy link

Removed this from the 1.7 milestone.
Removed Priority-Critical label.
Added Priority-Medium label.

@DartBot
Copy link
Author

DartBot commented Oct 18, 2014

This comment was originally written by rezakakh...@gmail.com


hi , i am new in dart . i download it from your site but when i want to run Web App that mentioned in your tutorial ( https://www.dartlang.org/docs/tutorials/get-started/)
i got this error "could not start pub serve or connect to pub" . i use ubuntu 14.04 and dart version is 1.7.2 , i search this issue in google but i can't find a solution :(

@DartBot DartBot added Type-Defect closed-obsolete Closed as the reported issue is no longer relevant labels Oct 18, 2014
@DartBot DartBot added this to the 1.9 milestone Oct 18, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-obsolete Closed as the reported issue is no longer relevant
Projects
None yet
Development

No branches or pull requests

6 participants