Skip to content
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

Getting error 500 on creating new VM #56

Closed
patschi opened this issue May 21, 2013 · 6 comments
Closed

Getting error 500 on creating new VM #56

patschi opened this issue May 21, 2013 · 6 comments

Comments

@patschi
Copy link

patschi commented May 21, 2013

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

@retspen
Copy link
Owner

retspen commented May 21, 2013

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

What show debug (css not work)

@patschi
Copy link
Author

patschi commented 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

@retspen
Copy link
Owner

retspen commented May 21, 2013

Update webvirtmgr and try again

@patschi
Copy link
Author

patschi commented 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.

@retspen
Copy link
Owner

retspen commented May 22, 2013

Fix this bug. Need update.

@retspen retspen closed this as completed May 22, 2013
@patschi
Copy link
Author

patschi commented 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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants