Failed to start HFS code=exited
BestNoob opened this issue · 5 comments
Ubuntu 22.04
I tried both NVM
installs nvm (Node Version Manager)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
download and install Node.js (you may need to restart the terminal)
nvm install 18
verifies the right Node.js version is in the environment
node -v # should print v18.20.4
verifies the right npm version is in the environment
npm -v # should print 10.7.0
FNM
curl -fsSL https://fnm.vercel.app/install | bash
activate fnm source (use /user/.bashrc)
source ~/.bashrc
download and install Node.js
fnm use --install-if-missing 18
verifies the right Node.js version is in the environment
node -v # should print v18.20.4
verifies the right npm version is in the environment
npm -v # should print 10.7.0
after that i run:
sudo apt install npm
npm install -g node-gyp
put or created hfs.service
npx hfs@latest
create-admin PASSWORD
sudo systemctl daemon-reload && sudo systemctl enable hfs && sudo systemctl start hfs && sudo systemctl status hfs
but i recieve this error or it displays that it is running bot its not ....
sorry but i cannot work on this, as it contains no message from hfs.
what if you try to run npx hfs@latest
from the shell, not as a service?
In this case it is working as intended but hfs is shutdown when i disconnect/logoff from console/terminal
10:55:01 HFS ~ HTTP File Server
10:55:01 © Massimo Melina a@rejetto.com - License https://www.gnu.org/licenses/gpl-3.0.txt
10:55:01 started 9/15/2024, 10:55:01 AM
10:55:01 version 0.53.0
10:55:01 build 2024-07-19T14:05:43.478Z
10:55:01 cwd /XXXX/.hfs
10:55:01 app /XXXX/.npm/_npx/95660a09cc333978/node_modules/hfs
10:55:01 node v18.20.4
10:55:01 platform linux x64
10:55:01 pid 30397
10:55:01 config config.yaml
10:55:02 HINT: type "help" for help
10:55:02 http serving on any network : 80
10:55:02 serving on http://XXX.XXX.XXX.XXX
10:55:04 loading plugin antibrute
10:55:04 cannot launch browser on this machine >PLEASE< open your browser and reach one of these (you may need a different address)
ok, then you can attempt running as a service, and see if anything is written in the debug.log file
It is only creating an access logfile .. not for the program itself.
Where does or should this profgram store it files ?
..plugins/antibrute/ - is empty as example
maybe the issue is that the files doent get generated/downloaded successfully
i don't know linux, but googling it says that you can still look at the output of a program like this:
sudo journalctl -u hfs
see what's there.
hfs stores all its files in the ".hfs" folder, it's printed as "cwd" in the output