Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to start HFS code=exited #739

Open
BestNoob opened this issue Sep 14, 2024 · 5 comments
Open

Failed to start HFS code=exited #739

BestNoob opened this issue Sep 14, 2024 · 5 comments
Labels
bug Something isn't working cannot reproduce

Comments

@BestNoob
Copy link

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 ....

hfs_Ubuntu_22 04_Error

@BestNoob BestNoob added the bug Something isn't working label Sep 14, 2024
@rejetto
Copy link
Owner

rejetto commented Sep 15, 2024

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?

@BestNoob
Copy link
Author

BestNoob commented Sep 15, 2024

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 [email protected] - 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)

@rejetto
Copy link
Owner

rejetto commented Sep 15, 2024

ok, then you can attempt running as a service, and see if anything is written in the debug.log file

@BestNoob
Copy link
Author

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

@rejetto
Copy link
Owner

rejetto commented Sep 17, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cannot reproduce
Projects
None yet
Development

No branches or pull requests

2 participants