palinuro
After minutes of discovering, i think i understand this issue. We are having 2 errors here:
- Login cred, which can be modify and reconfigured (my above comment)
- Connection error:
By now, python-faraday
is using /usr/bin/python-faraday
as running script, which has
#!/bin/sh
systemctl start python-faraday
sleep 3
cd /usr/share/python-faraday && ./faraday.py "$@"
systemctl stop python-faraday
Basically, python-faraday.service
is located at /lib/systemd/system/python-faraday.service
, which has
[Unit]
Description=python-faraday Server
Requires=postgresql.service
After=postgresql.service
[Service]
Type=simple
ExecStartPre=/bin/sh -c 'if ! su postgres -c "psql -lqt" | cut -d \| -f 1 | grep -qw faraday; then cd /usr/share/python-faraday && python manage.py initdb; fi'
ExecStart=/usr/share/python-faraday/faraday-server.py
So i started faraday server as service (which should be okay) by sudo service start python-faraday
. I have python-faraday
is running by service python-faraday status
. I can say faraday server is running
.
Next, I opened Browser, go to http://localhost:5985/#/
. It directs me to login page, but my new username and password is invalid (?). I go back to /usr/share/python-faraday
, run python manage.py status-check
, it gives me:
Checking if postgreSQL is running...
[+] PostgreSQL is running
[+] PostgreSQL lock not detected.
Checking if Faraday is running...
[-] Faraday Server is not running
[-] Faraday GTK is not running
Checking Faraday config...
[-] Credentials can not be checked. Either Faraday Server not running or database not working
[+] /.faraday/storage -> Permission accepted
[-] Port 5985 in localhost is not open
Service is running, port is opening, but faraday is not working. I stopped faraday server by sudo service python-faraday stop
then start server manually python faraday-server.py start
. Wow, i logged in successfully.
Check running status again:
Checking if postgreSQL is running...
[+] PostgreSQL is running
[+] PostgreSQL lock not detected.
Checking if Faraday is running...
[+] Faraday Server is running. PID:6744
[-] Faraday GTK is not running
Checking Faraday config...
[+] Credentials matched
[+] /.faraday/storage -> Permission accepted
[+] Port 5985 in localhost is open
Fix: here is my /usr/bin/python-faraday
. There is no server kill after finish task so user has to do it manually. I’ve checked and there is no error. Please make tests and fix as soon as possible.
#!/bin/sh
cd /usr/share/python-faraday && ./faraday-server.py &
sleep 3
./faraday.py "$@"
p/s: After checking python-faraday server options, server has --stop
mode, so maybe adding ./faraday-server.py --stop
in the last line of script is good. Or you can make 2 scripts that point to faraday-server and faraday-client and let users run it manually.
p/s 2: create workspace gives me 500 error (i logged in both web inteface and cli). I really need help in this step