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

Windows 7 Admin Requirement #1200

Closed
wboykinm opened this issue Jan 20, 2012 · 5 comments
Closed

Windows 7 Admin Requirement #1200

wboykinm opened this issue Jan 20, 2012 · 5 comments
Labels
Milestone

Comments

@wboykinm
Copy link

Using the "Latest" Native windows build (Install-TileMill-0.8.0-522.exe), installed clean on a mid-powered windows 7 machine, TileMill crashes without report on normal launch from the start menu shortcut. However, the program works just fine and launches fast if "Run as Administrator" is selected from the right-click menu of the start menu shortcut.

Error log here. The key message appears to be:

{ [Error: ENOENT, no such file or directory 'C:\.tilemill\config.json'] errno: 34, code: 'ENOENT', path: 'C:\\.tilemill\\config.json' }

@springmeyer
Copy link
Member

Can you clear the log and re-run as non admin, then clear the log and re-run as admin? (and then again as non-admin).

The ENOENT error might be (harmlessly) occurring because you are running as admin - I want rule this out to make sure it is the likely culprit for the non-admin crash.

@wboykinm
Copy link
Author

Logged into a windows session as admin, running tilemill without admin privileges, here's the log:
The "sys" module is now called "util". It should have a similar interface.

Logged in as above, running tilemill with admin privileges, here's the clean log:

The "sys" module is now called "util". It should have a similar interface.
The "sys" module is now called "util". It should have a similar interface.
Started [Server Tile:20008].
Creating configuration dir C:\Users\wboykinm.tilemill
Creating files dir C:\Users\wboykinm\Documents\MapBox
Creating export dir C:\Users\wboykinm\Documents\MapBox\export
Creating project dir C:\Users\wboykinm\Documents\MapBox\project
Creating cache dir C:\Users\wboykinm\Documents\MapBox\cache
Plugin [carto] loaded.
Plugin [editor] loaded.
Plugin [fonts] loaded.
Plugin [map] loaded.
Plugin [templates] loaded.
Checking for new version of TileMill...
npm http GET https://registry.npmjs.org/tilemill
npm http 200 https://registry.npmjs.org/tilemill
Latest version of TileMill is 0.8.0.
Started [Server Core:20009].
Client window created.
{ [Error: ENOENT, no such file or directory 'C:.tilemill\config.json'] errno: 34, code: 'ENOENT', path: 'C:\.tilemill\config.json' }

So the ENOENT error is only thrown when running as admin, and it doesn't stop the program from launching. Not actually sure if that missing config.json is a problem.

@springmeyer
Copy link
Member

Note to self: I think this must have to do with the blocked firewall when on a "Public" network I see in your "Windows Firewall":


Evented I/O for V8 JavaScript       Public  Yes Block   No  C:\program files (x86)\tilemill\node.exe    Any Any UDP Any Any Any Any 
Evented I/O for V8 JavaScript       Private Yes Allow   No  C:\program files (x86)\tilemill\node.exe    Any Any TCP Any Any Any Any 
Evented I/O for V8 JavaScript       Private Yes Allow   No  C:\program files (x86)\tilemill\node.exe    Any Any UDP Any Any Any Any 
Evented I/O for V8 JavaScript       Public  Yes Block   No  C:\program files (x86)\tilemill\node.exe    Any Any TCP Any Any Any Any 

@springmeyer
Copy link
Member

above fix was tested by @kkaefer and @wboykinm and appears to fix first-run with non-admin user for windows 7. Works with and without this fix on XP. Not tested on Vista. Does not do enough to make tilemill work as non-admin for Win8. New issue for that at #1205. closing this one.

@kkaefer
Copy link
Contributor

kkaefer commented Jan 24, 2012

My report is from running it on an admin account.

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

No branches or pull requests

3 participants