sipcapture / homer-app

HOMER 7.x Front-End and API Server
http://sipcapture.io
GNU Affero General Public License v3.0
204 stars 79 forks source link

bash: homer-app: command not found #421

Closed snsh1n3 closed 3 years ago

snsh1n3 commented 3 years ago

Hi! Guys, I'm having the following issue and may anyone can help me:

homer-app -create-config-db -database-root-user=postgres -database-host="127.0.0.1" -database-root-password=postgres -database-homer-user=homer_user

bash: homer-app: command not found

image

And when I use systemctl status homer-app.service I got this:

● homer-app.service - Homer API Server and UI Webapplication Loaded: loaded (/usr/lib/systemd/system/homer-app.service; enabled; vendor preset: disabled) Active: activating (auto-restart) (Result: exit-code) since Sun 2021-03-14 15:27:35 -05; 2s ago Process: 11583 ExecStart=/usr/local/bin/homer-app (code=exited, status=2) Main PID: 11583 (code=exited, status=2)

.us-east-2.compute.internal systemd[1]: homer-app.service: Main process exited, code=exited, status=2/INVALIDARGUMENT .us-east-2.compute.internal systemd[1]: homer-app.service: Failed with result 'exit-code'.

image

Any idea?

adubovikov commented 3 years ago

/usr/local/homer/bin/homer-app

snsh1n3 commented 3 years ago

/usr/local/homer/bin/homer-app

That directory isn't created yet

adubovikov commented 3 years ago

so, you didn't install homer-app ?

snsh1n3 commented 3 years ago

so, you didn't install homer-app ?

image I have that

snsh1n3 commented 3 years ago

so, you didn't install homer-app ?

image

adubovikov commented 3 years ago

-webapp-config-path

adubovikov commented 3 years ago

and


find / -name webapp_config.json
snsh1n3 commented 3 years ago

and

find / -name webapp_config.json

image

adubovikov commented 3 years ago

you didn't create DB, please follow the HOWTO:

https://github.com/sipcapture/homer-app#create-table--migration---connection-data-will-be-read-from-webapp_configjson