-
-
Notifications
You must be signed in to change notification settings - Fork 247
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
Fresh manual install cannot login #345
Comments
Hi,
Do you use Centos? If so, try to disable selinux
|
Hi no I am using Ubuntu
Sent with Proton Mail secure email.
…------- Original Message -------
On Saturday, November 26th, 2022 at 11:12 PM, Pavel Loginov ***@***.***> wrote:
Hi,
Do you use Centos? If so, try to disable selinux
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.[blob:https://mail.proton.me/df9e177d-84ac-4881-b9e2-82121e7e7c67]
|
Then why apache user? There is no this user on Ubuntu
|
As per the install instructions ?
sudo chown -R apache:apache /var/www/haproxy-wi/
Sent with Proton Mail secure email.
…------- Original Message -------
On Saturday, November 26th, 2022 at 11:16 PM, Pavel Loginov ***@***.***> wrote:
Then why apache user? There is no this user on Ubuntu
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.[blob:https://mail.proton.me/917a607a-e9af-4e48-954b-e26fa49c8175]
|
The instructions for manual install are not clear - you need to change it
#### Install required dependencies
apt-get install apache2 python3 python3-pip python3-ldap rsync ansible python3-requests \
python3-networkx python3-matplotlib python3-bottle python3-future python3-jinja2 python3-peewee \
python3-pymysql netcat nmap net-tools lshw dos2unix libapache2-mod-wsgi-py3 openssl sshpass -y
Then this
$ cd /var/www/
$ git clone https://github.com/hap-wi/roxy-wi.git /var/www/haproxy-wi
$ sudo chown -R www-data:www-data haproxy-wi/
$ sudo cp haproxy-wi/config_other/httpd/roxy-wi_deb.conf /etc/apache2/sites-available/roxy-wi.conf
$ sudo a2ensite roxy-wi.conf
$ sudo a2enmod cgid ssl proxy_http rewrite
$ sudo pip3 install -r haproxy-wi/config_other/requirements_deb.txt
$ sudo systemctl restart apache2
Sent with Proton Mail secure email.
…------- Original Message -------
On Saturday, November 26th, 2022 at 11:16 PM, Pavel Loginov ***@***.***> wrote:
Then why apache user? There is no this user on Ubuntu
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.[blob:https://mail.proton.me/917a607a-e9af-4e48-954b-e26fa49c8175]
|
Missing cmd here
/var/www$ sudo mkdir /var/lib/roxy-wi/keys/
mkdir: cannot create directory '/var/lib/roxy-wi/keys/': No such file or directory
need to run
cd /var/lib/
sudo mkdir roxy-wi
Sent with Proton Mail secure email.
…------- Original Message -------
On Sunday, November 27th, 2022 at 8:07 AM, Mike Saunders ***@***.***> wrote:
The instructions for manual install are not clear - you need to change it
#### Install required dependencies
apt-get install apache2 python3 python3-pip python3-ldap rsync ansible python3-requests \
python3-networkx python3-matplotlib python3-bottle python3-future python3-jinja2 python3-peewee \
python3-pymysql netcat nmap net-tools lshw dos2unix libapache2-mod-wsgi-py3 openssl sshpass -y
Then this
$ cd /var/www/
$ git clone https://github.com/hap-wi/roxy-wi.git /var/www/haproxy-wi
$ sudo chown -R www-data:www-data haproxy-wi/
$ sudo cp haproxy-wi/config_other/httpd/roxy-wi_deb.conf /etc/apache2/sites-available/roxy-wi.conf
$ sudo a2ensite roxy-wi.conf
$ sudo a2enmod cgid ssl proxy_http rewrite
$ sudo pip3 install -r haproxy-wi/config_other/requirements_deb.txt
$ sudo systemctl restart apache2
Sent with Proton Mail secure email.
------- Original Message -------
On Saturday, November 26th, 2022 at 11:16 PM, Pavel Loginov ***@***.***> wrote:
>
> Then why apache user? There is no this user on Ubuntu
>
> —
> Reply to this email directly, view it on GitHub, or unsubscribe.
> You are receiving this because you authored the thread.[blob:https://mail.proton.me/5bcc0cab-030b-4523-ac5a-88fa9f19255a]
|
another typo - this is not required as it already exists
sudo mkdir /var/www/haproxy-wi/app/certs/
after this command
sudo mkdir /etc/roxy-wi/
need to run cd /etc/www/
before running
sudo mv haproxy-wi/roxy-wi.cfg /etc/roxy-wi
Sent with Proton Mail secure email.
…------- Original Message -------
On Sunday, November 27th, 2022 at 8:16 AM, Mike Saunders ***@***.***> wrote:
Missing cmd here
/var/www$ sudo mkdir /var/lib/roxy-wi/keys/
mkdir: cannot create directory '/var/lib/roxy-wi/keys/': No such file or directory
need to run
cd /var/lib/
sudo mkdir roxy-wi
Sent with Proton Mail secure email.
------- Original Message -------
On Sunday, November 27th, 2022 at 8:07 AM, Mike Saunders ***@***.***> wrote:
> The instructions for manual install are not clear - you need to change it
>
>
> #### Install required dependencies
>
> apt-get install apache2 python3 python3-pip python3-ldap rsync ansible python3-requests \
> python3-networkx python3-matplotlib python3-bottle python3-future python3-jinja2 python3-peewee \
> python3-pymysql netcat nmap net-tools lshw dos2unix libapache2-mod-wsgi-py3 openssl sshpass -y
>
> Then this
>
> $ cd /var/www/
> $ git clone https://github.com/hap-wi/roxy-wi.git /var/www/haproxy-wi
>
>
> $ sudo chown -R www-data:www-data haproxy-wi/
>
> $ sudo cp haproxy-wi/config_other/httpd/roxy-wi_deb.conf /etc/apache2/sites-available/roxy-wi.conf
>
> $ sudo a2ensite roxy-wi.conf
>
> $ sudo a2enmod cgid ssl proxy_http rewrite
>
> $ sudo pip3 install -r haproxy-wi/config_other/requirements_deb.txt
>
> $ sudo systemctl restart apache2
>
>
>
> Sent with Proton Mail secure email.
>
> ------- Original Message -------
> On Saturday, November 26th, 2022 at 11:16 PM, Pavel Loginov ***@***.***> wrote:
>
>
> >
> > Then why apache user? There is no this user on Ubuntu
> >
> > —
> > Reply to this email directly, view it on GitHub, or unsubscribe.
> > You are receiving this because you authored the thread.[blob:https://mail.proton.me/48901cda-1d4f-41f9-bfc6-7121b186aa1f]
|
sorry cd /var/www/
Sent with Proton Mail secure email.
…------- Original Message -------
On Sunday, November 27th, 2022 at 8:19 AM, Mike Saunders ***@***.***> wrote:
another typo - this is not required as it already exists
sudo mkdir /var/www/haproxy-wi/app/certs/
after this command
sudo mkdir /etc/roxy-wi/
need to run cd /etc/www/
before running
sudo mv haproxy-wi/roxy-wi.cfg /etc/roxy-wi
Sent with Proton Mail secure email.
------- Original Message -------
On Sunday, November 27th, 2022 at 8:16 AM, Mike Saunders ***@***.***> wrote:
> Missing cmd here
>
> /var/www$ sudo mkdir /var/lib/roxy-wi/keys/
> mkdir: cannot create directory '/var/lib/roxy-wi/keys/': No such file or directory
>
> need to run
>
> cd /var/lib/
>
> sudo mkdir roxy-wi
>
>
>
>
>
>
> Sent with Proton Mail secure email.
>
> ------- Original Message -------
> On Sunday, November 27th, 2022 at 8:07 AM, Mike Saunders ***@***.***> wrote:
>
>
> > The instructions for manual install are not clear - you need to change it
> >
> >
> > #### Install required dependencies
> >
> > apt-get install apache2 python3 python3-pip python3-ldap rsync ansible python3-requests \
> > python3-networkx python3-matplotlib python3-bottle python3-future python3-jinja2 python3-peewee \
> > python3-pymysql netcat nmap net-tools lshw dos2unix libapache2-mod-wsgi-py3 openssl sshpass -y
> >
> > Then this
> >
> > $ cd /var/www/
> > $ git clone https://github.com/hap-wi/roxy-wi.git /var/www/haproxy-wi
> >
> >
> > $ sudo chown -R www-data:www-data haproxy-wi/
> >
> > $ sudo cp haproxy-wi/config_other/httpd/roxy-wi_deb.conf /etc/apache2/sites-available/roxy-wi.conf
> >
> > $ sudo a2ensite roxy-wi.conf
> >
> > $ sudo a2enmod cgid ssl proxy_http rewrite
> >
> > $ sudo pip3 install -r haproxy-wi/config_other/requirements_deb.txt
> >
> > $ sudo systemctl restart apache2
> >
> >
> >
> > Sent with Proton Mail secure email.
> >
> > ------- Original Message -------
> > On Saturday, November 26th, 2022 at 11:16 PM, Pavel Loginov ***@***.***> wrote:
> >
> >
> > >
> > > Then why apache user? There is no this user on Ubuntu
> > >
> > > —
> > > Reply to this email directly, view it on GitHub, or unsubscribe.
> > > You are receiving this because you authored the thread.[blob:https://mail.proton.me/6618897b-1d89-4385-8d16-2d02c1aac2f6]
|
before this cmd
sudo chown -R apache:apache /var/www/haproxy-wi/
need to run
as root
adduser apache
Sent with Proton Mail secure email.
…------- Original Message -------
On Sunday, November 27th, 2022 at 8:20 AM, Mike Saunders ***@***.***> wrote:
sorry cd /var/www/
Sent with Proton Mail secure email.
------- Original Message -------
On Sunday, November 27th, 2022 at 8:19 AM, Mike Saunders ***@***.***> wrote:
> another typo - this is not required as it already exists
>
> sudo mkdir /var/www/haproxy-wi/app/certs/
>
> after this command
> sudo mkdir /etc/roxy-wi/
>
> need to run cd /etc/www/
>
> before running
> sudo mv haproxy-wi/roxy-wi.cfg /etc/roxy-wi
>
>
>
> Sent with Proton Mail secure email.
>
> ------- Original Message -------
> On Sunday, November 27th, 2022 at 8:16 AM, Mike Saunders ***@***.***> wrote:
>
>
> > Missing cmd here
> >
> > /var/www$ sudo mkdir /var/lib/roxy-wi/keys/
> > mkdir: cannot create directory '/var/lib/roxy-wi/keys/': No such file or directory
> >
> > need to run
> >
> > cd /var/lib/
> >
> > sudo mkdir roxy-wi
> >
> >
> >
> >
> >
> >
> > Sent with Proton Mail secure email.
> >
> > ------- Original Message -------
> > On Sunday, November 27th, 2022 at 8:07 AM, Mike Saunders ***@***.***> wrote:
> >
> >
> > > The instructions for manual install are not clear - you need to change it
> > >
> > >
> > > #### Install required dependencies
> > >
> > > apt-get install apache2 python3 python3-pip python3-ldap rsync ansible python3-requests \
> > > python3-networkx python3-matplotlib python3-bottle python3-future python3-jinja2 python3-peewee \
> > > python3-pymysql netcat nmap net-tools lshw dos2unix libapache2-mod-wsgi-py3 openssl sshpass -y
> > >
> > > Then this
> > >
> > > $ cd /var/www/
> > > $ git clone https://github.com/hap-wi/roxy-wi.git /var/www/haproxy-wi
> > >
> > >
> > > $ sudo chown -R www-data:www-data haproxy-wi/
> > >
> > > $ sudo cp haproxy-wi/config_other/httpd/roxy-wi_deb.conf /etc/apache2/sites-available/roxy-wi.conf
> > >
> > > $ sudo a2ensite roxy-wi.conf
> > >
> > > $ sudo a2enmod cgid ssl proxy_http rewrite
> > >
> > > $ sudo pip3 install -r haproxy-wi/config_other/requirements_deb.txt
> > >
> > > $ sudo systemctl restart apache2
> > >
> > >
> > >
> > > Sent with Proton Mail secure email.
> > >
> > > ------- Original Message -------
> > > On Saturday, November 26th, 2022 at 11:16 PM, Pavel Loginov ***@***.***> wrote:
> > >
> > >
> > > >
> > > > Then why apache user? There is no this user on Ubuntu
> > > >
> > > > —
> > > > Reply to this email directly, view it on GitHub, or unsubscribe.
> > > > You are receiving this because you authored the thread.[blob:https://mail.proton.me/918ff720-d3ee-480f-89c2-935e4c33f339]
|
Not sure what you mean by this?
If you use Debian/Ubuntu:
Change httpd to apache2 PATH and apache to www-data user in all configs
Sent with Proton Mail secure email.
…------- Original Message -------
On Sunday, November 27th, 2022 at 8:23 AM, Mike Saunders ***@***.***> wrote:
before this cmd
sudo chown -R apache:apache /var/www/haproxy-wi/
need to run
as root
adduser apache
Sent with Proton Mail secure email.
------- Original Message -------
On Sunday, November 27th, 2022 at 8:20 AM, Mike Saunders ***@***.***> wrote:
> sorry cd /var/www/
>
>
> Sent with Proton Mail secure email.
>
> ------- Original Message -------
> On Sunday, November 27th, 2022 at 8:19 AM, Mike Saunders ***@***.***> wrote:
>
>
> > another typo - this is not required as it already exists
> >
> > sudo mkdir /var/www/haproxy-wi/app/certs/
> >
> > after this command
> > sudo mkdir /etc/roxy-wi/
> >
> > need to run cd /etc/www/
> >
> > before running
> > sudo mv haproxy-wi/roxy-wi.cfg /etc/roxy-wi
> >
> >
> >
> > Sent with Proton Mail secure email.
> >
> > ------- Original Message -------
> > On Sunday, November 27th, 2022 at 8:16 AM, Mike Saunders ***@***.***> wrote:
> >
> >
> > > Missing cmd here
> > >
> > > /var/www$ sudo mkdir /var/lib/roxy-wi/keys/
> > > mkdir: cannot create directory '/var/lib/roxy-wi/keys/': No such file or directory
> > >
> > > need to run
> > >
> > > cd /var/lib/
> > >
> > > sudo mkdir roxy-wi
> > >
> > >
> > >
> > >
> > >
> > >
> > > Sent with Proton Mail secure email.
> > >
> > > ------- Original Message -------
> > > On Sunday, November 27th, 2022 at 8:07 AM, Mike Saunders ***@***.***> wrote:
> > >
> > >
> > > > The instructions for manual install are not clear - you need to change it
> > > >
> > > >
> > > > #### Install required dependencies
> > > >
> > > > apt-get install apache2 python3 python3-pip python3-ldap rsync ansible python3-requests \
> > > > python3-networkx python3-matplotlib python3-bottle python3-future python3-jinja2 python3-peewee \
> > > > python3-pymysql netcat nmap net-tools lshw dos2unix libapache2-mod-wsgi-py3 openssl sshpass -y
> > > >
> > > > Then this
> > > >
> > > > $ cd /var/www/
> > > > $ git clone https://github.com/hap-wi/roxy-wi.git /var/www/haproxy-wi
> > > >
> > > >
> > > > $ sudo chown -R www-data:www-data haproxy-wi/
> > > >
> > > > $ sudo cp haproxy-wi/config_other/httpd/roxy-wi_deb.conf /etc/apache2/sites-available/roxy-wi.conf
> > > >
> > > > $ sudo a2ensite roxy-wi.conf
> > > >
> > > > $ sudo a2enmod cgid ssl proxy_http rewrite
> > > >
> > > > $ sudo pip3 install -r haproxy-wi/config_other/requirements_deb.txt
> > > >
> > > > $ sudo systemctl restart apache2
> > > >
> > > >
> > > >
> > > > Sent with Proton Mail secure email.
> > > >
> > > > ------- Original Message -------
> > > > On Saturday, November 26th, 2022 at 11:16 PM, Pavel Loginov ***@***.***> wrote:
> > > >
> > > >
> > > > >
> > > > > Then why apache user? There is no this user on Ubuntu
> > > > >
> > > > > —
> > > > > Reply to this email directly, view it on GitHub, or unsubscribe.
> > > > > You are receiving this because you authored the thread.[blob:https://mail.proton.me/d00fd796-45b5-4e6e-91f6-ec22118a26dd]
|
Because there is no apache user on Ubuntu:) Please, read how it works on Ubuntu |
So these comands sudo chown -R apache:apache should be sudo chown -R www-data:www-data ?
Sent with Proton Mail secure email.
…------- Original Message -------
On Sunday, November 27th, 2022 at 8:57 AM, Pavel Loginov ***@***.***> wrote:
Because there is no apache user on Ubuntu:)
Please, read how it works on Ubuntu
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.[blob:https://mail.proton.me/0c74cbd2-6dbb-4000-9c1d-537cecb77072]
|
Yes
|
Please update the instructions or add that information at the top for ubuntu run sudo chown -R www-data:www-data rather than after the commands
Ok I tried a fresh install and get 500 internal server error
this is my error log
File "/var/www/haproxy-wi/app/overview.py", line 10, in <module> import modules.roxywi.logs as roxy_logs
File "/var/www/haproxy-wi/app/modules/roxywi/logs.py", line 4, in <module>
import modules.server.server as server_mod
File "/var/www/haproxy-wi/app/modules/server/server.py", line 6, in <module>
from modules.server import ssh_connection
File "/var/www/haproxy-wi/app/modules/server/ssh_connection.py", line 1, in <module>
import paramiko
ModuleNotFoundError: No module named 'paramiko'
Traceback (most recent call last):
File "/var/www/haproxy-wi/app/overview.py", line 10, in <module>
import modules.roxywi.logs as roxy_logs
File "/var/www/haproxy-wi/app/modules/roxywi/logs.py", line 4, in <module>
import modules.server.server as server_mod
File "/var/www/haproxy-wi/app/modules/server/server.py", line 6, in <module>
I have run pip3 install paramiko
Sent with Proton Mail secure email.
…------- Original Message -------
On Tuesday, November 29th, 2022 at 5:58 PM, Pavel Loginov ***@***.***> wrote:
Yes
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.[blob:https://mail.proton.me/e21e4134-7cec-4cb9-84fa-bb09ad20db82]
|
Just tried a fresh install on CentOS 8 No match for argument: python3-paramiko |
Probably it's because you have not install epel repo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi just wanted to test out the sript before I consider buying a subscription.
I have added a DB and rund the DB script, when i goto the login page and enter admin/admin nothing happens
I checked the console log and see:
Firefox can’t establish a connection to the server at wss://192.168.1.66/. reconnecting-websocket.js:1:1075
The connection to wss://192.168.1.66/ was interrupted while the page was loading.
In MS Edge I see
[error] undefined login.py:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)
login.py:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)
reconnecting-websocket.js:1
WebSocket connection to 'wss://192.168.1.66/' failed: Error during WebSocket handshake: Unexpected response code: 503
all the .py files have 755 and are owned by apache:apache
The text was updated successfully, but these errors were encountered: