appium: Appium 1.7.0beta throws No space left on device on iOS Simulator

The problem

We have a large suite of end to end tests (approx. 647) that run sequentially on an iOS simulator - they take around 12 hrs to run. Recently, after updating to Appium 1.7.0beta and Xcode 9, the tests have been running fine for two nights, but last night after 7 hrs of running we started receiving this error: No space left on device

We have 40gb free on our server, so I don’t think we have an issue related to that.

Environment

  • Appium version (or git revision) that exhibits the issue: 1.7.0beta
  • Last Appium version that did not exhibit the issue (if applicable): 1.6.4 (maybe even 1.6.5)
  • Desktop OS/version used to run Appium: macOS 10.12.6
  • Node.js version (unless using Appium.app|exe): 7.0.0
  • Mobile platform/version under test: iOS 11.0
  • Real device or emulator/simulator: iPhone 5s
  • Appium CLI or Appium.app|exe: Appium CLI

Link to Appium logs

org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: simctl error running 'install': An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=28):
      copyfile of file:///Users/jenkins/.jenkins/jobs/MyApp/jobs/AQA/jobs/iOS/workspace/iOS/build-simulator/MyApp.app/ to file:///Users/jenkins/Library/Developer/CoreSimulator/Devices/936C7D51-F6C3-41D3-B80B-5411C92491DE/data/Containers/Shared/SystemGroup/systemgroup.com.apple.installcoordinationd/Library/InstallCoordination/PromiseStaging/1912C4C2-45E4-4120-8F38-303CC59D66C8/MyApp.app failed: No space left on device

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 17

Most upvoted comments

I’ve ran find /private/var -type f -size +10000k -exec ls -lh {} \;

and it looks that there are some large WebDriver related temp folders folders:

-rw-------  1 jenkins  staff   2.4G Oct  9 00:25 /private/var/folders/6v/xlw3p2pn47d2jl_jghf25dn00000gr/T/com.apple.dt.XCTest/IDETestRunSession-09A74A61-57A5-451C-B53F-7D2AF0433F5D/WebDriverAgentRunner-B85A5DD9-016F-4B3C-ABBD-6E8E7FF919E4/Session-WebDriverAgentRunner-2017-10-08_144754-OaDrjW.log
-rw-r--r--  1 jenkins  staff    94M Oct  9 00:26 /private/var/folders/6v/xlw3p2pn47d2jl_jghf25dn00000gr/T/com.apple.dt.XCTest/IDETestRunSession-09A74A61-57A5-451C-B53F-7D2AF0433F5D/WebDriverAgentRunner-B85A5DD9-016F-4B3C-ABBD-6E8E7FF919E4/StandardOutputAndStandardError.txt
-rw-------  1 jenkins  staff   2.7G Oct  9 00:25 /private/var/folders/6v/xlw3p2pn47d2jl_jghf25dn00000gr/T/com.apple.dt.XCTest/IDETestRunSession-79745577-69B0-4182-84FA-72271EACFD4E/WebDriverAgentRunner-0F11439B-00BC-4222-927A-C78CBC7A7CB1/Session-WebDriverAgentRunner-2017-10-08_144808-Vd0QQ8.log
-rw-r--r--  1 jenkins  staff   102M Oct  9 00:26 /private/var/folders/6v/xlw3p2pn47d2jl_jghf25dn00000gr/T/com.apple.dt.XCTest/IDETestRunSession-79745577-69B0-4182-84FA-72271EACFD4E/WebDriverAgentRunner-0F11439B-00BC-4222-927A-C78CBC7A7CB1/StandardOutputAndStandardError.txt
-rw-------  1 jenkins  staff   559M Oct  8 14:37 /private/var/folders/6v/xlw3p2pn47d2jl_jghf25dn00000gr/T/com.apple.dt.XCTest/IDETestRunSession-C7DCA4FB-1E24-435D-BCCC-6C2F767CC7C2/WebDriverAgentRunner-EB98A420-E023-4D96-BCBC-0D51E64D6235/Session-WebDriverAgentRunner-2017-10-08_125539-dpcDbk.log
-rw-r--r--  1 jenkins  staff    21M Oct  8 14:37 /private/var/folders/6v/xlw3p2pn47d2jl_jghf25dn00000gr/T/com.apple.dt.XCTest/IDETestRunSession-C7DCA4FB-1E24-435D-BCCC-6C2F767CC7C2/WebDriverAgentRunner-EB98A420-E023-4D96-BCBC-0D51E64D6235/StandardOutputAndStandardError.txt
-rw-------  1 jenkins  staff   2.3G Oct  8 12:49 /private/var/folders/6v/xlw3p2pn47d2jl_jghf25dn00000gr/T/com.apple.dt.XCTest/IDETestRunSession-DC792018-77D9-4424-A5E2-1977610BC602/WebDriverAgentRunner-7873C835-3B01-4B2B-AA9F-1F14B0B3C270/Session-WebDriverAgentRunner-2017-10-08_051043-xgSYKX.log
-rw-r--r--  1 jenkins  staff    93M Oct  8 12:49 /private/var/folders/6v/xlw3p2pn47d2jl_jghf25dn00000gr/T/com.apple.dt.XCTest/IDETestRunSession-DC792018-77D9-4424-A5E2-1977610BC602/WebDriverAgentRunner-7873C835-3B01-4B2B-AA9F-1F14B0B3C270/StandardOutputAndStandardError.txt
-rw-------  1 jenkins  staff   532M Oct  8 14:37 /private/var/folders/6v/xlw3p2pn47d2jl_jghf25dn00000gr/T/com.apple.dt.XCTest/IDETestRunSession-E6C2833E-FD81-47AD-BBF1-09402AA34E67/WebDriverAgentRunner-0BED6A41-9D85-4808-A30E-CCC38F37FC4B/Session-WebDriverAgentRunner-2017-10-08_125538-xYdeJZ.log
-rw-r--r--  1 jenkins  staff    20M Oct  8 14:35 /private/var/folders/6v/xlw3p2pn47d2jl_jghf25dn00000gr/T/com.apple.dt.XCTest/IDETestRunSession-E6C2833E-FD81-47AD-BBF1-09402AA34E67/WebDriverAgentRunner-0BED6A41-9D85-4808-A30E-CCC38F37FC4B/StandardOutputAndStandardError.txt
-rw-------  1 jenkins  staff   2.6G Oct  8 12:49 /private/var/folders/6v/xlw3p2pn47d2jl_jghf25dn00000gr/T/com.apple.dt.XCTest/IDETestRunSession-F9070B58-CA21-483A-AD13-744C056F7233/WebDriverAgentRunner-E839FD71-4DCB-4BD5-BF9C-837D4E529B49/Session-WebDriverAgentRunner-2017-10-08_051030-2QLB63.log
-rw-r--r--  1 jenkins  staff   100M Oct  8 12:49 /private/var/folders/6v/xlw3p2pn47d2jl_jghf25dn00000gr/T/com.apple.dt.XCTest/IDETestRunSession-F9070B58-CA21-483A-AD13-744C056F7233/WebDriverAgentRunner-E839FD71-4DCB-4BD5-BF9C-837D4E529B49/StandardOutputAndStandardError.txt