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

Logs ? #36

Open
DannyCork opened this issue Jul 17, 2014 · 7 comments
Open

Logs ? #36

DannyCork opened this issue Jul 17, 2014 · 7 comments

Comments

@DannyCork
Copy link
Contributor

How can I verify anon is working ?

Imagine anon is running in a country where anonymous edits are few and far between. Anon is running but how do I know it's actually working? I don't see log files, perhaps we should add a log file?

I can see a node process that is spawned. What happens when this process dies, no logs right ?

Maybe there are logs that I'm not seeing ?

Thanks.

@ineffyble
Copy link
Contributor

From the README:

If you would like to see all the change activity (URLs for each change) to test that it is actually listening use the --verbose flag:

./anon.coffee --verbose

@edsu
Copy link
Owner

edsu commented Jul 18, 2014

Better logging would be a good thing, I'll leave this open till we have it.

@DannyCork
Copy link
Contributor Author

I start as follows
./anon.coffee &

however the process dies after x hours. I have no logs to read , hence no idea why it died. Logs would be great. Thanks.

@edsu
Copy link
Owner

edsu commented Jul 20, 2014

How does it die? Are you running on a laptop that goes to sleep? Did you try the --verbose flag?

@remagio
Copy link

remagio commented Jul 30, 2014

Temp solution for linux: the most used supervisor for logging&keeping up nodesjs apps for you is "supervisord". It's autonomic. It manage start, stop and autonomous restart if nodejs app crash.

@DannyCork
Copy link
Contributor Author

I am now attempting to get some logs to investigate by doing a nohip ./anon.coffee > log &

Remagio thanks must look into this.

@remagio
Copy link

remagio commented Jul 30, 2014

@DannyCork once supervisors is deployed you can:

  • set rights on anon deploy with a non-root-user: "chown -R user-run-anon:group-user-anon /yourpath-anon"
  • create at "/etc/supervisor/conf.d" the "anon.conf" with:
    [program:anon]  
    command = /yourpath-anon/anon.coffee --verbose  
    directory = /yourpath-anon/  
    user = user-run-anon  
    autostart = true  
    autorestart = true  
    stdout_logfile = /var/log/supervisor/anon.log  
    stderr_logfile = /var/log/supervisor/anon_err.log
  • start supervisor with: "service supervisor start"
  • now it will start at every boot and restart it when crash

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

4 participants