{"action":"created","issue":{"url":"https://api.github.com/repos/appium/appium-desktop/issues/411","repository_url":"https://api.github.com/repos/appium/appium-desktop","labels_url":"https://api.github.com/repos/appium/appium-desktop/issues/411/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium-desktop/issues/411/comments","events_url":"https://api.github.com/repos/appium/appium-desktop/issues/411/events","html_url":"https://github.com/appium/appium-desktop/issues/411","id":295683778,"number":411,"title":"Not able to upgrade - \"JavaScript error occurred in the main process\"","user":{"login":"Stylar66","id":36281106,"avatar_url":"https://avatars0.githubusercontent.com/u/36281106?v=4","gravatar_id":"","url":"https://api.github.com/users/Stylar66","html_url":"https://github.com/Stylar66","followers_url":"https://api.github.com/users/Stylar66/followers","following_url":"https://api.github.com/users/Stylar66/following{/other_user}","gists_url":"https://api.github.com/users/Stylar66/gists{/gist_id}","starred_url":"https://api.github.com/users/Stylar66/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stylar66/subscriptions","organizations_url":"https://api.github.com/users/Stylar66/orgs","repos_url":"https://api.github.com/users/Stylar66/repos","events_url":"https://api.github.com/users/Stylar66/events{/privacy}","received_events_url":"https://api.github.com/users/Stylar66/received_events","type":"User","site_admin":false},"labels":[{"id":651463449,"url":"https://api.github.com/repos/appium/appium-desktop/labels/P1","name":"P1","color":"e99695","default":false},{"id":409725355,"url":"https://api.github.com/repos/appium/appium-desktop/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-08T22:10:55Z","updated_at":"2018-02-27T10:51:25Z","closed_at":null,"author_association":"NONE","body":"Appium Desktop\r\n\r\nUpgrading from 1.3.1 to 1.3.2 released 2018-01-30T20:07:56.431Z after downloading closing appium to install a JavaScript error is shown. See attached. \r\n![screen shot 2018-02-08 at 1 20 45 pm](https://user-images.githubusercontent.com/36281106/36001044-de162444-0cd9-11e8-828f-214f26045da5.png)\r\n\r\n\r\n- I am running Appium Desktop version _<1.3.1>_.\r\n- I am on (pick one):\r\n    - [x ] Mac\r\n    - [ ] Windows\r\n    - [ ] Linux\r\n"},"comment":{"url":"https://api.github.com/repos/appium/appium-desktop/issues/comments/368829737","html_url":"https://github.com/appium/appium-desktop/issues/411#issuecomment-368829737","issue_url":"https://api.github.com/repos/appium/appium-desktop/issues/411","id":368829737,"user":{"login":"LasseHall","id":9463062,"avatar_url":"https://avatars0.githubusercontent.com/u/9463062?v=4","gravatar_id":"","url":"https://api.github.com/users/LasseHall","html_url":"https://github.com/LasseHall","followers_url":"https://api.github.com/users/LasseHall/followers","following_url":"https://api.github.com/users/LasseHall/following{/other_user}","gists_url":"https://api.github.com/users/LasseHall/gists{/gist_id}","starred_url":"https://api.github.com/users/LasseHall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LasseHall/subscriptions","organizations_url":"https://api.github.com/users/LasseHall/orgs","repos_url":"https://api.github.com/users/LasseHall/repos","events_url":"https://api.github.com/users/LasseHall/events{/privacy}","received_events_url":"https://api.github.com/users/LasseHall/received_events","type":"User","site_admin":false},"created_at":"2018-02-27T10:51:25Z","updated_at":"2018-02-27T10:51:25Z","author_association":"NONE","body":"I got the same and decided to look at the Appium.app related logs via Console app and searching \"appium\". Apparently ShipIt process does begin the upgrade process despite the Exception displayed. One has to fully close the Appium.app and patiently wait that ShipIt finishes its work silently. This results in a successful upgrade.\r\n> default\t11:42:25.191564 +0100\tAppium\tDownload completed to: file:///Users/lassehall/Library/Caches/io.appium.desktop.ShipIt/update.VJI2dRi/app.zip\r\ndefault\t11:42:29.991237 +0100\tAppium\tTIC TCP Conn Event [1:0x60000036a8c0]: 2\r\ndefault\t11:42:29.991282 +0100\tAppium\tTIC TCP Conn Cancel [1:0x60000036a8c0]\r\ndefault\t11:43:00.233369 +0100\tAppium\tUNIX error exception: 17\r\ndefault\t11:44:06.284538 +0100\tpowerd\tProcess Appium.36833 Created PreventSystemSleep \"Preparing update\" age:00:00:00  id:30064808828 [System: PrevIdle PrevSleep DeclUser kCPU kDisp]\r\ndefault\t11:44:06.288824 +0100\tAppium\tWrite options: 0 -- URL: <private> -- purposeID: 15835B25-AADD-4D2A-86C7-8327FFC9B001 -- claimID: D2BACDA2-94EF-4A19-99CF-DFCBD4FAE669\r\ndefault\t11:44:06.294961 +0100\tAppium\tClaim D2BACDA2-94EF-4A19-99CF-DFCBD4FAE669 granted in client\r\ndefault\t11:44:06.295010 +0100\tAppium\tClaim D2BACDA2-94EF-4A19-99CF-DFCBD4FAE669 invoked in client\r\ndefault\t11:44:06.310279 +0100\tpowerd\tProcess Appium.36833 Released PreventSystemSleep \"Preparing update\" age:00:00:00  id:30064808828 [System: PrevIdle DeclUser kDisp]\r\ndefault\t11:44:06.815867 +0100\tShipIt\tRead options: ffffffff80000001 -- URL: <private> -- purposeID: 3F41D566-152E-426D-B2AA-9B7659DD3D36 -- claimID: 2E1FF68B-B5B9-430B-A0FE-B0088DCCE6B9\r\ndefault\t11:44:06.829507 +0100\tShipIt\tClaim 2E1FF68B-B5B9-430B-A0FE-B0088DCCE6B9 granted in client\r\ndefault\t11:44:06.829588 +0100\tShipIt\tClaim 2E1FF68B-B5B9-430B-A0FE-B0088DCCE6B9 invoked in client\r\ndefault\t11:44:32.261213 +0100\tShipIt\tRead options: 1 -- URL: <private> -- purposeID: 3B13ABF5-7540-4C6C-BF69-D0B51581ADBC -- claimID: F7950197-1C47-4AB7-9821-6FC49AC47F44\r\ndefault\t11:44:32.262561 +0100\tShipIt\tClaim F7950197-1C47-4AB7-9821-6FC49AC47F44 granted in client\r\ndefault\t11:44:32.262612 +0100\tShipIt\tClaim F7950197-1C47-4AB7-9821-6FC49AC47F44 invoked in client\r\ndefault\t11:44:32.278009 +0100\tShipIt\tBeginning installation\r\ndefault\t11:44:58.666015 +0100\tShipIt\tUNIX error exception: 17\r\ndefault\t11:44:58.677976 +0100\tShipIt\tUNIX error exception: 17\r\ndefault\t11:44:58.683523 +0100\tShipIt\tUNIX error exception: 17\r\ndefault\t11:46:04.908446 +0100\tShipIt\tMoved bundle from file:///Applications/Appium.app/ to file:///var/folders/dq/dd_9q3_538qdjvqv444_lr3h0000gn/T/io.appium.desktop.ShipIt.sMqlWi5c/Appium.app\r\ndefault\t11:46:04.909241 +0100\tShipIt\tMoved bundle from file:///var/folders/dq/dd_9q3_538qdjvqv444_lr3h0000gn/T/io.appium.desktop.ShipIt.aesW9qDJ/Appium.app to file:///Applications/Appium.app/\r\ndefault\t11:46:11.455719 +0100\tShipIt\tCouldn't remove owned bundle at location file:///var/folders/dq/dd_9q3_538qdjvqv444_lr3h0000gn/T/io.appium.desktop.ShipIt.aesW9qDJ/Appium.app, error NSError { domain: NSCocoaErrorDomain, code: 4, description: \"“Appium.app” couldn’t be removed.\", failureReason: \"The file doesn’t exist.\", underlying error: NSError { domain: NSPOSIXErrorDomain, code: 2, description: \"The operation couldn’t be completed. No such file or directory\" }, userInfo: {\r\n    NSFilePath = \"/var/folders/dq/dd_9q3_538qdjvqv444_lr3h0000gn/T/io.appium.desktop.ShipIt.aesW9qDJ/Appium.app\";\r\n    NSUserStringVariant =     (\r\n        Remove\r\n    );\r\n} }\r\ndefault\t11:46:20.313742 +0100\tShipIt\tInstallation completed successfully\r\ndefault\t11:46:20.314756 +0100\tShipIt\tShipIt quitting\r\n"}}
{"actor":{"display_login":"LasseHall"}}