{"action":"created","issue":{"url":"https://api.github.com/repos/radiasoft/sirepo/issues/563","repository_url":"https://api.github.com/repos/radiasoft/sirepo","labels_url":"https://api.github.com/repos/radiasoft/sirepo/issues/563/labels{/name}","comments_url":"https://api.github.com/repos/radiasoft/sirepo/issues/563/comments","events_url":"https://api.github.com/repos/radiasoft/sirepo/issues/563/events","html_url":"https://github.com/radiasoft/sirepo/issues/563","id":193239310,"number":563,"title":"SRW - unpleasant error causing simulations to hang","user":{"login":"mrakitin","id":13209176,"avatar_url":"https://avatars.githubusercontent.com/u/13209176?v=3","gravatar_id":"","url":"https://api.github.com/users/mrakitin","html_url":"https://github.com/mrakitin","followers_url":"https://api.github.com/users/mrakitin/followers","following_url":"https://api.github.com/users/mrakitin/following{/other_user}","gists_url":"https://api.github.com/users/mrakitin/gists{/gist_id}","starred_url":"https://api.github.com/users/mrakitin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrakitin/subscriptions","organizations_url":"https://api.github.com/users/mrakitin/orgs","repos_url":"https://api.github.com/users/mrakitin/repos","events_url":"https://api.github.com/users/mrakitin/events{/privacy}","received_events_url":"https://api.github.com/users/mrakitin/received_events","type":"User","site_admin":false},"labels":[{"id":289031205,"url":"https://api.github.com/repos/radiasoft/sirepo/labels/1st%20Priority","name":"1st Priority","color":"e11d21","default":false}],"state":"open","locked":false,"assignee":{"login":"robnagler","id":5495179,"avatar_url":"https://avatars.githubusercontent.com/u/5495179?v=3","gravatar_id":"","url":"https://api.github.com/users/robnagler","html_url":"https://github.com/robnagler","followers_url":"https://api.github.com/users/robnagler/followers","following_url":"https://api.github.com/users/robnagler/following{/other_user}","gists_url":"https://api.github.com/users/robnagler/gists{/gist_id}","starred_url":"https://api.github.com/users/robnagler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robnagler/subscriptions","organizations_url":"https://api.github.com/users/robnagler/orgs","repos_url":"https://api.github.com/users/robnagler/repos","events_url":"https://api.github.com/users/robnagler/events{/privacy}","received_events_url":"https://api.github.com/users/robnagler/received_events","type":"User","site_admin":false},"assignees":[{"login":"robnagler","id":5495179,"avatar_url":"https://avatars.githubusercontent.com/u/5495179?v=3","gravatar_id":"","url":"https://api.github.com/users/robnagler","html_url":"https://github.com/robnagler","followers_url":"https://api.github.com/users/robnagler/followers","following_url":"https://api.github.com/users/robnagler/following{/other_user}","gists_url":"https://api.github.com/users/robnagler/gists{/gist_id}","starred_url":"https://api.github.com/users/robnagler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robnagler/subscriptions","organizations_url":"https://api.github.com/users/robnagler/orgs","repos_url":"https://api.github.com/users/robnagler/repos","events_url":"https://api.github.com/users/robnagler/events{/privacy}","received_events_url":"https://api.github.com/users/robnagler/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/radiasoft/sirepo/milestones/1","html_url":"https://github.com/radiasoft/sirepo/milestones/SRW%20-%20bugs","labels_url":"https://api.github.com/repos/radiasoft/sirepo/milestones/1/labels","id":1316456,"number":1,"title":"SRW - bugs","description":"Bugs that need to be fixed as quickly as possible.","creator":{"login":"bruhwile","id":3825435,"avatar_url":"https://avatars.githubusercontent.com/u/3825435?v=3","gravatar_id":"","url":"https://api.github.com/users/bruhwile","html_url":"https://github.com/bruhwile","followers_url":"https://api.github.com/users/bruhwile/followers","following_url":"https://api.github.com/users/bruhwile/following{/other_user}","gists_url":"https://api.github.com/users/bruhwile/gists{/gist_id}","starred_url":"https://api.github.com/users/bruhwile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bruhwile/subscriptions","organizations_url":"https://api.github.com/users/bruhwile/orgs","repos_url":"https://api.github.com/users/bruhwile/repos","events_url":"https://api.github.com/users/bruhwile/events{/privacy}","received_events_url":"https://api.github.com/users/bruhwile/received_events","type":"User","site_admin":false},"open_issues":18,"closed_issues":58,"state":"open","created_at":"2015-09-21T14:52:21Z","updated_at":"2016-12-02T23:03:16Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-12-02T23:03:16Z","updated_at":"2016-12-02T23:03:38Z","closed_at":null,"body":"During today's simulations of the custom beamline layout @ochubar and me met this unpleasant error:\r\n```py\r\n../sirepo/server.py:780:_simulation_run_status k7ZiqAMr-WQIHhwEp-watchpointReport13: parametersChanged=True req_hash=20ae8de2ab50d2b7e2619f99e4deffa6 cached_hash=ab8111b721\r\n8b1c613ea636d0a2765ac1\r\n../sirepo/simulation_db.py:592:report_info /home/vagrant/src/radiasoft/sirepo/run/user/k7ZiqAMr/srw/WQIHhwEp/watchpointReport13: ignore IOError: [Errno 2] No such file or d\r\nirectory: '/home/vagrant/src/radiasoft/sirepo/run/user/k7ZiqAMr/srw/WQIHhwEp/watchpointReport13/in.json' errno=2\r\n../sirepo/server.py:700:_simulation_error /home/vagrant/src/radiasoft/sirepo/run/user/k7ZiqAMr/srw/WQIHhwEp/watchpointReport13/in.json: error: input file not found, but job\r\n is running\r\n10.0.2.2 - - [02/Dec/2016 22:03:12] \"POST /run-simulation HTTP/1.1\" 200 -\r\nException in thread Thread-40618:\r\nTraceback (most recent call last):\r\n  File \"/home/vagrant/.pyenv/versions/2.7.10/lib/python2.7/threading.py\", line 810, in __bootstrap_inner\r\n    self.run()\r\n  File \"/home/vagrant/.pyenv/versions/2.7.10/lib/python2.7/threading.py\", line 763, in run\r\n    self.__target(*self.__args, **self.__kwargs)\r\n  File \"/home/vagrant/.pyenv/versions/2.7.10/lib/python2.7/SocketServer.py\", line 602, in process_request_thread\r\n    self.handle_error(request, client_address)\r\n  File \"/home/vagrant/.pyenv/versions/2.7.10/lib/python2.7/SocketServer.py\", line 599, in process_request_thread\r\n    self.finish_request(request, client_address)\r\n  File \"/home/vagrant/.pyenv/versions/2.7.10/lib/python2.7/SocketServer.py\", line 334, in finish_request\r\n    self.RequestHandlerClass(request, client_address, self)\r\n  File \"/home/vagrant/.pyenv/versions/2.7.10/lib/python2.7/SocketServer.py\", line 655, in __init__\r\n    self.handle()\r\n  File \"/home/vagrant/.pyenv/versions/2.7.10/lib/python2.7/site-packages/werkzeug/serving.py\", line 216, in handle\r\n    rv = BaseHTTPRequestHandler.handle(self)\r\n  File \"/home/vagrant/.pyenv/versions/2.7.10/lib/python2.7/BaseHTTPServer.py\", line 340, in handle\r\n    self.handle_one_request()\r\n  File \"/home/vagrant/.pyenv/versions/2.7.10/lib/python2.7/site-packages/werkzeug/serving.py\", line 251, in handle_one_request\r\n    return self.run_wsgi()\r\n  File \"/home/vagrant/.pyenv/versions/2.7.10/lib/python2.7/site-packages/werkzeug/serving.py\", line 193, in run_wsgi\r\n    execute(self.server.app)\r\n  File \"/home/vagrant/.pyenv/versions/2.7.10/lib/python2.7/site-packages/werkzeug/serving.py\", line 181, in execute\r\n    application_iter = app(environ, start_response)\r\n  File \"/home/vagrant/.pyenv/versions/2.7.10/lib/python2.7/site-packages/flask/app.py\", line 2000, in __call__\r\n    return self.wsgi_app(environ, start_response)\r\n  File \"/home/vagrant/.pyenv/versions/2.7.10/lib/python2.7/site-packages/beaker/middleware.py\", line 155, in __call__\r\n    return self.wrap_app(environ, session_start_response)\r\n  File \"/home/vagrant/src/radiasoft/sirepo/sirepo/server.py\", line 590, in __call__\r\n    return self.wsgi_app(environ, start_response)\r\n  File \"/home/vagrant/.pyenv/versions/2.7.10/lib/python2.7/site-packages/flask/app.py\", line 1991, in wsgi_app\r\n    response = self.make_response(self.handle_exception(e))\r\n  File \"/home/vagrant/.pyenv/versions/2.7.10/lib/python2.7/site-packages/flask/app.py\", line 1567, in handle_exception\r\n    reraise(exc_type, exc_value, tb)\r\n  File \"/home/vagrant/.pyenv/versions/2.7.10/lib/python2.7/site-packages/flask/app.py\", line 1988, in wsgi_app\r\n    response = self.full_dispatch_request()\r\n  File \"/home/vagrant/.pyenv/versions/2.7.10/lib/python2.7/site-packages/flask/app.py\", line 1641, in full_dispatch_request\r\n    rv = self.handle_user_exception(e)\r\n  File \"/home/vagrant/.pyenv/versions/2.7.10/lib/python2.7/site-packages/flask/app.py\", line 1544, in handle_user_exception\r\n    reraise(exc_type, exc_value, tb)\r\n  File \"/home/vagrant/.pyenv/versions/2.7.10/lib/python2.7/site-packages/flask/app.py\", line 1639, in full_dispatch_request\r\n    rv = self.dispatch_request()\r\n  File \"/home/vagrant/.pyenv/versions/2.7.10/lib/python2.7/site-packages/flask/app.py\", line 1625, in dispatch_request\r\n    return self.view_functions[rule.endpoint](**req.view_args)\r\n    return self.view_functions[rule.endpoint](**req.view_args)\r\n  File \"/home/vagrant/src/radiasoft/sirepo/sirepo/server.py\", line 332, in app_run_simulation\r\n    _start_simulation(data)\r\n  File \"/home/vagrant/src/radiasoft/sirepo/sirepo/server.py\", line 820, in _start_simulation\r\n    cfg.job_queue(data)\r\n  File \"/home/vagrant/src/radiasoft/sirepo/sirepo/runner.py\", line 195, in __init__\r\n    jid,\r\nNameError: global name 'jid' is not defined\r\n\r\n10.0.2.2 - - [02/Dec/2016 22:04:51] \"POST /save-simulation HTTP/1.1\" 200 -\r\n```\r\nIt's not reported in the UI, so a user may think the simulation is running, but actually the server does nothing after that exception, which may cause negative impression. Need to fix this issue asap."},"comment":{"url":"https://api.github.com/repos/radiasoft/sirepo/issues/comments/264586233","html_url":"https://github.com/radiasoft/sirepo/issues/563#issuecomment-264586233","issue_url":"https://api.github.com/repos/radiasoft/sirepo/issues/563","id":264586233,"user":{"login":"mrakitin","id":13209176,"avatar_url":"https://avatars.githubusercontent.com/u/13209176?v=3","gravatar_id":"","url":"https://api.github.com/users/mrakitin","html_url":"https://github.com/mrakitin","followers_url":"https://api.github.com/users/mrakitin/followers","following_url":"https://api.github.com/users/mrakitin/following{/other_user}","gists_url":"https://api.github.com/users/mrakitin/gists{/gist_id}","starred_url":"https://api.github.com/users/mrakitin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrakitin/subscriptions","organizations_url":"https://api.github.com/users/mrakitin/orgs","repos_url":"https://api.github.com/users/mrakitin/repos","events_url":"https://api.github.com/users/mrakitin/events{/privacy}","received_events_url":"https://api.github.com/users/mrakitin/received_events","type":"User","site_admin":false},"created_at":"2016-12-02T23:03:37Z","updated_at":"2016-12-02T23:03:37Z","body":"@robnagler, do you mind to look at the issue please?"}}
{"actor":{"display_login":"mrakitin"}}