csm-aut / csm

This repository contains Cisco Software Manager (CSM Server) source code
Apache License 2.0
11 stars 7 forks source link

batch installation returns Internal Server Error #48

Closed jamesjwei closed 7 years ago

jamesjwei commented 7 years ago

click on batch installation:

(env) administrator@csm-sj-alpha:~/xe/csm-master/csmserver$ Exception on /install/batch_schedule_install/ [GET] Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app response = self.full_dispatch_request() File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception reraise(exc_type, exc_value, tb) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request return self.view_functionsrule.endpoint File "/usr/local/lib/python2.7/dist-packages/flask_login.py", line 758, in decorated_view return func(*args, **kwargs) File "/home/administrator/xe/csm-master/csmserver/views/install.py", line 314, in batch_schedule_install server_time=datetime.datetime.utcnow(), return_url=return_url) File "/usr/local/lib/python2.7/dist-packages/flask/templating.py", line 128, in render_template context, ctx.app) File "/usr/local/lib/python2.7/dist-packages/flask/templating.py", line 110, in _render rv = template.render(context) File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 969, in render return self.environment.handle_exception(exc_info, True) File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 742, in handle_exception reraise(exc_type, exc_value, tb) File "/home/administrator/xe/csm-master/csmserver/templates/schedule_install.html", line 3, in top-level template code {% from 'share/select_hosts_by_platform.html' import select_hosts_by_platform %} File "/home/administrator/xe/csm-master/csmserver/templates/base_schedule_install.html", line 99, in top-level template code

File "/home/administrator/xe/csm-master/csmserver/templates/base_software.html", line 50, in top-level template code

  • System Logs
  • File "/home/administrator/xe/csm-master/csmserver/templates/base.html", line 102, in top-level template code {% block main %}{% endblock %} File "/home/administrator/xe/csm-master/csmserver/templates/base_schedule_install.html", line 700, in block "main" {% block main_schedule_install %} {% endblock %} File "/home/administrator/xe/csm-master/csmserver/templates/schedule_install.html", line 180, in block "main_schedule_install" {{ common_schedule_install_gui() }} File "/home/administrator/xe/csm-master/csmserver/templates/base_schedule_install.html", line 92, in template {{ edit_field(form.dependency, field_width="col-sm-6", class="form-control") }} File "/home/administrator/xe/csm-master/csmserver/templates/host/common.html", line 6, in template {{ field(kwargs) }} File "/usr/local/lib/python2.7/dist-packages/wtforms/fields/core.py", line 149, in call return self.meta.render_field(self, kwargs) File "/usr/local/lib/python2.7/dist-packages/wtforms/meta.py", line 53, in render_field return field.widget(field, render_kw) File "/usr/local/lib/python2.7/dist-packages/wtforms/widgets/core.py", line 280, in call for val, label, selected in field.iter_choices(): File "/usr/local/lib/python2.7/dist-packages/wtforms/fields/core.py", line 448, in iter_choices yield (value, label, self.coerce(value) == self.data) ValueError: invalid literal for int() with base 10: 'Pre-Upgrade' [2017-02-24 16:09:21 +0000] [17678] [ERROR] Error handling request Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/sync.py", line 129, in handle self.handle_request(listener, req, client, addr) File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/sync.py", line 170, in handle_request respiter = self.wsgi(environ, resp.start_response) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1836, in call return self.wsgi_app(environ, start_response) File "/usr/local/lib/python2.7/dist-packages/werkzeug/contrib/fixers.py", line 148, in call return self.app(environ, start_response) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1820, in wsgi_app response = self.make_response(self.handle_exception(e)) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1566, in make_response raise ValueError('View function did not return a response') ValueError: View function did not return a response