Invalid file name when launching keter bundle

29 views
Skip to first unread message

Amanda Chaudhary

unread,
May 18, 2015, 7:42:02 PM5/18/15
to yeso...@googlegroups.com
Hi all-

Currently, I am trying to deploy a keter bundle to an AWS EC2 instance.  All is well copying both the 64-bit keter binary and the app bundle over to the instance, but then I get this error message from keter.

2015-05-18 23:37:16.19: Watched file modified: /opt/keter/etc/keter-config.yaml/incoming/server.keter
2015-05-18 23:37:16.19: Unpacking bundle '/opt/keter/etc/keter-config.yaml/incoming/server.keter'
2015-05-18 23:37:16.20: Error occured when launching bundle server: Invalid file name in tar archive: "config/../dist/build/server/server"

Any ideas what might be wrong?  That path "../dist/build/server/server" is from the config/keter.yml defaults.
I am also curious why keter added this whole "etc/keter-config.yaml" subfolder...

Thanks in advance!
-Amanda

Michael Snoyman

unread,
May 19, 2015, 12:10:30 AM5/19/15
to yeso...@googlegroups.com
This looks like a bug in yesod-bin, I'll look into it a bit later today. The solution is almost certainly to "normalize" paths before adding to the tarball.

Just to confirm this theory: you created your keter bundle by running `yesod keter`, and the output of `yesod version` is 1.4.9, correct?

--
You received this message because you are subscribed to the Google Groups "Yesod Web Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yesodweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Amanda Chaudhary

unread,
May 19, 2015, 12:59:27 AM5/19/15
to yeso...@googlegroups.com, mic...@snoyman.com
Yes, that is correct.  yesod version is 1.4.9.1 :)  and yes I created the bundle via "yesod keter".
I think I just fixed the weird issue of keter-config.yaml being a directory, so I'll see if a fresh bundle to the proper location works and report back soon.

Best,
-Amanda

Amanda Chaudhary

unread,
May 19, 2015, 1:05:58 AM5/19/15
to yeso...@googlegroups.com, mic...@snoyman.com
OK, all files are in their expected folders ("opt/keter/incoming", "opt/keter/log", etc.) but still the same error while unpacking the bundle.
-Amanda

Michael Snoyman

unread,
May 19, 2015, 1:18:17 AM5/19/15
to Amanda Chaudhary, yeso...@googlegroups.com
I just pushed a commit to the yesod repo which should fix this. Can you build `yesod-bin` from Git and let me know if that solves the problem for you?

Amanda Chaudhary

unread,
May 19, 2015, 1:48:45 AM5/19/15
to yeso...@googlegroups.com, mic...@snoyman.com
Yes, that appears to have resolved this issue, thanks!
Overall, there are still some additional issue getting my app to work, but for now it appears to unpack and start properly, creating an instance in opt/keter/temp/server_0, and no error messages in the logs.

I will investigate the downstream issues preventing the server from running and report back under separate thread if I need further assistance.
Thanks again :)

-Amanda

Michael Snoyman

unread,
May 19, 2015, 3:13:16 AM5/19/15
to yeso...@googlegroups.com
Thanks for testing, I've just released this to Hackage.
Reply all
Reply to author
Forward
0 new messages