mirror of
https://github.com/NarrativeScience-old/log.io.git
synced 2026-04-26 17:45:57 +03:00
[GH-ISSUE #141] Cant use runit or supervisor to work with log.io #113
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/log.io-NarrativeScience-old#113
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @davidmontgom on GitHub (Dec 12, 2014).
Original GitHub issue: https://github.com/NarrativeScience-old/log.io/issues/141
Hi,
Why cant I use supervisod? Below is how I start bue i get the below error. I run on the command then the process works.
[program:io-server]
command = /usr/bin/node /usr/bin/log.io-server
process_name=%(program_name)s
autostart=true
autorestart=true
stopsignal=KILL
stopasgroup = true
killasgroup = true
stdout_logfile=/tmp/supervisor_io-server.log
stdout_logfile_maxbytes=100MB
stdout_logfile_backups=10
stderr_logfile = /tmp/supervisor_io-server.err
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10
user=ubuntu
[group:io-server_server]
programs=io-server
module.js:340
throw err;
^
Error: Cannot find module 'undefined/.log.io/web_server.conf'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/usr/lib/node_modules/log.io/bin/log.io-server:9:11)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
module.js:340
throw err;
@Strangerxxx commented on GitHub (Jan 20, 2015):
Same problem 👍
@srachner commented on GitHub (Apr 17, 2015):
The error occurs because the server tries to read the HOME environment variable. If it is not set, it cannot read the configuration file. I solved this by setting the HOME variable in my supervisor configuration to contain the location of the ".log.io" folder.
@msmathers commented on GitHub (Jan 16, 2020):
The latest version of log.io (v0.4x) uses npm's built-in "bin" scripts to invoke the server/input processes and no longer requires root/sudo access. It also supports using environment variables to point to a custom configuration path:
LOGIO_FILE_INPUT_CONFIG_PATHandLOGIO_SERVER_CONFIG_PATH.