-
Notifications
You must be signed in to change notification settings - Fork 374
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
ERROR: Internal Server Error: /computes/**/machines #615
Comments
I had the same issue running WebVirtCloud on an aarch64 server. The
The issue seems to go away after I closed my web browser and restarted nginx and supervisor. Not sure which combination solved this issue for me as I was trying different things at the time. Maybe a caching issue. |
Thank you very much @MisterBlueBear for sharing your experience and offering this solution. I did restart the whole LXC container that contains WebVirtCloud and closed the web browser, took a different one and also used a different computer, but unfortunately that all did not work for me. However, I can confirm that the content of I think this issue is somehow related to WebVirtCloud code, because Gunicorn reports HTTP 500 Internal Server Error, but only when |
I recently encountered this issue when I was trying to add a new instance. There was no option in the drop-down menu for Chipset. Would you mind share the rest of your [2023-11-13 13:33:10,219] ERROR: Internal Server Error: /instances/create/1/x86_64/null/ |
Did you make migrations? |
Here's the output when I ran Operations to perform: After that I restarted nginx and supervisor. I got the same error when I tried to create a new instance. Is there anything else you would like to look at to debug this issue? |
checkout new settings. there are some new settings in settings.py.template |
Encountered the same problem on a fresh installation of webvirtcloud, ERROR: Internal Server Error: /computes/1/archs/x86_64/machines. OS: Ubuntu 20.04.6 |
Try reinstall with the install.sh script and problem solved. |
Problem fixed. |
we can add tzdata to python requirement packages |
Well, it looks that it is needed. I have attached my log file from latest docker build with errors shown. |
I have installed tzdata in the LXC container running webvirtcloud with the following command sequence:
Afterwards I rebooted the LXC container, but this did not fix the issue (it still does not work with
Is there a way to get more/detailed logs that pinpoints to the location that causes this error? |
Hi 0x6d61726b I have tried the same approach with docker container and it didn't work. Only rebuilding from the start with tzdata added in requirements helped. I will test it again with debug enabled. |
With tzone and debug true: With tzone and debug false: |
@catborise: I have performed the same test and found out that the sequence where webvirtcloud requests machines information differs: DEBUG = True: DEBUG = False: @ssbaksa: Have you made sure that Firefox has not cached the value of machines? I ran into this trap when investigating this issue a while ago. |
It can be so. I will try it again tomorow.
…On Fri, 19 Jan 2024, 18:43 0x6d61726b, ***@***.***> wrote:
@catborise <https://github.com/catborise>: I have performed the same test
and found out that the address where webvirtcloud requests machines
information differs significantly depending on DEBUG setting:
DEBUG = True: /computes/1/archs/x86_64/machines/ ⯈ 200 OK
DEBUG = False: machines ⯈ 500 Internal Server Error
webvirtcloud_Debug.True.png (view on web)
<https://github.com/retspen/webvirtcloud/assets/25281946/67c607a7-e031-4682-a198-82e28943ed61>
webvirtcloud_Debug.False.png (view on web)
<https://github.com/retspen/webvirtcloud/assets/25281946/c0787f84-b3ee-4b81-afce-9a2f964bf7db>
@ssbaksa <https://github.com/ssbaksa>: Have you made sure that Firefox
has not cached the value of machines? I ran into this trap when
investigating this issue a while ago.
—
Reply to this email directly, view it on GitHub
<#615 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEYIXMFXI5CXS3VIT2QSDZ3YPKWELAVCNFSM6AAAAAA6LENQOKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBQHAZTEMBYGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi, I had the same issue, debug=false, access /computes/1/archs/x86_64/machines/ to get machines. What information should I provide? {
"machines": [
"ubuntu",
"pc",
"ubuntu-q35",
"q35"
]
} |
Owwww! I found it. When installing kvm, I installed aptitude install qemu qemu-system virt-manager libvirt-daemon-system virtinst libvirt-clients bridge-utils -y |
So, you are sugesting that this is error in compute or how it is installed.
Well its all worked well on my 19 hypervisors and I hadn't changed anything
there. I am only building new dockers when catborise push them to git.
…On Sat, 20 Jan 2024, 17:54 rtpacks, ***@***.***> wrote:
Owwww! I found it. When installing kvm, I installed qemu qemu-system
(download all platforms) and webvirtcloud returned the correct results.
aptitude install qemu qemu-system virt-manager libvirt-daemon-system virtinst libvirt-clients bridge-utils -y
—
Reply to this email directly, view it on GitHub
<#615 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEYIXMFXG53CH6EDV6JESRDYPPZDHAVCNFSM6AAAAAA6LENQOKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBSGE3TIMRQGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@0x6d61726b |
I modify this file <computes/urls.py>, update line 62 from "archs/str:arch/machines/" to "archs/str:arch/machines", Or modify this file <instances/templates/create_instance_w1.html>, update line 104 from <get_machine_type_url = "/computes/" + compute_id + "/archs/" + arch + "/machines"> to <get_machine_type_url = "/computes/" + compute_id + "/archs/" + arch + "/machines/"> and restart supervisor. After this, the drop-down menu for Chipset is displayed. |
@tianmaxingkong168 thanks. i made changes, i hope it will solve(i cannot reproduce problem) with #649 |
I am currently playing running webvirtcloud in an lxc container and got that running pretty well (with a few questions still open to me). However, when trying to create a new instance, some requests are not processed unless "DEBUG = TRUE" is set in settings.py file.
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
Log entry (DEBUG = False):
[2023-10-22 21:50:26,311] ERROR: Internal Server Error: /computes/1/archs/x86_64/machines
Log entry (DEBUG = True):
none
Can somebody please let me know on how to track down this issue to get a clue what is going on and how to resolve it?
The text was updated successfully, but these errors were encountered: