mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-04-25 07:25:53 +03:00
[GH-ISSUE #614] Quick Install overrides nginx upstream wssocketiod port? #355
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/webvirtcloud#355
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @0x6d61726b on GitHub (Oct 22, 2023).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/614
When running the Quick Install script the wssocketiod default port gets overridden with the websocket port number and I am wondering if this is expected:
System (debian 12, bookworm):
Linux XXXX 6.1.0-13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.55-1 (2023-09-29) x86_64 GNU/Linux
File: /etc/nginx/conf.d/webvirtcloud.conf
server { listen 80;
}
upstream wsnovncd {
server 127.0.0.1:6080;
}
upstream wssocketiod {
server 127.0.0.1:6080;
}
Installation log details ...
WEBVIRTCLOUD
Welcome to Webvirtcloud Installer for RHEL&Alternatives, Fedora, Debian and Ubuntu!
The installer has detected Debian version 12 codename bookworm.
Q. Do you want to configure fqdn for Nginx? (y/n) n
Q. NOVNC service port number?(Default: 6080)
Setting novnc service port 6080
Q. NOVNC public port number for reverse proxy(e.g: 80 or 443)?(Default: 6080) 80
Setting novnc public port 80
Q. NOVNC host listen ip?(Default: 0.0.0.0)
Setting novnc host ip 0.0.0.0
created virtual environment CPython3.11.2.final.0-64 in 467ms
creator CPython3Posix(dest=/srv/webvirtcloud/venv, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/root/.local/share/virtualenv)
added seed packages: pip==23.0.1, setuptools==66.1.1, wheel==0.38.4
activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
Requirement already satisfied: pip in ./venv/lib/python3.11/site-packages (23.0.1)
Collecting pip
Downloading pip-23.3.1-py3-none-any.whl (2.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 10.2 MB/s eta 0:00:00
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 23.0.1
Uninstalling pip-23.0.1:
Successfully uninstalled pip-23.0.1
Successfully installed pip-23.3.1
Migrations for 'accounts':
accounts/migrations/0006_alter_userattributes_id_alter_userinstance_id_and_more.py
Migrations for 'appsettings':
appsettings/migrations/0009_alter_appsettings_id.py
Migrations for 'computes':
computes/migrations/0004_alter_compute_id.py
Migrations for 'instances':
instances/migrations/0012_alter_flavor_id_alter_instance_id.py
Migrations for 'logs':
logs/migrations/0004_alter_logs_id.py
Operations to perform:
Apply all migrations: accounts, admin, appsettings, auth, computes, contenttypes, instances, interfaces, logs, networks, otp_totp, sessions, storages
Running migrations:
Applying accounts.0006_alter_userattributes_id_alter_userinstance_id_and_more... OK
Applying appsettings.0009_alter_appsettings_id... OK
Applying computes.0004_alter_compute_id... OK
Applying instances.0012_alter_flavor_id_alter_instance_id... OK
Applying logs.0004_alter_logs_id... OK
! SHOW_PROFILE_EDIT_PASSWORD is found inside settings.py
! Warning!!! Setting to True for all users
! Don`t forget to remove the option from settings.py
0 static files copied to '/srv/webvirtcloud/static', 70 unmodified.
Configuring Nginx.
Configuring Supervisor.
Setting Supervisor to start on boot and restart.
Setting Nginx to start on boot and starting Nginx.
Open http://localhost to login to webvirtcloud.
Cleaning up...
Finished!
@catborise commented on GitHub (Oct 23, 2023):
Default port should be 6081 for upstream wssocketiod.
Default port should be 6080 for upstream wsnovncd.
We should check installation script, if it is different than…
@0x6d61726b commented on GitHub (Oct 24, 2023):
Ok, than I think the issue is related to this line:
github.com/retspen/webvirtcloud@9a675918c6/webvirtcloud.sh (L177)If I understand it correctly, it replaces everything that matches "server 127.0.0.1:" which applies to both upstream servers listed below:
github.com/retspen/webvirtcloud@9a675918c6/conf/nginx/webvirtcloud.conf (L39-L44)@0x6d61726b commented on GitHub (Nov 12, 2023):
Pull request #618 has been merged