mikrasilnikov / vine

MIT License
0 stars 0 forks source link

java.nio.file.FileAlreadyExistsException: G:\vine\previews\2021-08-01_2021-08-07 #9

Open mikrasilnikov opened 3 years ago

mikrasilnikov commented 3 years ago
15:01:50.052 ERROR - Download failed
Url: https://geo-samples.beatport.com/track/cb96db42-2ce9-4852-aaf2-7ec9e9191993.LOFI.mp3
Fiber failed.
A checked error was not handled.
java.nio.file.FileAlreadyExistsException: G:\vine\previews\2021-08-01_2021-08-07
    at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:87)
    at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
    at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
    at java.base/sun.nio.fs.WindowsFileSystemProvider.createDirectory(WindowsFileSystemProvider.java:509)
    at java.base/java.nio.file.Files.createDirectory(Files.java:690)
    at zio.nio.file.Files$.$anonfun$createDirectory$1(Files.scala:55)
    at zio.internal.FiberContext.evaluateNow(FiberContext.scala:490)
    at zio.internal.FiberContext.$anonfun$evaluateLater$1(FiberContext.scala:776)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:829)

Fiber:Id(1629460900813,66) was supposed to continue to:
  a future continuation at vine.processing.Saving$.createDirectory(Saving.scala:42)
  a future continuation at zio.ZIO.run(ZIO.scala:1697)
  a future continuation at zio.Semaphore.withPermits(Semaphore.scala:61)
  a future continuation at vine.processing.Saving$.downloadWithRetry(Saving.scala:32)
  a future continuation at zio.ZIO.unit(ZIO.scala:2075)
  a future continuation at vine.processing.package$.processTrack(package.scala:72)
  a future continuation at zio.ZIO.unit(ZIO.scala:2075)
  a future continuation at vine.processing.package$.processTrack(package.scala:88)
  a future continuation at vine.processing.package$.processTrack(package.scala:84)
  a future continuation at vine.processing.package$.runWorker(package.scala:107)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)
  a future continuation at vine.processing.package$.runWorker(package.scala:106)

Fiber:Id(1629460900813,66) execution trace:
  at zio.ZIO.refineOrDieWith(ZIO.scala:1464)
  at zio.ZIO$.effectSuspendTotal(ZIO.scala:2752)
  at zio.ZIO$.bracketExit(ZIO.scala:2359)
  at zio.internal.FiberContext.shift(FiberContext.scala:666)
  at zio.internal.FiberContext.shift(FiberContext.scala:666)
  at zio.ZIO$.effectSuspendTotal(ZIO.scala:2752)
  at zio.ZIO.bracket_(ZIO.scala:262)
  at zio.ZIO.run(ZIO.scala:1696)
  at zio.nio.file.Files$.createDirectory(Files.scala:55)
  at zio.ZIO$.effectSuspendTotal(ZIO.scala:2752)
  at zio.ZIO.bracket_(ZIO.scala:262)
  at zio.internal.FiberContext.shift(FiberContext.scala:666)
  at zio.internal.FiberContext.shift(FiberContext.scala:666)
  at zio.ZIO$.lock(ZIO.scala:3493)
  at zio.blocking.package$.effectBlocking(package.scala:183)
  at vine.processing.Saving$.createDirectory(Saving.scala:42)
  at zio.ZIO$IfM$.apply(ZIO.scala:4300)
  at zio.ZIO.orDieWith(ZIO.scala:1085)
  at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:160)
  at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:153)
  at zio.ZIO$.effectSuspendTotal(ZIO.scala:2752)
  at zio.ZIO$.bracketExit(ZIO.scala:2359)
  at zio.internal.FiberContext.shift(FiberContext.scala:666)
  at zio.internal.FiberContext.shift(FiberContext.scala:666)
  at zio.ZIO$.effectSuspendTotal(ZIO.scala:2752)
  at zio.ZIO.bracket_(ZIO.scala:262)
  at zio.ZIO.run(ZIO.scala:1697)
  at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:153)
  at zio.nio.file.Files$.exists(Files.scala:257)
  at zio.ZIO$.effectSuspendTotal(ZIO.scala:2752)
  at zio.ZIO.bracket_(ZIO.scala:262)
  at zio.internal.FiberContext.shift(FiberContext.scala:666)
  at zio.internal.FiberContext.shift(FiberContext.scala:666)
  at zio.ZIO$.lock(ZIO.scala:3493)
  at zio.blocking.package$.effectBlocking(package.scala:183)
  at zio.ZIO$IfM$.apply(ZIO.scala:4300)
  at zio.ZIO.orDieWith(ZIO.scala:1085)
  at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:160)
  at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:153)
  at zio.ZIO$.effectSuspendTotal(ZIO.scala:2752)
  at zio.ZIO$.bracketExit(ZIO.scala:2359)
  at zio.internal.FiberContext.shift(FiberContext.scala:666)
  at zio.internal.FiberContext.shift(FiberContext.scala:666)
  at zio.ZIO$.effectSuspendTotal(ZIO.scala:2752)
  at zio.ZIO.bracket_(ZIO.scala:262)
  at zio.ZIO.run(ZIO.scala:1697)
  at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:153)
  at zio.nio.file.Files$.exists(Files.scala:257)
  at zio.ZIO$.effectSuspendTotal(ZIO.scala:2752)
  at zio.ZIO.bracket_(ZIO.scala:262)
  at zio.internal.FiberContext.shift(FiberContext.scala:666)
  at zio.internal.FiberContext.shift(FiberContext.scala:666)
  at zio.ZIO$.lock(ZIO.scala:3493)
  at zio.blocking.package$.effectBlocking(package.scala:183)
  at zio.ZIO$IfM$.apply(ZIO.scala:4300)
  at zio.ZIO.orDieWith(ZIO.scala:1085)
  at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:160)
  at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:153)
  at zio.ZIO$.effectSuspendTotal(ZIO.scala:2752)
  at zio.ZIO$.bracketExit(ZIO.scala:2359)
  at zio.internal.FiberContext.shift(FiberContext.scala:666)
  at zio.internal.FiberContext.shift(FiberContext.scala:666)
  at zio.ZIO$.effectSuspendTotal(ZIO.scala:2752)
  at zio.ZIO.bracket_(ZIO.scala:262)
  at zio.ZIO.run(ZIO.scala:1697)
  at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:153)
  at zio.nio.file.Files$.exists(Files.scala:257)
  at zio.ZIO$.effectSuspendTotal(ZIO.scala:2752)
  at zio.ZIO.bracket_(ZIO.scala:262)
  at zio.internal.FiberContext.shift(FiberContext.scala:666)
  at zio.internal.FiberContext.shift(FiberContext.scala:666)
  at zio.ZIO$.lock(ZIO.scala:3493)
  at zio.blocking.package$.effectBlocking(package.scala:183)
  at zio.Semaphore.withPermits(Semaphore.scala:61)
  at zio.ZIO$.effectSuspendTotal(ZIO.scala:2752)
  at zio.Semaphore.withPermits(Semaphore.scala:61)
  at zio.ZRef$Atomic.modify(ZRef.scala:215)
  at zio.Semaphore.prepare(Semaphore.scala:84)
  at zio.Promise$.makeAs(Promise.scala:244)
  at zio.Promise$.make(Promise.scala:238)
  at zio.ZIO$.fiberId(ZIO.scala:2815)
  at zio.ZIO$.descriptor(ZIO.scala:2593)
  at vine.processing.Saving$.downloadWithRetry(Saving.scala:32)
  at vine.providers.MusicStoreDataProvider$.fetchWithTimeoutAndRetry(MusicStoreDataProvider.scala:211)
  at zio.ZIO.retryOrElse(ZIO.scala:1627)
  at zio.ZIO.retryOrElseEither(ZIO.scala:1642)
  at zio.ZIO.retryOrElseEither(ZIO.scala:1640)
  at vine.conlimiter.ConnectionsLimiterLive.withPermit(ConnectionsLimiterLive.scala:16)
  at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:160)
  at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:153)
  at zio.ZIO$.effectSuspendTotal(ZIO.scala:2752)
  at zio.ZIO$.bracketExit(ZIO.scala:2359)
  at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:160)
  at zio.internal.FiberContext$InterruptExit$.apply(FiberContext.scala:153)
  at zio.ZIO$ZipLeftFn.apply(ZIO.scala:4381)
  at zio.Promise.completeWith(Promise.scala:114)
  at zio.Semaphore.releaseN0(Semaphore.scala:110)
  at zio.ZIO$._IdentityFn(ZIO.scala:4193)
  at zio.ZRef$Atomic.modify(ZRef.scala:215)
  at zio.Semaphore.releaseN0(Semaphore.scala:116)

Fiber:Id(1629460900813,66) was spawned by:

Fiber:Id(1629460900608,36) was supposed to continue to:
  a future continuation at zio.ZIO$.foreach(ZIO.scala:2938)
  a future continuation at zio.ZIO.zipWith(ZIO.scala:2218)
  a future continuation at zio.ZIO.zipWith(ZIO.scala:2218)
  a future continuation at zio.ZIO.zipWith(ZIO.scala:2218)
  a future continuation at zio.ZIO$.foreach(ZIO.scala:2939)
  a future continuation at zio.ZIO$.forkAll(ZIO.scala:3226)
  a future continuation at vine.processing.package$.processFeed(package.scala:47)
  a future continuation at zio.ZIO.tapCause(ZIO.scala:1898)
  a future continuation at zio.ZIO.ensuring(ZIO.scala:546)
  a future continuation at zio.ZIO.run(ZIO.scala:1697)

Fiber:Id(1629460900608,36) execution trace:
  at zio.ZIO.zipWith(ZIO.scala:2218)
  at zio.ZIO$.foreach(ZIO.scala:2938)
  at zio.ZIO.zipWith(ZIO.scala:2218)
  at zio.ZIO$.foreach(ZIO.scala:2938)
  at zio.ZIO.zipWith(ZIO.scala:2218)
  at zio.ZIO$.foreach(ZIO.scala:2938)
  at zio.ZIO.zipWith(ZIO.scala:2218)
  at zio.ZIO$.foreach(ZIO.scala:2938)
  at zio.ZIO.zipWith(ZIO.scala:2218)
  at zio.ZIO$.foreach(ZIO.scala:2937)

Fiber:Id(1629460900608,36) was spawned by:

Fiber:Id(1629460898023,1) was supposed to continue to:
  a future continuation at zio.ZIO$.foreach(ZIO.scala:2938)
  a future continuation at zio.ZIO.zipWith(ZIO.scala:2218)
  a future continuation at zio.ZIO.zipWith(ZIO.scala:2218)
  a future continuation at zio.ZIO.zipWith(ZIO.scala:2218)
  a future continuation at zio.ZIO.zipWith(ZIO.scala:2218)
  a future continuation at zio.ZIO.zipWith(ZIO.scala:2218)
  a future continuation at zio.ZIO.zipWith(ZIO.scala:2218)
  a future continuation at zio.ZIO.zipWith(ZIO.scala:2218)
  a future continuation at zio.ZIO.zipWith(ZIO.scala:2218)
  a future continuation at zio.ZIO.zipWith(ZIO.scala:2218)

Fiber:Id(1629460898023,1) execution trace:
  at zio.ZIO.zipWith(ZIO.scala:2218)
  at zio.ZIO$.foreach(ZIO.scala:2938)
  at zio.ZIO.zipWith(ZIO.scala:2218)
  at zio.ZIO$.foreach(ZIO.scala:2938)
  at zio.ZIO.zipWith(ZIO.scala:2218)
  at zio.ZIO$.foreach(ZIO.scala:2938)
  at zio.ZIO.zipWith(ZIO.scala:2218)
  at zio.ZIO$.foreach(ZIO.scala:2938)
  at zio.ZIO.zipWith(ZIO.scala:2218)
  at zio.ZIO$.foreach(ZIO.scala:2938)

Fiber:Id(1629460898023,1) was spawned by:

Fiber:Id(1629460896510,0) was supposed to continue to:
  a future continuation at zio.App.main(App.scala:59)
  a future continuation at zio.App.main(App.scala:58)

Fiber:Id(1629460896510,0) ZIO Execution trace: <empty trace>

Fiber:Id(1629460896510,0) was spawned by: <empty trace>