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

Script already launched #221

Open
linmuqin opened this issue Mar 11, 2022 · 9 comments
Open

Script already launched #221

linmuqin opened this issue Mar 11, 2022 · 9 comments

Comments

@linmuqin
Copy link

[PM2][ERROR] Script already launched, add -f option to force re-execution
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! webfunny_monitor@3.0.40 prd: node config_db_local.js && node config.js && pm2 flush && pm2 start bin/webfunny.js && pm2 log webfunny
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the webfunny_monitor@3.0.40 prd script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-03-11T08_33_42_852Z-debug.log

@a826604005 @a597873885

@a597873885
Copy link
Owner

@linmuqin 你的程序已经运行过了,执行 npm run restart 重启即可。

@a597873885
Copy link
Owner

pm2 list 可以查看进程列表

@linmuqin
Copy link
Author

linmuqin commented Mar 11, 2022

重启后,我登录提示创建项目,之后又报错

[2022-03-11T16:43:45.352] [ERROR] errorLog - 
*************** error log start ***************
method: POST
originalUrl:  /server/createNewProject
client ip:  ::ffff:172.30.0.9
body: 
{"webMonitorId":"webfunny_20220311_164343","startList":"012345","chooseTeamId":1,"projectName":"web","projectType":"h5"}
response time: 0
err name: ReferenceError
err message: CommonTable is not defined
err stack: ReferenceError: CommonTable is not defined
    at createNewProject (/opt/webfunny_monitor/controllers/controllers.js:1:900881)
*************** error log end ***************

@a597873885

@a597873885
Copy link
Owner

@linmuqin 确实创建的时候有bug,我立刻修复,请稍等

1 similar comment
@a597873885
Copy link
Owner

@linmuqin 确实创建的时候有bug,我立刻修复,请稍等

@a597873885
Copy link
Owner

@linmuqin 你好,创建项目的问题已经修复了,更新代码,执行npm run restart 即可。 最新版本为:3.0.42

@linmuqin
Copy link
Author

感谢,那个问题解决了,当我运行注入用户标识时报错

window.localStorage.wmUserInfo : 无法将“window.localStorage.wmUserInfo”项识别为 cmdlet、函数、脚本文件或可运行程序的
名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
所在位置 行:1 字符: 1
+ window.localStorage.wmUserInfo = JSON.stringify({ userId: 'userId', u ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (window.localStorage.wmUserInfo:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

@a597873885
Copy link
Owner

@linmuqin 「 window.localStorage.wmUserInfo = JSON.stringify 」 这段是在浏览器里执行的吗?

@linmuqin
Copy link
Author

没问题了,是我执行的地方不对,十分感谢

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

No branches or pull requests

2 participants