-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Errored but no information (coffee script?) #488
Comments
Hmmm, when I try to start the app many times after a delete, sometimes I can spot these log lines. But they do not make much sense to me:
A bug related to coffee script in the pm2 module? |
Start your app in fork mode with the |
@Unitech Why? |
I do not want to lose pm2's core features ... |
Are you sure that your script runs with nodejs ? |
@soyuka Oh yes, it runs with nodejs :) |
@Unitech is already investigating this for me - I gave him access to the private repo ... |
Any news on this one @soyuka ?? |
Could you try using node v11.10? Thanks. |
Thanks man - I just gave you access to that private repo. Clone it and check it out yourself, thanks :) |
For reasons I cannot explain, it works now in cluster mode. No idea why. Probably one of your recent updates has fixed it. Closed for now. Many thanks for your time anyway! |
It worked for me in the version 0.12.1 but when i updated to 0.12.2 it stopped working guess its some issue in your update |
@aashrairavooru, I'm seeing the same. Looks like regression? |
Any sample code (simplify) to help me reproducing this issue? |
Awesome project, I wish I would have found it earlier, thank you for helping out with this. Here's a repo: And a description of the problem: Please let me know if there's anything else I can do. |
@kylefinley $ pm2 start server.coffee --interpreter coffee But What we do: if (p.extname(script) == '.coffee') {
require('coffee-script/register');
} What if (child_process) {
fork = child_process.fork;
binary = require.resolve('../../bin/coffee');
child_process.fork = function(path, args, options) {
if (helpers.isCoffee(path)) {
if (!Array.isArray(args)) {
options = args || {};
args = [];
}
args = [path].concat(args);
path = binary;
}
return fork(path, args, options);
};
} |
Coffee script requires the --interpreter coffee flag Unitech#488 (comment)
I followed the same steps. But it is still giving SyntaxError. |
Are you seeing an error with this test repo: https://github.com/kylefinley/PM2-coffee-test If you so, could you try clearing your npm cache and reinstalling
|
@kylefinley Thanks for the quick response. I am not facing this issue in your repo. Its my own piece of code written in coffee which is creating this issue. |
@tusharmath, Good to know. My suggestion would be to get it to work without PM2 i.e. |
@kylefinley I have a file - http = require 'http' And I am running the following command - The following two log files are empty
|
What's the error message that your seeing? Also what's the log say:
|
pm2 logs - update - server-0 (err): /Users/tusharmathur/Documents/Projects/pm2-issue/tushar.coffee:2 |
@tusharmath , I'm not sure maybe someone else with more experience can help.
Then run
Since you said that my test repo was working for you, maybe you could use it for now as an entry point. |
Thankyou for putting in so much of effort nevertheless! |
Just FYI that I'm using the latest version of PM2 and I was having exactly the some problem, the app was errored but no error log information was being thrown. I realized it had to do with the permissions of the log folder at Since I'm running pm2 in a non-sudo user, but I install PM2 with
PM2 was trying to access the log files but it had no permission. Maybe PM2 should be more verbose on this error. |
I have an app here I cannot start with pm2.
pm2 list
always sayserrored
and there is no additional information why. Log files tell me nothing.How should I examine the error??
The text was updated successfully, but these errors were encountered: