Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. GitHub Pages
  3. Github Pages: Unexpected Content Error on Push

Github Pages: Unexpected Content Error on Push

Scheduled Pinned Locked Moved Solved GitHub Pages
github-pagesjekyll
10 Posts 2 Posters 1.9k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    will
    wrote on last edited by girish
    #1

    I have a theme I'm running at github,
    https://github.com/willrimmer/rimmercloud
    It works correctly there.
    https://willrimmer.github.io/rimmercloud/

    When I clone the repo locally, set the GitHub pages app as an upstream, and try to push, I get an "Unexpected Content" error in GitKraken.
    Annotation 2020-05-12 233431.jpg
    ![0_1589341153583_Annotation 2020-05-12 233504.jpg](Uploading 100%)
    Annotation 2020-05-12 233522.jpg
    Error in git after running $ git push page master

    Enumerating objects: 321, done.
    Counting objects: 100% (321/321), done.
    Delta compression using up to 16 threads
    Compressing objects: 100% (164/164), done.
    Writing objects: 100% (321/321), 1.85 MiB | 6.23 MiB/s, done.
    Total 321 (delta 154), reused 319 (delta 152)
    remote: Resolving deltas: 100% (154/154), done.
    remote: /bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
    remote: ==================================
    remote: Publishing website
    remote: ==================================
    remote: => Cleanup build path
    remote: => Checkout repo
    remote: => Remove Gemfile.lock
    remote: => jekyll build
    remote: /home/cloudron is not writable.
    remote: Bundler will use /tmp/bundler20200513-136-qkorp9136' as your home directory temporarily. remote: fatal: not a git repository: '.' remote: /var/lib/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/resolver.rb:290:in block in verify_gemfile_dependencies_are_found!': Could not find gem 'jekyll (~> 4)' in any of the gem sources listed in your Gemfile. (Bundler::GemNotFound)
    remote: from /var/lib/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/resolver.rb:258:in each' remote: from /var/lib/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/resolver.rb:258:in verify_gemfile_dependencies_are_found!'
    remote: from /var/lib/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/resolver.rb:49:in start' remote: from /var/lib/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/resolver.rb:22:in resolve'
    remote: from /var/lib/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/definition.rb:258:in resolve' remote: from /var/lib/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/definition.rb:170:in specs'
    remote: from /var/lib/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/definition.rb:237:in specs_for' remote: from /var/lib/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/definition.rb:226:in requested_specs'
    remote: from /var/lib/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/runtime.rb:101:in block in definition_method' remote: from /var/lib/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/runtime.rb:20:in setup'
    remote: from /var/lib/gems/2.5.0/gems/bundler-2.1.4/lib/bundler.rb:149:in setup' remote: from /var/lib/gems/2.5.0/gems/jekyll-3.8.5/lib/jekyll/plugin_manager.rb:50:in require_from_bundler'
    remote: from /var/lib/gems/2.5.0/gems/jekyll-3.8.5/exe/jekyll:11:in <top (required)>' remote: from /usr/local/bin/jekyll:23:in load'
    remote: from /usr/local/bin/jekyll:23:in `<main>'
    To https://rimmer.cloud/_git/page
    ! [remote rejected] master -> master (pre-receive hook declined)
    error: failed to push some refs to 'https://rimmer.cloud/_git/page'

    Thoughts?

    1 Reply Last reply
    0
    • girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      @will Looks like a packaging bug. I can reproduce the error, looking into it.

      1 Reply Last reply
      1
      • W Offline
        W Offline
        will
        wrote on last edited by will
        #3

        @girish Any update on this? Its a show stopper for my page deployment.

        1 Reply Last reply
        0
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #4

          @will Forgot to update on this one. The issue is related to the use of jekyll 4 (in the gemfile). Are you able to reduce usage to jekyll 3? I think it should work after that.

          I will look into updating the app to support Jekyll 4. (it seems one cannot install jekyll 3 and 4 side by side?). Or maybe it's possible with some rbenv trick.

          W 2 Replies Last reply
          0
          • girishG girish

            @will Forgot to update on this one. The issue is related to the use of jekyll 4 (in the gemfile). Are you able to reduce usage to jekyll 3? I think it should work after that.

            I will look into updating the app to support Jekyll 4. (it seems one cannot install jekyll 3 and 4 side by side?). Or maybe it's possible with some rbenv trick.

            W Offline
            W Offline
            will
            wrote on last edited by
            #5

            @girish No clue, I stole this theme off of a "Easy Jekyll themes site"

            1 Reply Last reply
            0
            • girishG girish

              @will Forgot to update on this one. The issue is related to the use of jekyll 4 (in the gemfile). Are you able to reduce usage to jekyll 3? I think it should work after that.

              I will look into updating the app to support Jekyll 4. (it seems one cannot install jekyll 3 and 4 side by side?). Or maybe it's possible with some rbenv trick.

              W Offline
              W Offline
              will
              wrote on last edited by
              #6

              @girish Shouldn't the GitHub pages app be using the latest versions of Jekyll that github pages uses to maintain compatability?

              1 Reply Last reply
              0
              • girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #7

                @will Initially, I thought this was about adding Jekyll 4 support but turns out it's not.

                Essentially, github-pages is a gem which pins the jekyll version to 3.8.5 - https://pages.github.com/versions/ and https://rubygems.org/gems/github-pages . Now the jekyll project has released a v4. The github pages does not actually support Jekyll 4 - See https://github.com/github/pages-gem/issues/651 .

                I was able to deploy your site by simply removing Gemfile before I did a jekyll build but I am not sure if this is the correct fix. But I am getting closer to the correct fix.

                1 Reply Last reply
                1
                • girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #8

                  @will I pushed a new version now which I think should fix your issue. Can you confirm?

                  I had dig into ruby madness to see if the fix was correct. https://git.cloudron.io/cloudron/githubpages-app/-/issues/1 for the curious.

                  W 2 Replies Last reply
                  1
                  • girishG girish

                    @will I pushed a new version now which I think should fix your issue. Can you confirm?

                    I had dig into ruby madness to see if the fix was correct. https://git.cloudron.io/cloudron/githubpages-app/-/issues/1 for the curious.

                    W Offline
                    W Offline
                    will
                    wrote on last edited by
                    #9

                    @girish Updated. Will confirm and report back.
                    Thank you for diving through madness for the fix

                    1 Reply Last reply
                    1
                    • girishG girish

                      @will I pushed a new version now which I think should fix your issue. Can you confirm?

                      I had dig into ruby madness to see if the fix was correct. https://git.cloudron.io/cloudron/githubpages-app/-/issues/1 for the curious.

                      W Offline
                      W Offline
                      will
                      wrote on last edited by will
                      #10

                      @girish It worked! Need to change some of the jekyll code around to transition from github to this, but looks good!

                      1 Reply Last reply
                      1
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Bookmarks
                      • Search