andres-montanez/Magallanes

Preparing Tar file - FAIL on Windows

vdonchev opened this issue · 4 comments

I am trying to deploy from my home PC (win 10 64) to my development server, but as soon as I execute mage deploy test (where "test" is the key for dev server settings) i get

Starting Pre Deploy tasks:
Running [Git] Change Branch (development) ... SKIPPED
Running [Deploy] Preparing Tar file ... FAIL

mage.yaml file:
https://gist.github.com/vdonchev/9ecc442c0be89aacf59b5171a190d9f4

Enviroment:
Win 10 64
PHP 7.3.9
Composer version 1.9.0
Magallanes 4.0.0
bsdtar 3.3.2
git version 2.23.0.windows.1

command mage deploy executet using cmder - latest version

Exact same mage.yaml file executet in HOmestead (virtualmachine) is working OK

Hello, do you have a log file ? Logging is optionnal with mage php but you can enable them :

magephp:
    log_dir: /path/to/my/logs

Maybe it's a problem with the command "tar" on windows ! We may have more clues with logs file.

Hello,
sorry for the really late reply.
Bellow is the log:

[2019-11-17 09:32:20] magephp.DEBUG: Environment: dev [] []
[2019-11-17 09:32:20] magephp.DEBUG: Release ID: 20191117093220 [] []
[2019-11-17 09:32:20] magephp.DEBUG: Running task [Git] Change Branch (development) (git/change-branch) [] []
[2019-11-17 09:32:20] magephp.INFO: git branch | grep "*" [] []
[2019-11-17 09:32:21] magephp.DEBUG: * master  [] []
[2019-11-17 09:32:21] magephp.INFO: git checkout development [] []
[2019-11-17 09:32:21] magephp.DEBUG: Your branch is up to date with 'origin/development'.  [] []
[2019-11-17 09:32:21] magephp.DEBUG: Task [Git] Change Branch (master) (git/change-branch) finished with OK [] []
[2019-11-17 09:32:21] magephp.DEBUG: Running task [Deploy] Preparing Tar file (deploy/tar/prepare) [] []
[2019-11-17 09:32:21] magephp.INFO: tar cfzp C:\Users\USER\AppData\Local\Temp\magD4B3.tmp --exclude=".git" --exclude="./assets/*" --exclude="./tests/*" --exclude="./.gitignorе" --exclude="./.idea" --exclude="./._*" --exclude="./.mage*" --exclude="./.env.*" --exclude="./.D*" --exclude="./vendor" --exclude="./.mage*" --exclude="./var/*" --exclude="./node_modules" --exclude="./yarn.lock" --exclude="./package.*" --exclude="./phpunit*" --exclude="./webpack*" ./ [] []
[2019-11-17 09:32:21] magephp.DEBUG:  [] []
[2019-11-17 09:32:21] magephp.ERROR: tar: .: Couldn't find file: No such file or directory tar: Error exit delayed from previous errors.  [] []
[2019-11-17 09:32:21] magephp.DEBUG: Task [Deploy] Preparing Tar file (deploy/tar/prepare) finished with FAIL [] []

Hello,
It's appearing that the tar command failed.
The error is just that a file has been changed/deleted in the process.
The only thing that causes an abort is a read/write failure.

Hi, there was never a good support for Windows, however v4.1 has improved some aspects.