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

Tilestream won't start properly if HOME environment variable is unset #155

Open
wrigby opened this issue Dec 1, 2015 · 0 comments · May be fixed by #158
Open

Tilestream won't start properly if HOME environment variable is unset #155

wrigby opened this issue Dec 1, 2015 · 0 comments · May be fixed by #158

Comments

@wrigby
Copy link

wrigby commented Dec 1, 2015

See above - I may throw together a PR to fix this. The environment variable is fetched to build the help, and then passed into path.join, which barfs on undefined.

I discovered this when trying to run Tilestream as a daemon using the (fabulous) supervisord. The symptom looks like:

/usr/lib/node_modules/tilestream/node_modules/bones/server/plugin.js:108
        if (err.code !== 'ENOENT') throw err;
                                         ^
TypeError: Arguments to path.join must be strings
    at path.js:360:15
    at Array.filter (native)
    at Object.exports.join (path.js:358:36)
    at Object.<anonymous> (/usr/lib/node_modules/tilestream/commands/global.bones:28:21)
    at Module._compile (module.js:456:26)
    at Object.require.extensions..bones (/usr/lib/node_modules/tilestream/node_modules/bones/server/plugin.js:32:12)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)

Hopefully that will catch anybody googling for this :)

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

Successfully merging a pull request may close this issue.

1 participant