Sindre
Sindre13mo ago

wmill cli sync error

When doing this command: $ wmill sync pull --raw --yes --token "<valid-and-verified-working-token>" I get the follow error message:
Debug logging enabled. CLI build against v1.201.0
Computing the files to update locally to match remote (taking .wmillignore into account)
Downloaded zip/tarball successfully
Computing the files to update locally to match remote (taking .wmillignore into account)
error: Uncaught (in promise) Error: Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html
Debug logging enabled. CLI build against v1.201.0
Computing the files to update locally to match remote (taking .wmillignore into account)
Downloaded zip/tarball successfully
Computing the files to update locally to match remote (taking .wmillignore into account)
error: Uncaught (in promise) Error: Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html
Has anyone else encountered this? It works on my normal machine. But when I'm doing this on a EC2 i get this error message. I have tried checking that file/folder permissions on my working directoy and that seems to work fine. and it does create a .wmill folder. meaning it is able to write as it should. at least to this dir. I do not understand why this is only happening on my ec2 and not locally...
2 Replies
rubenf
rubenf13mo ago
I'm pretty certain that your ec2 instance cannot reach your instance at the url you've set in remote you can try curling instance/api/version from that instance
Sindre
SindreOP13mo ago
ahh, will check up..thanks