hack-chat / main

a minimal, distraction-free chat application

Home Page:https://hack.chat/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setup Wizard Issue

KnowsCount opened this issue · comments

For my deployment of hack-chat, I tried it out in my macOS 10.14.6 Mojave first and this is the output:

➜  chat.knowscount.cc git:(master) ✗ npm install

> hack.chat-v2@2.1.93 postinstall /Users/admin/Desktop/Programmes/knowscount.cc/chat.knowscount.cc
> cd ./server && npm install && npm run config

audited 52 packages in 1.24s

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

found 1 low severity vulnerability
  run `npm audit fix` to fix them, or `npm audit` for details

> hack.chat-v2@2.1.93 config /Users/admin/Desktop/Programmes/knowscount.cc/chat.knowscount.cc/server
> node -r esm src/scripts/configure.js

°º¤ø,¸¸,ø¤º°`°º¤ø,¸,ø¤°º¤ø,¸¸,ø¤º°`°º¤ø,¸°º¤ø,¸¸,ø¤º°`°º¤ø
--------------( HackChat Setup Wizard v2.0 )--------------
°º¤ø,¸¸,ø¤º°`°º¤ø,¸,ø¤°º¤ø,¸¸,ø¤º°`°º¤ø,¸°º¤ø,¸¸,ø¤º°`°º¤ø

For advanced setup, see the documentation at:
https://github.com/hack-chat/main/tree/master/documentation

Note: npm/yarn run config will re-run this utility.

You will now be asked for the following:
-        Salt, the salt for username trip
-  Admin Name, the initial admin username
-  Admin Pass, the initial admin password
-        Port, the port for the websocket

prompt: Salt (leave as default):  (<default hidden>) 

prompt: Admin Nickname:  KnowsCount
prompt: Admin Password:  *************

prompt: Websocket Port:  (****) 

Config generated! You may now start the server normally.

audited 228 packages in 52.746s

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

found 11 vulnerabilities (10 low, 1 high)
  run `npm audit fix` to fix them, or `npm audit` for details

However, when I try to get it into my server (CentOS 7), it shows:

[root@vm199363 wwwroot]# git clone https://github.com/hack-chat/main.git hackchat
Cloning into 'hackchat'...
remote: Enumerating objects: 84, done.
remote: Counting objects: 100% (84/84), done.
remote: Compressing objects: 100% (81/81), done.
remote: Total 1755 (delta 46), reused 8 (delta 3), pack-reused 1671
Receiving Objects: 100% (1755/1755), 5.94 MiB | 5.27 MiB/s, done.
Resolving Deltas: 100% (918/918), done.
[root@vm199363 wwwroot]# cd hackchat
[root@vm199363 hackchat]# npm install
npm WARN lifecycle hack.chat-v2@2.1.93~postinstall: cannot run in wd hack.chat-v2@2.1.93 cd ./server && npm install && npm run config (wd=/www/wwwroot/hackchat)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 227 packages from 225 contributors and audited 228 packages in 26.919s

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

found 11 vulnerabilities (10 low, 1 high)
  run `npm audit fix` to fix them, or `npm audit` for details

Why does it not show the Wizard thing telling me to enter salt, admin username, pwd and such?


CentOS 7 information:

  • Node v12.18.1
  • npm v6.14.5

macOS information:

  • Node v12.14.1
  • npm v6.13.4

I was stupid... I didn't look much into it before I submitted the issue. Here is the case:
In my local macOS, it seems to automatically go into ./server which did not happen in my server.

> hack.chat-v2@2.1.93 postinstall /Users/admin/Desktop/Programmes/knowscount.cc/chat.knowscount.cc
> cd ./server && npm install && npm run config

https://github.com/hack-chat/main/blob/master/documentation/DEPLOY.md mentions:

Do not use root. Installing while using the root account or installing with root privileges will result in an error similar to the following: npm WARN lifecycle hack.chat-v2@2.1.92~postinstall: cannot run in wd hack.chat-v2@2.1.91 cd ./clientSource && npm install && cd .. & cd ./server && npm install && npm run config (wd='/dir')

Your method of manually doing it works, though.