codimd icon indicating copy to clipboard operation
codimd copied to clipboard

Setting codimd on heroku buttons → self signed certificate error

Open YaCpotato opened this issue 4 years ago • 3 comments
trafficstars

I just tried deploy codimd using https://elements.heroku.com/buttons/hackmdio/codimd. I dont touch any option input and put deploy button. Build Succeed and access then,,, image

here is the log

2021-10-13T04:11:26.631231+00:00 heroku[web.1]: Starting process with command `./bin/heroku_start.sh`
2021-10-13T04:11:27.957025+00:00 app[web.1]: 
2021-10-13T04:11:27.957041+00:00 app[web.1]: > [email protected] start /app
2021-10-13T04:11:27.957042+00:00 app[web.1]: > sequelize db:migrate && node app.js
2021-10-13T04:11:27.957042+00:00 app[web.1]: 
2021-10-13T04:11:28.166867+00:00 app[web.1]: 2021-10-13T04:11:28.165Z warn: 	Neither 'domain' nor 'CMD_DOMAIN' is configured. This can cause issues with various components.
2021-10-13T04:11:28.166869+00:00 app[web.1]: Hint: Make sure 'protocolUseSSL' and 'urlAddPort' or 'CMD_PROTOCOL_USESSL' and 'CMD_URL_ADDPORT' are configured properly.
2021-10-13T04:11:28.168435+00:00 app[web.1]: 2021-10-13T04:11:28.168Z warn: 	Session secret not set. Using random generated one. Please set `sessionSecret` in your config.js file. All users will be logged out.
2021-10-13T04:11:28.411757+00:00 app[web.1]: 
2021-10-13T04:11:28.412145+00:00 app[web.1]: [4mSequelize CLI [Node: 12.22.7, CLI: 5.5.1, ORM: 5.21.3][24m
2021-10-13T04:11:28.412175+00:00 app[web.1]: 
2021-10-13T04:11:28.420799+00:00 app[web.1]: Parsed url postgres://uoeiorovcelpyn:*****@ec2-3-222-24-200.compute-1.amazonaws.com:5432/df7blnahq1lghm
2021-10-13T04:11:28.508279+00:00 app[web.1]: 
2021-10-13T04:11:28.508445+00:00 app[web.1]: [31mERROR:[39m self signed certificate
2021-10-13T04:11:28.508488+00:00 app[web.1]: 
2021-10-13T04:11:28.516168+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2021-10-13T04:11:28.516260+00:00 app[web.1]: npm ERR! errno 1
2021-10-13T04:11:28.519695+00:00 app[web.1]: npm ERR! [email protected] start: `sequelize db:migrate && node app.js`
2021-10-13T04:11:28.519736+00:00 app[web.1]: npm ERR! Exit status 1
2021-10-13T04:11:28.519792+00:00 app[web.1]: npm ERR! 
2021-10-13T04:11:28.519834+00:00 app[web.1]: npm ERR! Failed at the [email protected] start script.
2021-10-13T04:11:28.519882+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2021-10-13T04:11:28.524712+00:00 app[web.1]: 
2021-10-13T04:11:28.524798+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2021-10-13T04:11:28.524839+00:00 app[web.1]: npm ERR!     /app/.npm/_logs/2021-10-13T04_11_28_520Z-debug.log
2021-10-13T04:11:28.641725+00:00 heroku[web.1]: Process exited with status 1
2021-10-13T04:11:28.742234+00:00 heroku[web.1]: State changed from starting to crashed

YaCpotato avatar Oct 13 '21 04:10 YaCpotato

self signed certificate

Are there any missing?

YaCpotato avatar Oct 13 '21 04:10 YaCpotato

@YaCpotato I'm seeing the same thing on heroku. I fixed it to node 12.22.1, where db migration has been successful, and this solved the problem.

yamashush avatar Nov 05 '21 08:11 yamashush

@yamashush thanks so much!!!!

Infomation for others

  1. clone this git repository
  2. edit package.json

as is

"engines": {
    "node": ">=10.0.0 <13.0.0"
  },

to be

"engines": {
    "node": "12.22.1"
  },

3 deploy to heroku

YaCpotato avatar Nov 05 '21 09:11 YaCpotato