[GH-ISSUE #56] Getting error 500 on creating new VM #45

Closed
opened 2026-02-27 16:00:49 +03:00 by kerem · 6 comments
Owner

Originally created by @patschi on GitHub (May 21, 2013).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/56

I'm always getting an errorcode 500 when I want to create a virtual machine. The test.img will be created. I'm using the integrated webserver started with ./manage.py runserver 0.0.0.0:8000

Originally created by @patschi on GitHub (May 21, 2013). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/56 I'm always getting an errorcode 500 when I want to create a virtual machine. The test.img will be created. I'm using the integrated webserver started with `./manage.py runserver 0.0.0.0:8000`
kerem closed this issue 2026-02-27 16:00:50 +03:00
Author
Owner

@retspen commented on GitHub (May 21, 2013):

Change in file settings.py line: DEBUG=False to DEBUG=True

What show debug (css not work)

<!-- gh-comment-id:18236419 --> @retspen commented on GitHub (May 21, 2013): Change in file settings.py line: DEBUG=False to DEBUG=True What show debug (css not work)
Author
Owner

@patschi commented on GitHub (May 21, 2013):

Output:

TypeError at /newvm/1/
cannot concatenate 'str' and 'list' objects
Request Method: POST
Request URL:    http://10.0.0.9:8000/newvm/1/
Django Version: 1.4.5
Exception Type: TypeError
Exception Value:    
cannot concatenate 'str' and 'list' objects
Exception Location: /root/webvirtmgr/newvm/views.py in newvm, line 243
Python Executable:  /usr/bin/python
Python Version: 2.7.3
Python Path:    
['/root/webvirtmgr',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/pymodules/python2.7',
 '/root/webvirtmgr/webvirtmgr']
Server time:    Tue, 21 May 2013 23:13:15 +0300

Edit: More debug output:

Environment:
Request Method: POST
Request URL: http://10.0.0.9:8000/newvm/1/
Django Version: 1.4.5
Python Version: 2.7.3
Installed Applications:
('django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'vds')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware')
Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  111.                         response = callback(request, *callback_args, **callback_kwargs)
File "/root/webvirtmgr/newvm/views.py" in newvm
  243.                         vnc_passwd = ''.join([choice(letters + digits) for i in range(12)])
Exception Type: TypeError at /newvm/1/
Exception Value: cannot concatenate 'str' and 'list' objects
<!-- gh-comment-id:18236648 --> @patschi commented on GitHub (May 21, 2013): Output: <pre>TypeError at /newvm/1/ cannot concatenate 'str' and 'list' objects Request Method: POST Request URL: http://10.0.0.9:8000/newvm/1/ Django Version: 1.4.5 Exception Type: TypeError Exception Value: cannot concatenate 'str' and 'list' objects Exception Location: /root/webvirtmgr/newvm/views.py in newvm, line 243 Python Executable: /usr/bin/python Python Version: 2.7.3 Python Path: ['/root/webvirtmgr', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/pymodules/python2.7', '/root/webvirtmgr/webvirtmgr'] Server time: Tue, 21 May 2013 23:13:15 +0300</pre> Edit: More debug output: <pre>Environment: Request Method: POST Request URL: http://10.0.0.9:8000/newvm/1/ Django Version: 1.4.5 Python Version: 2.7.3 Installed Applications: ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'vds') Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware') Traceback: File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response 111. response = callback(request, *callback_args, **callback_kwargs) File "/root/webvirtmgr/newvm/views.py" in newvm 243. vnc_passwd = ''.join([choice(letters + digits) for i in range(12)]) Exception Type: TypeError at /newvm/1/ Exception Value: cannot concatenate 'str' and 'list' objects </pre>
Author
Owner

@retspen commented on GitHub (May 21, 2013):

Update webvirtmgr and try again

<!-- gh-comment-id:18238165 --> @retspen commented on GitHub (May 21, 2013): Update webvirtmgr and try again
Author
Owner

@patschi commented on GitHub (May 21, 2013):

No, still the same error:

TypeError at /newvm/1/
cannot concatenate 'str' and 'list' objects
Request Method: POST
Request URL:    http://10.0.0.9:8000/newvm/1/
Django Version: 1.4.5
Exception Type: TypeError
Exception Value:    
cannot concatenate 'str' and 'list' objects
Exception Location: /root/webvirtmgr/newvm/views.py in newvm, line 243
Python Executable:  /usr/bin/python
Python Version: 2.7.3
Python Path:    
['/root/webvirtmgr',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/pymodules/python2.7',
 '/root/webvirtmgr/webvirtmgr']
Server time:    Tue, 21 May 2013 23:59:55 +0300

I updated with "git pull" and restarted the integrated webserver.

<!-- gh-comment-id:18240539 --> @patschi commented on GitHub (May 21, 2013): No, still the same error: <pre>TypeError at /newvm/1/ cannot concatenate 'str' and 'list' objects Request Method: POST Request URL: http://10.0.0.9:8000/newvm/1/ Django Version: 1.4.5 Exception Type: TypeError Exception Value: cannot concatenate 'str' and 'list' objects Exception Location: /root/webvirtmgr/newvm/views.py in newvm, line 243 Python Executable: /usr/bin/python Python Version: 2.7.3 Python Path: ['/root/webvirtmgr', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/pymodules/python2.7', '/root/webvirtmgr/webvirtmgr'] Server time: Tue, 21 May 2013 23:59:55 +0300</pre> I updated with "git pull" and restarted the integrated webserver.
Author
Owner

@retspen commented on GitHub (May 22, 2013):

Fix this bug. Need update.

<!-- gh-comment-id:18258892 --> @retspen commented on GitHub (May 22, 2013): Fix this bug. Need update.
Author
Owner

@patschi commented on GitHub (May 23, 2013):

mhh... Really... Does work now :)
Somehow git didn't updated correctly. I clone'd the git again and now its working.

<!-- gh-comment-id:18350870 --> @patschi commented on GitHub (May 23, 2013): mhh... Really... Does work now :) Somehow git didn't updated correctly. I clone'd the git again and now its working.
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/webvirtmgr#45
No description provided.