Errors when running rancher-compose on windows

Hey guys,

Sorry to bother you with a silly question, but I just can’t figure out how to use CLI tool.

I get these errors when I run rancher-compose -p pewebsite up

$ ./rancher-compose.exe --verbose -p pewebsite up
DEBU[0000] Environment Context from file : map[]
DEBU[0000] Opening compose file: docker-compose.yml
DEBU[0000] [0/0] [pewebsite]: Adding
DEBU[0000] Opening rancher-compose file: rancher-compose.yml
DEBU[0000] Looking for stack pewebsite
DEBU[0000] Found stack: pewebsite(1e4)
DEBU[0000] Launching action for pewebsite
DEBU[0000] Project [pewebsite]: Creating project
DEBU[0000] Finding service pewebsite
DEBU[0000] [0/1] [pewebsite]: Creating
INFO[0000] Creating service pewebsite
INFO[0000] Uploading build for pewebsite using provider S3
ERRO[0000] Failed Creating pewebsite : remove C:\Users\eugene\AppData\Local\Temp\105200467: The process cannot access the file because it is being used by another process.
DEBU[0000] Can't add file images\ground.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file images\logo.gif to tar: io: read/write on closed pipe
DEBU[0000] Can't add file images\logo.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file images\moon.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file images\pixelescape.ttf to tar: io: read/write on closed pipe
DEBU[0000] Can't add file images\slides to tar: io: read/write on closed pipe
DEBU[0000] Can't add file images\slides\slide1.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file images\slides\slide10.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file images\slides\slide2.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file images\slides\slide3.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file images\slides\slide4.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file images\slides\slide5.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file images\slides\slide6.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file images\slides\slide7.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file images\slides\slide8.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file images\slides\slide9.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file images\tiles to tar: io: read/write on closed pipe
DEBU[0000] Can't add file images\tiles\anim.gif to tar: io: read/write on closed pipe
DEBU[0000] Can't add file images\tiles\tiles-0.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file images\tiles\tiles-1.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file images\tiles\tiles-2.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file images\tiles\tiles-3.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file images\tiles\tiles-4.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file images\tiles\tiles-5.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file images\tiles\tiles-6.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file images\tiles\tiles-7.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file images\tiles\tiles-8.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file images\tiles\tiles-9.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file images\twitter.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file index.html to tar: io: read/write on closed pipe
DEBU[0000] Can't add file js to tar: io: read/write on closed pipe
DEBU[0000] Can't add file js\fader.js to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\css to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\css\bjqs.css to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\css\normalize.css to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\css\style.css to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\favicon.ico to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\images to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\images\header.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\index.html to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\js to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\js\bjqs-1.3.min.js to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\js\jquery-2.0.0.min.js to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\logos to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\logos\icon.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\logos\large_moon.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\logos\logo.gif to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\logos\logo.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\logos\pixelesc.gif to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\packs to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\packs\logos.zip to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\packs\photos.zip to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\packs\screens.zip to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\photos to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\photos\1.jpg to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\photos\3.jpg to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\photos\4.jpg to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\screens to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\screens\1.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\screens\10.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\screens\11.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\screens\12.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\screens\13.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\screens\14.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\screens\15.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\screens\16.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\screens\17.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\screens\18.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\screens\19.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\screens\2.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\screens\20.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\screens\21.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\screens\22.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\screens\23.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\screens\24.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\screens\25.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\screens\26.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\screens\3.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\screens\4.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\screens\5.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\screens\6.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\screens\7.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\screens\8.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\screens\9.png to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\video to tar: io: read/write on closed pipe
DEBU[0000] Can't add file press\video\trailer.mp4 to tar: io: read/write on closed pipe
DEBU[0000] Can't add file rancher-compose.exe to tar: io: read/write on closed pipe
DEBU[0000] Can't add file rancher-compose.yml to tar: io: read/write on closed pipe
DEBU[0000] Can't close tar writer: io: read/write on closed pipe
ERRO[0000] Failed to start: pewebsite : remove C:\Users\eugene\AppData\Local\Temp\105200467: The process cannot access the file because it is being used by another process.
FATA[0000] remove C:\Users\eugene\AppData\Local\Temp\105200467: The process cannot access the file because it is being used by another process.

docker-compose.yml :

pewebsite:
  build: .
  environment:
    VIRTUAL_HOST: "pewebsite.grisevg.com"

rancher-compose.yml:

pewebsite:
  scale: 1

Dockerfile:

FROM nginx
COPY . /usr/share/nginx/html

Everything is latest version: docker is 1.10.3 and rancher-compose is 0.7.3

Are you able to do a rancher-compose up without doing a build?

test1:
  image: ubuntu:14.04.3
  tty: true
  stdin_open: true

Also, another issue would be to remove the COPY line from the Dockerfile to see if that changes anything. It seems to indicate that it can’t access a file.

Removing COPY didn’t help, but swapping build . for image: ubuntu:14.04.3 worked.
Does it mean that it’s only possible to deploy docker hub images?

No, we support building images into S3 on rancher-compose.

http://docs.rancher.com/rancher/rancher-compose/build/

The only difference could be that I’m on a mac and you’re running on Windows. I’ve never seen this line before. I’ll try to get access to a Windows machine to reproduce.

ERRO[0000] Failed Creating pewebsite : remove C:\Users\eugene\AppData\Local\Temp\105200467: The process cannot access the file because it is being used by another process.

@denise I’ve setup S3 credentials, but get same errors:

INFO[0000] Creating service pewebsite
INFO[0000] Uploading build for pewebsite using provider S3
ERRO[0000] Failed Creating pewebsite : remove C:\Users\eugene\AppData\Local\Temp\663085971: The process cannot access the file because it is being used by another process.
ERRO[0000] Failed to start: pewebsite : remove C:\Users\eugene\AppData\Local\Temp\663085971: The process cannot access the file because it is being used by another process.
FATA[0000] remove C:\Users\eugene\AppData\Local\Temp\663085971: The process cannot access the file because it is being used by another process.

Any luck reproducing it?

I’ve also tried official example (http://docs.rancher.com/rancher/rancher-compose/build/) and it gives the same error.

I don’t have easy access to a windows machine, but I am still hoping to try and reproduce it!