Can you run: gdrive <same args> | less in a terminal? Some interactive command line tools won't run properly without a pty. If that is the case you can try unbuffer gdrive <same args> | less in a terminal. (unbuffer is part of the `expect` package)
On 30 August 2016 at 14:58, fab73 <[email protected]> wrote: > Hi, > > I need to upload my boxes to GDrive, and as first step I'm doing it with a > shell-local post-provisioner, so I've written this simple bash script [1], > that uses the gdrive [2] utility to do the real work, now it runs fine when > invoked directly form the CLI, instead when invoked by packer it starts the > upload but it is not able to complete it, I've tried many times to exclude > temporary errors, but the results are consistent. > > gdrive gave a could of return error, that seems related to a broken > connection: > - unexpected EOF > - remote error: bad record MAC > > Is there any particular difference running a shell script via shell-local, > that could affect the upload? or do you have any other hint? > > Thanks, > Fabio > > > > [1] http://pastebin.com/SiDfB4F1 > [2] https://github.com/prasmussen/gdrive > > -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html. Behavior in > violation of those guidelines may result in your removal from this mailing > list. > > GitHub Issues: https://github.com/mitchellh/packer/issues > IRC: #packer-tool on Freenode > --- > You received this message because you are subscribed to the Google Groups > "Packer" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/packer-tool/813cddc9-e4b7-42c8-93bc-7d07c72c40e1%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/813cddc9-e4b7-42c8-93bc-7d07c72c40e1%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CALz9Rt_-pm8V7mb6-LR7LR-VXVweFBrOC8R2d%3DTWTDg_o4Aw6Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
