[GH-ISSUE #15] Can't make it work #11

Open
opened 2026-02-27 15:56:58 +03:00 by kerem · 33 comments
Owner

Originally created by @romu70 on GitHub (Jun 5, 2015).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/15

Hi,
I've installed WebVirtCloud to make some testing. Setup ran fine as much as I can say. If I browse http://localhost, I see the nginx welcome page. But I've tried ports 8000 (like webvirtmgr) and 6080 (taken from the settings.py), none work.

Is webvirtcloud autonomous? Or Do I have to install it with webvirtmgr?

Originally created by @romu70 on GitHub (Jun 5, 2015). Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/15 Hi, I've installed WebVirtCloud to make some testing. Setup ran fine as much as I can say. If I browse http://localhost, I see the nginx welcome page. But I've tried ports 8000 (like webvirtmgr) and 6080 (taken from the settings.py), none work. Is webvirtcloud autonomous? Or Do I have to install it with webvirtmgr?
Author
Owner

@retspen commented on GitHub (Jun 5, 2015):

Show your nginx settings for webvirtcloud virtual host

<!-- gh-comment-id:109185956 --> @retspen commented on GitHub (Jun 5, 2015): Show your nginx settings for webvirtcloud virtual host
Author
Owner

@romu70 commented on GitHub (Jun 5, 2015):

Which file ? FYI, in the /etc/nginx/sites-enabled/default, there is no virtual host at all, just the default nginx configuration on port 80.

<!-- gh-comment-id:109190824 --> @romu70 commented on GitHub (Jun 5, 2015): Which file ? FYI, in the /etc/nginx/sites-enabled/default, there is no virtual host at all, just the default nginx configuration on port 80.
Author
Owner

@retspen commented on GitHub (Jun 5, 2015):

https://github.com/retspen/webvirtcloud#install-webvirtcloud-panel

<!-- gh-comment-id:109190979 --> @retspen commented on GitHub (Jun 5, 2015): https://github.com/retspen/webvirtcloud#install-webvirtcloud-panel
Author
Owner

@romu70 commented on GitHub (Jun 5, 2015):

Yes, this is what I ran yesterday when I installed it. I'll erase my current setup and re-run from scratch. Let you know.

<!-- gh-comment-id:109191355 --> @romu70 commented on GitHub (Jun 5, 2015): Yes, this is what I ran yesterday when I installed it. I'll erase my current setup and re-run from scratch. Let you know.
Author
Owner

@retspen commented on GitHub (Jun 5, 2015):

In file webvirtmgr.conf for nginx you have parameter "server_name
webvirtcloud.example.com;” you need change it

On Fri, Jun 5, 2015 at 10:35 AM, romu70 notifications@github.com wrote:

Yes, this is what I ran yesterday when I installed it. I'll era my current
setup and re-run from scratch. Let you know.


Reply to this email directly or view it on GitHub
https://github.com/retspen/webvirtcloud/issues/15#issuecomment-109191355
.

<!-- gh-comment-id:109191636 --> @retspen commented on GitHub (Jun 5, 2015): In file webvirtmgr.conf for nginx you have parameter "server_name webvirtcloud.example.com;” you need change it On Fri, Jun 5, 2015 at 10:35 AM, romu70 notifications@github.com wrote: > Yes, this is what I ran yesterday when I installed it. I'll era my current > setup and re-run from scratch. Let you know. > > — > Reply to this email directly or view it on GitHub > https://github.com/retspen/webvirtcloud/issues/15#issuecomment-109191355 > .
Author
Owner

@romu70 commented on GitHub (Jun 5, 2015):

So, I re-ran the setup. The /etc/nginx/conf.d/webvirtcloud.conf file is:

server {
    listen 80;

    server_name webvirtcloud.example.com;
    #access_log /var/log/nginx/webvirtcloud-access_log; 

    location /static/ {
        root /var/www/webvirtcloud;
        expires max;
    }

    location / {
        proxy_pass http://127.0.0.1:8000;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-for $proxy_add_x_forwarded_for;
        proxy_set_header Host $host:$server_port;
        proxy_set_header X-Forwarded-Proto $remote_addr;
        proxy_connect_timeout 600;
        proxy_read_timeout 600;
        proxy_send_timeout 600;
        client_max_body_size 1024M;
    }
}

And still doesn't work.

<!-- gh-comment-id:109198269 --> @romu70 commented on GitHub (Jun 5, 2015): So, I re-ran the setup. The /etc/nginx/conf.d/webvirtcloud.conf file is: ``` server { listen 80; server_name webvirtcloud.example.com; #access_log /var/log/nginx/webvirtcloud-access_log; location /static/ { root /var/www/webvirtcloud; expires max; } location / { proxy_pass http://127.0.0.1:8000; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-for $proxy_add_x_forwarded_for; proxy_set_header Host $host:$server_port; proxy_set_header X-Forwarded-Proto $remote_addr; proxy_connect_timeout 600; proxy_read_timeout 600; proxy_send_timeout 600; client_max_body_size 1024M; } } ``` And still doesn't work.
Author
Owner

@retspen commented on GitHub (Jun 5, 2015):

Change parameter "server_name webvirtcloud.example.com;" - this is virtual host name

<!-- gh-comment-id:109265011 --> @retspen commented on GitHub (Jun 5, 2015): Change parameter "server_name webvirtcloud.example.com;" - this is virtual host name
Author
Owner

@romu70 commented on GitHub (Jun 5, 2015):

Changed to my machine name and restarted both nginx and supervisord. Browsing http://#server_name value# leads to the nginx default page. http://#server_name value#:8000 leads to "Unable to connect".

<!-- gh-comment-id:109268817 --> @romu70 commented on GitHub (Jun 5, 2015): Changed to my machine name and restarted both nginx and supervisord. Browsing http://#server_name value# leads to the nginx default page. http://#server_name value#:8000 leads to "Unable to connect".
Author
Owner

@retspen commented on GitHub (Jun 7, 2015):

http://your_server_name/ - without 8000

<!-- gh-comment-id:109722790 --> @retspen commented on GitHub (Jun 7, 2015): http://your_server_name/ - without 8000
Author
Owner

@romu70 commented on GitHub (Jun 8, 2015):

Just the "Welcome to nginx" page.

<!-- gh-comment-id:109895295 --> @romu70 commented on GitHub (Jun 8, 2015): Just the "Welcome to nginx" page.
Author
Owner

@retspen commented on GitHub (Jun 8, 2015):

What show?

$ ping your_server_name
<!-- gh-comment-id:109900041 --> @retspen commented on GitHub (Jun 8, 2015): What show? ``` bash $ ping your_server_name ```
Author
Owner

@romu70 commented on GitHub (Jun 8, 2015):

127.0.1.1 because I'm connected localy to this server.

<!-- gh-comment-id:109901654 --> @romu70 commented on GitHub (Jun 8, 2015): 127.0.1.1 because I'm connected localy to this server.
Author
Owner

@retspen commented on GitHub (Jun 8, 2015):

Ok, change server_name xxxx; to server_name localhost; and restart nginx service. If you would have problem you need check default config for nginx where define sever_name localhost.

<!-- gh-comment-id:109902315 --> @retspen commented on GitHub (Jun 8, 2015): Ok, change <code>server_name xxxx;</code> to <code>server_name localhost;</code> and restart nginx service. If you would have problem you need check default config for nginx where define sever_name localhost.
Author
Owner

@romu70 commented on GitHub (Jun 8, 2015):

Does not change anything, still see the nginx default page.

<!-- gh-comment-id:109906348 --> @romu70 commented on GitHub (Jun 8, 2015): Does not change anything, still see the nginx default page.
Author
Owner

@retspen commented on GitHub (Jun 8, 2015):

Do you connect to http://localhost ? Remove default nginx settings.

<!-- gh-comment-id:109906512 --> @retspen commented on GitHub (Jun 8, 2015): Do you connect to http://localhost ? Remove default nginx settings.
Author
Owner

@romu70 commented on GitHub (Jun 8, 2015):

Yes of course. I'll test with webvirtmgr to see if it's better.

<!-- gh-comment-id:109910496 --> @romu70 commented on GitHub (Jun 8, 2015): Yes of course. I'll test with webvirtmgr to see if it's better.
Author
Owner

@retspen commented on GitHub (Jun 8, 2015):

Can you setup nginx like in webvirtmgr, settings for nginx the same

<!-- gh-comment-id:109911459 --> @retspen commented on GitHub (Jun 8, 2015): Can you setup nginx like in webvirtmgr, settings for nginx the same
Author
Owner

@romu70 commented on GitHub (Jun 8, 2015):

Ok, removed all files within /var/www, and ran again the installation process, and it works! Don't know where the problem was. Just an issue, it seems to not process the CSS, there is no style on the page.

<!-- gh-comment-id:109936057 --> @romu70 commented on GitHub (Jun 8, 2015): Ok, removed all files within /var/www, and ran again the installation process, and it works! Don't know where the problem was. Just an issue, it seems to not process the CSS, there is no style on the page.
Author
Owner

@retspen commented on GitHub (Jun 8, 2015):

Check /static/ path in config must be root /var/www/webvirtcloud;

<!-- gh-comment-id:109938045 --> @retspen commented on GitHub (Jun 8, 2015): Check `/static/` path in config must be `root /var/www/webvirtcloud;`
Author
Owner

@romu70 commented on GitHub (Jun 8, 2015):

Path seems right in the HTML, but the Firefox inspector says: "No CSS Prpperties found".

I've also tried to change "webvirtcloud.example.com" to my machine name in the /etc/nginx/conf.d/webvirtcloud.conf file, but then, I get the "Unable to connect" page again. Only localhost gives me something, but without CSS.

<!-- gh-comment-id:109941993 --> @romu70 commented on GitHub (Jun 8, 2015): Path seems right in the HTML, but the Firefox inspector says: "No CSS Prpperties found". I've also tried to change "webvirtcloud.example.com" to my machine name in the /etc/nginx/conf.d/webvirtcloud.conf file, but then, I get the "Unable to connect" page again. Only localhost gives me something, but without CSS.
Author
Owner

@retspen commented on GitHub (Jun 8, 2015):

Show your nginx error log

<!-- gh-comment-id:109944175 --> @retspen commented on GitHub (Jun 8, 2015): Show your nginx error log
Author
Owner

@thatnerdjosh commented on GitHub (Jun 27, 2015):

This has been fixed in the latest merges :)

<!-- gh-comment-id:116050973 --> @thatnerdjosh commented on GitHub (Jun 27, 2015): This has been fixed in the latest merges :)
Author
Owner

@aa1121 commented on GitHub (Jul 24, 2019):

I'm having a similar issue. I can only connect through localhost using port forwarding and css doesnt load. connecting to the remote ip address gives me nothing. How can i fix this?, how can i either get the css to load or connect directly through the ip address?

<!-- gh-comment-id:514657192 --> @aa1121 commented on GitHub (Jul 24, 2019): I'm having a similar issue. I can only connect through localhost using port forwarding and css doesnt load. connecting to the remote ip address gives me nothing. How can i fix this?, how can i either get the css to load or connect directly through the ip address?
Author
Owner

@catborise commented on GitHub (Jul 26, 2019):

hi @aa1121 could you please create a vm on the host. then install webvirtcloud on it. this isolates many unknown environment effects

<!-- gh-comment-id:515366525 --> @catborise commented on GitHub (Jul 26, 2019): hi @aa1121 could you please create a vm on the host. then install webvirtcloud on it. this isolates many unknown environment effects
Author
Owner

@aa1121 commented on GitHub (Jul 26, 2019):

i already have vms on the host, reinstalled webvirtcloud but i'm getting the same issue

<!-- gh-comment-id:515459580 --> @aa1121 commented on GitHub (Jul 26, 2019): i already have vms on the host, reinstalled webvirtcloud but i'm getting the same issue
Author
Owner

@catborise commented on GitHub (Jul 26, 2019):

@aa1121 install webvirtcloud on a vm not to host

<!-- gh-comment-id:515512449 --> @catborise commented on GitHub (Jul 26, 2019): @aa1121 install webvirtcloud on a vm not to host
Author
Owner

@aa1121 commented on GitHub (Jul 29, 2019):

did that, same thing, no css...

<!-- gh-comment-id:516001881 --> @aa1121 commented on GitHub (Jul 29, 2019): did that, same thing, no css...
Author
Owner

@catborise commented on GitHub (Jul 29, 2019):

whic os do you use for webvirtcloud installation?

<!-- gh-comment-id:516010813 --> @catborise commented on GitHub (Jul 29, 2019): whic os do you use for webvirtcloud installation?
Author
Owner

@aa1121 commented on GitHub (Jul 29, 2019):

in host: debian, in vm ubuntu

<!-- gh-comment-id:516034477 --> @aa1121 commented on GitHub (Jul 29, 2019): in host: debian, in vm ubuntu
Author
Owner

@catborise commented on GitHub (Aug 1, 2019):

i try every installation method like vagrant, docker and normal. all of them works as expected. what causes you problem, i do not know. may be you can try these methods: https://github.com/retspen/webvirtcloud/wiki

<!-- gh-comment-id:517165710 --> @catborise commented on GitHub (Aug 1, 2019): i try every installation method like vagrant, docker and normal. all of them works as expected. what causes you problem, i do not know. may be you can try these methods: https://github.com/retspen/webvirtcloud/wiki
Author
Owner

@aa1121 commented on GitHub (Aug 1, 2019):

I can now access the web interface by connecting to the remote ip address, but if i try to connect through localhost using port forwarding, it still gives me issue where css doesnt load... I found a workaround for that though, i run this command on the remote machine "python /srv/webvirtcloud/manage.py runserver 0:8001 --settings=webvirtcloud.settings-dev" and connect to localhost:8001 on the local machine, with port forwarding enabled. This way, css loads

<!-- gh-comment-id:517186520 --> @aa1121 commented on GitHub (Aug 1, 2019): I can now access the web interface by connecting to the remote ip address, but if i try to connect through localhost using port forwarding, it still gives me issue where css doesnt load... I found a workaround for that though, i run this command on the remote machine "python /srv/webvirtcloud/manage.py runserver 0:8001 --settings=webvirtcloud.settings-dev" and connect to localhost:8001 on the local machine, with port forwarding enabled. This way, css loads
Author
Owner

@aa1121 commented on GitHub (Aug 1, 2019):

well never mind, this doesnt work for me anymore, i'll try to get it working again and then i'll update with instructions

<!-- gh-comment-id:517198085 --> @aa1121 commented on GitHub (Aug 1, 2019): well never mind, this doesnt work for me anymore, i'll try to get it working again and then i'll update with instructions
Author
Owner

@aa1121 commented on GitHub (Aug 1, 2019):

ok, these are the instructions that worked for me in order to get it working through localhost using port forwarding, with css loading

cd /srv/webvirtcloud
source venv/bin/activate
python /srv/webvirtcloud/manage.py runserver 0:8002 --settings=webvirtcloud.settings-dev

you might need root access or not, depending on permissions

<!-- gh-comment-id:517210423 --> @aa1121 commented on GitHub (Aug 1, 2019): ok, these are the instructions that worked for me in order to get it working through localhost using port forwarding, with css loading cd /srv/webvirtcloud source venv/bin/activate python /srv/webvirtcloud/manage.py runserver 0:8002 --settings=webvirtcloud.settings-dev you might need root access or not, depending on permissions
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtcloud#11
No description provided.