{"action":"reopened","issue":{"url":"https://api.github.com/repos/labrad/scalabrad-web/issues/58","repository_url":"https://api.github.com/repos/labrad/scalabrad-web","labels_url":"https://api.github.com/repos/labrad/scalabrad-web/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/labrad/scalabrad-web/issues/58/comments","events_url":"https://api.github.com/repos/labrad/scalabrad-web/issues/58/events","html_url":"https://github.com/labrad/scalabrad-web/issues/58","id":108229971,"number":58,"title":"PID file problem","user":{"login":"ejeffrey","id":1690140,"avatar_url":"https://avatars.githubusercontent.com/u/1690140?v=3","gravatar_id":"","url":"https://api.github.com/users/ejeffrey","html_url":"https://github.com/ejeffrey","followers_url":"https://api.github.com/users/ejeffrey/followers","following_url":"https://api.github.com/users/ejeffrey/following{/other_user}","gists_url":"https://api.github.com/users/ejeffrey/gists{/gist_id}","starred_url":"https://api.github.com/users/ejeffrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ejeffrey/subscriptions","organizations_url":"https://api.github.com/users/ejeffrey/orgs","repos_url":"https://api.github.com/users/ejeffrey/repos","events_url":"https://api.github.com/users/ejeffrey/events{/privacy}","received_events_url":"https://api.github.com/users/ejeffrey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2015-09-24T23:00:18Z","updated_at":"2016-07-25T22:51:15Z","closed_at":null,"body":"The web server tries to save its PID in scalabrad-web-server/RUNNING_PID.  If it can't write to that file, it fails:\r\n\r\n    Oops, cannot start the server.\r\n    java.io.FileNotFoundException: /usr/local/scalabrad-web-server-1.0-SNAPSHOT/RUNNING_PID (Permission denied)\r\n    \tat java.io.FileOutputStream.open0(Native Method)\r\n    \tat java.io.FileOutputStream.open(FileOutputStream.java:270)\r\n    \tat java.io.FileOutputStream.<init>(FileOutputStream.java:213)\r\n    \tat java.io.FileOutputStream.<init>(FileOutputStream.java:162)\r\n    \tat play.core.server.ProdServerStart$.createPidFile(ProdServerStart.scala:131)\r\n    \tat play.core.server.ProdServerStart$.start(ProdServerStart.scala:45)\r\n    \tat play.core.server.ProdServerStart$.main(ProdServerStart.scala:27)\r\n    \tat play.core.server.ProdServerStart.main(ProdServerStart.scala)\r\n\r\n1) Does it really need a PID file?  That is not standard procedure on windows, and on linux it is often handled by the 'start-stop-daemon' program\r\n2) If this is being used as a lock file, that doesn't seem necessary.  Starting a second server on the same port will fail\r\n3) If it is needed, the location should be configurable so that it can go in /var/run"}}
{"actor":{"display_login":"adamcw"}}