Also with unbuffer I got the same error.
On Tuesday, August 30, 2016 at 3:35:36 PM UTC+2, fab73 wrote: > > The script is not interactive, it only produces some text output. > > Here [1] there is the packer debug log, and here [2] the same command > executed by packer directly on the shell. > > I'll try you "unbuffer" suggestion. > > thanks > > [1]http://pastebin.com/G46MDzNe > [2]http://pastebin.com/sj2gr6V4 > > > > On Tuesday, August 30, 2016 at 3:08:17 PM UTC+2, Rickard von Essen wrote: >> >> 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/5754c8c2-d846-470c-a71d-79595f44f390%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
