Comments (11)
试了下reload不行。
pm2 delete hitchhiker
pm2 start pm2.json
这样可以了,感谢解答
from hitchhiker.
应该是有的,我天天在跑,失败都能收到,看是不是跑垃圾邮件里去了
from hitchhiker.
垃圾邮件里没有。
我又试了run now 功能,还是没有邮件通知。
Docker 版
from hitchhiker.
成功也没有吗,是用的公司邮箱吗,schedule里的notification选custom,然后尝试用下163的试下看看。之前也有朋友反应过被公司邮箱过滤掉了
from hitchhiker.
公司邮箱
单独试了163邮箱,也没收到
from hitchhiker.
run now的,163立马就收到了。
不过这块以后会找时间做成内网配置的,可以设置公司邮箱去发。
from hitchhiker.
新加了自定义邮箱发送接口功能,可以看下
from hitchhiker.
定时任务失败后发送邮件一直不成功,求帮助。日志:
[2018-03-19 20:23:51.540] [INFO] default - send mails
[2018-03-19 20:23:51.541] [DEBUG] default - SELECT `user`.`id` AS `user_id`, `user`.`name` AS `user_name`, `user`.`password` AS `user_password`, `user`.`email` AS `user_email`, `user`.`isActive` AS `user_isActive`, `user`.`isTemp` AS `user_isTemp`, `user`.`createDate` AS `user_createDate`, `user`.`updateDate` AS `user_updateDate`, `project`.`id` AS `project_id`, `project`.`name` AS `project_name`, `project`.`globalFunction` AS `project_globalFunction`, `project`.`note` AS `project_note`, `project`.`isMe` AS `project_isMe`, `project`.`createDate` AS `project_createDate`, `project`.`ownerId` AS `project_ownerId` FROM `user` `user` LEFT JOIN `project_members_user` `project_user` ON `project_user`.`userId`=`user`.`id` LEFT JOIN `project` `project` ON `project`.`id`=`project_user`.`projectId` WHERE `user`.`id` = ? -- PARAMETERS: ["b30d8d00-2912-11e8-9f63-656b2352ea8e-B1NnQEKFf"]
[2018-03-19 20:23:51.544] [DEBUG] default - SELECT `environment`.`id` AS `environment_id`, `environment`.`name` AS `environment_name`, `environment`.`createDate` AS `environment_createDate`, `environment`.`updateDate` AS `environment_updateDate`, `environment`.`projectId` AS `environment_projectId`, `variable`.`id` AS `variable_id`, `variable`.`key` AS `variable_key`, `variable`.`value` AS `variable_value`, `variable`.`isActive` AS `variable_isActive`, `variable`.`sort` AS `variable_sort`, `variable`.`environmentId` AS `variable_environmentId`, `project`.`id` AS `project_id`, `project`.`name` AS `project_name`, `project`.`globalFunction` AS `project_globalFunction`, `project`.`note` AS `project_note`, `project`.`isMe` AS `project_isMe`, `project`.`createDate` AS `project_createDate`, `project`.`ownerId` AS `project_ownerId` FROM `environment` `environment` LEFT JOIN `variable` `variable` ON `variable`.`environmentId`=`environment`.`id` LEFT JOIN `project` `project` ON `project`.`id`=`environment`.`projectId` WHERE 1=1 AND (`environment`.`id`=? OR `environment`.`id`=?) -- PARAMETERS: ["7f90f050-2914-11e8-8a35-4fe37225571e-rklK2UVtYM","No environment"]
[2018-03-19 20:23:52.308] [INFO] default - <html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.12.1</center>
</body>
</html>
pm2.json
{"apps":[{"name":"hitchhiker","script":"index.js","watch":false,"env":{"HITCHHIKER_APP_HOST":"http://敏感信息:9527/","HITCHHIKER_DB_HOST":"127.0.0.1","HITCHHIKER_DB_PORT":"3306","MYSQL_DATABASE":"hitchhiker","HITCHHIKER_DB_USERNAME":"root","MYSQL_ROOT_PASSWORD":"123456","HITCHHIKER_SYNC_INTERVAL":"30","HITCHHIKER_SCHEDULE_MAILFORFAIL":"1","HITCHHIKER_SCHEDULE_STORE_UNIT":"count","HITCHHIKER_SCHEDULE_STORE_LIMIT":"5000","HITCHHIKER_STRESS_COUNT":"5","HITCHHIKER_MAIL_CUSTOM":"smtp","HITCHHIKER_MAIL_API":"","HITCHHIKER_MAIL_SMTP_HOST":"smtp.qq.com","HITCHHIKER_MAIL_SMTP_PORT":"465","HITCHHIKER_MAIL_SMTP_USER":"[email protected]","HITCHHIKER_MAIL_SMTP_PASS":"敏感信息","HITCHHIKER_MAIL_SMTP_From":"[email protected]","HITCHHIKER_MAIL_SMTP_NICKNAME":"","HITCHHIKER_MAIL_SMTP_TLS":"1","HITCHHIKER_MAIL_SMTP_RU":"0","HITCHHIKER_SYNC_ONOFF":"0"}}]
from hitchhiker.
@ZhangBohan Sorry, 有个变量名字后来改了,忘了加到安装过程中, 请把HITCHHIKER_MAIL_CUSTOM改成HITCHHIKER_MAIL_CUSTOM_TYPE,改完后需要执行pm2 restart hitchhiker重启,不好意思。
from hitchhiker.
@brookshi 抱歉,能科普一下怎么更新配置吗?我尝试修改/build/pm2.json
,后通过pm2 reload hitchhiker --update-env
之后依然是502错误
from hitchhiker.
@ZhangBohan 查了下文档,貌似要在build目录下reload pm2.json才行,如果实在不行,放绝招:), 在build目录下pm2 kill, pm2 start pm2.json
from hitchhiker.
Related Issues (20)
- 压力测试运行时node端报$字符错误
- 2000条用例导致登录会消耗很长时间约1.5分钟 HOT 4
- docker安装无法发邮件 HOT 6
- 请问将服务器部署在阿里云上怎么进行本地调试?
- 负载均衡时Session过期问题
- 参数化数据类型丢失导致无法使用
- 在Collections目录下切换Environment无法立即生效
- body 请允许可以写 注释 HOT 1
- 启动连接11010 端口失败?
- 接口返回http code 为 500时,自动化测试认为失败了
- 文档页面打不开了
- linux系统部署Hitchhiker有部署文档的链接吗,https://github.com/brookshi/Hitchhiker/blob/master/doc/howtoinstall-linux-cn.md 这个链接报404 HOT 1
- docker部署,创建账户后,报sql错误:[2019-05-06 09:47:50.369] [ERROR] console - Error: ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'json NOT NULL, createDate datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), `' at line 1
- 部署成功后,谷歌浏览器点击不登录试用或者直接注册,都会调到一个页面但是资源加载不出来,看console下有报错403 HOT 5
- 请问这个项目还在维护和更新吗?
- JavaScript heap out of memory
- 脚本执行顺序
- collection级别脚本修改url时,会清空hitchhiker.request
- 怎么用js获取当前环境的IP? HOT 1
- 用“raw”模式 post 成功后,返回内容在“内容”页签没有输出,但切换为“x-www-form-urlencoded”时会重放打印“raw”的响应内容
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hitchhiker.