-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors parsing ERB on s3_website push #323
Comments
As a workaround, if I manually invoke the JAR file, it works:
If I pass the same
|
Hey there, I'm also having this issue on Codeship since yesterday (17th Jan). Few other people experiencing the issue here: https://stackoverflow.com/questions/54175990/how-to-fix-s3-website-issue-while-pushing-jekyll-site-on-cloudfront-through-gi I'll try your Java workaround... Edit: Success! 🎉 Thanks mate. So as a workaround, could we just set the correct RUBYLIB at the start of our deploy scripts? What would that be? Ruby 1.7? |
If I understand correctly, the problem is that one of the Ruby components is setting RUBYLIB itself, maybe as part of setting up the Bundler environment to invoke s3_website. In other words, I don't think that changing RUBYLIB before calling There may be a way to tell Ruby + Bundler to not set and pass RUBYLIB; I don't know. |
@joshkel It worked. Thank you so much. |
How would you do this while passing --config-dir ? |
Hey all, just so you know I've had another issue related to this that nearly killed me. This was the error:
I think I fixed it by doing I would STRONGLY suggest NOT using this plugin in production. The longer this goes unmaintained, the more risk other gems are going to break it. I am really regretting choosing this for our stack. Have a nice Friday everybody |
The workaround provided above was working fine until today, I reverted back to using @nabilfreeman if you encourage others to not use this library, do you have another recommendation? |
If your AWS credentials are in
|
Facing the same issue with ruby 2.3 & 2.5 when running from a fresh environment in Drone CI. |
Tell the `s3_website` gem to only download the `.jar` file, then manually invoke it. Discussion: laurilehmijoki/s3_website#323 Sample workaround patch: https://github.com/airbrake/airbrake-docs/commit/447ef0ca4fd2c638c1e66a3e3efc52d70ccf71fe
Hi all, my build broke again today so I carefully looked through this issue to see if I did a step by accident last time round that got it working. I think it's necessary to run The comments on @knowuh's commit explained it really well: concord-consortium/lab-interactives-site@cab8e92 So I think a few months back I frantically copy pasted until things worked. As for why it only broke today, I'm not sure. Maybe Codeship keeps the same VM for a really long time? Or I got lucky again. p.s. @jvtrigueros, sorry that my last comment wasn't very helpful. I think the thing that frustrates me is that there are no other options that I know of that give this level of flexibility when deploying Jekyll (redirects, etc.). Plus I don't know Scala, so I can't fork the project easily without a full re-write in Ruby (best) or JS (cos it's the only other thing I know). |
I also faced the same issue.when I solved my java issue with this workaround [fail] Could not load the site: Failed to parse ERB in /Users/ankushmalik/Desktop/jekyll/aw/s3_website.yml:
(SyntaxError) /Users/ankushmalik/.rvm/rubies/ruby-2.6.0/lib/ruby/2.6.0/uri/common.rb:454: syntax error, unexpected tLABEL
def self.decode_www_form(str, enc=Encoding::UTF_8, separator: '&', use__charset_: false, isindex: false) I just downgraded my rvm ruby version to 2.4 and then I was able to execute s3_website push successfully. 😸 🎉 |
workaround from laurilehmijoki/s3_website#323 (comment)
I'm getting errors when I try to do an
s3_website push
.Using the
circleci/ruby:2.5
Docker image:Using the
circleci/ruby:2.6
Docker image:This is the same error as in #306. Unlike #306, though, I've been unable to fix it by upgrading Ruby or by rebuilding my environment. To reproduce the error, launch a Docker container (
docker run -i -t circleci/ruby:2.5
), then run the following commands within the container:If I understand correctly, s3_website is using JRuby 1.7. The error messages make it sound like s3_website's JRuby is inheriting environment settings from the Ruby 2.5 or 2.6 Bundler that cause it to try and load Ruby gems that only work in Ruby 2.0 and above, so it runs into errors as a result. (However, I'm inexperienced at Ruby and have never used JRuby, so I could be completely mistaken here.)
The text was updated successfully, but these errors were encountered: