kiwiirc / kiwibnc

Apache License 2.0
43 stars 14 forks source link

Cannot start: config option database.crypt_key must be 32 characters long #73

Closed Razva closed 4 years ago

Razva commented 4 years ago

[kiwibnc@server kiwibnc]$ node --version
v12.18.2

[kiwibnc@server kiwibnc]$ npm --version
6.14.5

[kiwibnc@server ~]$ git clone https://github.com/kiwiirc/kiwibnc.git
Cloning into 'kiwibnc'...
remote: Enumerating objects: 9, done.
remote: Counting objects: 100% (9/9), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 2740 (delta 0), reused 3 (delta 0), pack-reused 2731
Receiving objects: 100% (2740/2740), 523.94 KiB | 1.50 MiB/s, done.
Resolving deltas: 100% (1952/1952), done.
[kiwibnc@server ~]$ cd kiwibnc/
[kiwibnc@server kiwibnc]$ npm install

> integer@3.0.1 install /home/kiwibnc/kiwibnc/node_modules/integer
> prebuild-install || npm run build-release

> bcrypt@3.0.7 install /home/kiwibnc/kiwibnc/node_modules/bcrypt
> node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Using request for node-pre-gyp https download 
[bcrypt] Success: "/home/kiwibnc/kiwibnc/node_modules/bcrypt/lib/binding/bcrypt_lib.node" is installed via remote

> better-sqlite3@6.0.1 install /home/kiwibnc/kiwibnc/node_modules/better-sqlite3
> prebuild-install || npm run build-release

> sqlite3@4.1.0 install /home/kiwibnc/kiwibnc/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Using request for node-pre-gyp https download 
[sqlite3] Success: "/home/kiwibnc/kiwibnc/node_modules/sqlite3/lib/binding/node-v72-linux-x64/node_sqlite3.node" is installed via remote

> core-js@3.4.7 postinstall /home/kiwibnc/kiwibnc/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
> https://opencollective.com/core-js 
> https://www.patreon.com/zloirock 

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

npm WARN kiwibnc@1.0.1 No repository field.

added 447 packages from 394 contributors and audited 449 packages in 4.885s

5 packages are looking for funding
  run `npm fund` for details

found 22 vulnerabilities (21 low, 1 high)
  run `npm audit fix` to fix them, or `npm audit` for details
[kiwibnc@server kiwibnc]$ npm audit fix
npm WARN kiwibnc@1.0.1 No repository field.

+ http-proxy@1.18.1
+ lodash@4.17.19
added 1 package from 1 contributor, removed 3 packages and updated 8 packages in 1.451s

6 packages are looking for funding
  run `npm fund` for details

fixed 22 of 22 vulnerabilities in 449 scanned packages
[kiwibnc@server kiwibnc]$ node kiwibnc adduser
2020-07-08T22:43:50.195Z [adduser] l_debug Starting adduser
2020-07-08T22:43:50.196Z [adduser] l_info Using config file /home/kiwibnc/.kiwibnc/config.ini
Cannot start: config option database.crypt_key must be 32 characters long```
Razva commented 4 years ago

Fixed by manually editing .kiwibnc/config.ini and adding a 32 character key to crypt_key.