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

Picking up bad version of tar. #7689

Closed
brucejo75 opened this issue Aug 21, 2016 · 16 comments
Closed

Picking up bad version of tar. #7689

brucejo75 opened this issue Aug 21, 2016 · 16 comments

Comments

@brucejo75
Copy link
Contributor

brucejo75 commented Aug 21, 2016

Update

This was caused by using a bad version of tar that I had on my path.

Problem symptoms

Usually, I can work through the issues and get it figured out. This time I am completely FUBAR. I have a lot of detail below. But the primary problem is that none of the meteor commands work. Every one of them (except meteor --version) executes for a while but eventually results in:

events.js:141
      throw er; // Unhandled 'error' event
      ^

Error: write EOF
    at exports._errnoException (util.js:907:11)
    at WriteWrap.afterWrite (net.js:785:14)

Please help I am dead in the water. At this point I only have the 1.4.1 dev_bundle installed and I am trying to figure out how to get rid of it and go back to 1.4. This ate up a day.

Environment

  • Meteor: v1.4.1 (node: v4.5.0, npm: 3.10.6)
  • Windows 10 Version 1511 (OS Build 10586.545)
  • Node: v4.5.0

How I got here

  1. I went to my test directory and created a 1.4.0.1 project via meteor create test.
  2. I went into the test project and did a meteor update
  3. This updated for quite a while but eventually failed with the error above.
  4. From here on out my default version was set to 1.4.1 and none of the commands worked without emitting the error above.
  5. I noticed that meteor node --version reported v4.4.7 and meteor npm --version reported 3.10.5 which was odd because I knew from the notes that the versions have been updated to v4.5.0 and 3.10.6 respectively.
  6. I updated my installed version of node to v4.5.0, but this output an error that stated "A later version of Node.js is already installed. Setup will now exit." However, when I checked my node version and the meteor version they were all reporting v4.4.7.
  7. I found this forum issue. And decided I should wipe my slate clean and reinstall Meteor.
  8. I uninstalled meteor and also cleaned out C:\Users\username\AppData\Local\.meteor
  9. I installed node v4.5.0.
  10. I installed meteor from meteor.com.

Result

Nothing works always results in:

events.js:141
      throw er; // Unhandled 'error' event
      ^

Error: write EOF
    at exports._errnoException (util.js:907:11)
    at WriteWrap.afterWrite (net.js:785:14)
@brucejo75
Copy link
Contributor Author

Minutes after I submitted this issue I attempted another tack...

Reading through the notes, I see that you will use my installed version of tar. On windows, I typically do not use tar and I have other tools. But it turned out that I had a very old version of tar.exe in my bin directory. And the meteor install was finding and using it.

I also have 7z.exe which is reasonably new. So I removed my version of tar.exe and now Meteor is finding 7z.exe I believe.

Error gone!

PS: I am hoping the new ubuntu bash shell in windows will be able to work with meteor and I can use updated versions of linux tools soon.

@brucejo75 brucejo75 changed the title Meteor 1.4.1 not working at all on Windows Meteor 1.4.1 can pick up bad version of tar and fail to work on Windows Aug 21, 2016
@brucejo75
Copy link
Contributor Author

Recommend that Meteor have a mode of running that will flag each of the native tools it depends on?

@laosb
Copy link
Contributor

laosb commented Aug 22, 2016

Maybe we should just check the version of tar.exe or 7z.exe.

@laosb laosb changed the title Meteor 1.4.1 can pick up bad version of tar and fail to work on Windows Picking up bad version of tar. Aug 22, 2016
@benjamn
Copy link
Contributor

benjamn commented Aug 22, 2016

On Windows, Meteor comes with a standalone version of 7z.exe (i.e., dev_bundle\bin\7z.exe), so we should probably just prefer that over tar on Windows. In other words, you don't have to install 7z yourself for Meteor to find it.

In the meantime, I would definitely recommend removing tar.exe from your path.

@benjamn benjamn added this to the Release 1.4.2 milestone Aug 22, 2016
@jalalat
Copy link

jalalat commented Aug 23, 2016

Hi @benjamn by path you mean Path in Env Variables, right? I do not have tar.exe in my path but i am still seeing this error.

@zipzit
Copy link

zipzit commented Aug 23, 2016

@jalalat that file could be anywhere. On my computer I had one copy of tar.exe at location C:/MinGW/msys/1.0/bin and another copy at C:/TexasInstruments/xdc_tools_3_20_08_88/bin You are just going to have to search. I used Windows Explorer which is painfully slow.

Update: funny, when I tried the where tar command from my Git Bash command line interface (on my windows 10 O/S) I ended up with a third location, C:\Program Files (x86)\Git\bin\tar.exe I will say for us windows folks the where command seems to work fine in the Git Bash interpreter. Its a definite no go in any other tool though, windows powershell, Visual Studio command prompt, etc... The awesome news it its fast, way fast.

@brucejo75
Copy link
Contributor Author

you can use where to find it. e.g.

where tar

will find all versions of tar on your path.

@AliMor
Copy link

AliMor commented Aug 24, 2016

I still have the issue. My question is why it stopped working all of the sudden?

@brucejo75
Copy link
Contributor Author

Look at release notes for v1.4.1:

@AliMor
Copy link

AliMor commented Aug 24, 2016

@brucejo75 thanks for your help. I went almost through all step before jumping online and search if anyone else has the same issue. now extracting takes a long time to finish; I had couple of tar files in my path though. Removed all. I am probably going to update my node as well.

@benjamn
Copy link
Contributor

benjamn commented Aug 24, 2016

I am probably going to update my node as well.

Meteor comes with its own version of Node, by the way, and you can use it by running meteor node .... Installing Node on your system outside of Meteor is neither necessary nor especially helpful.

@AliMor
Copy link

AliMor commented Aug 25, 2016

@benjamn thanks for your advise

@smeijer
Copy link

smeijer commented Aug 31, 2016

I had this issue when trying to update to a specific release.

Updating tar.exe to a new version helped indeed. Thanks!

@michaeldewal
Copy link

This does not solve the problem for me, I renamed the tar.exe in my git folder.
My update or run is still stuck on "extracting [email protected]" it will never finish.
Windows 10 here.

@brucejo75
Copy link
Contributor Author

did you try getting a new version of tar.exe? Or use a version of 7z.exe? And then put those on your path?

@abernix abernix added known-fix confirmed We want to fix or implement it labels Sep 14, 2016
@fafournier
Copy link
Contributor

After 5 days searching, finally found that thread. I didn't have tar.exe in the path apparently but using where tar.exe, I found it came with git: C:\Program Files (x86)\Git\bin\tar.exe !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants