Giter Club home page Giter Club logo

Comments (26)

tknerr avatar tknerr commented on May 21, 2024

with ruby 1.9.1p430 the WEBrick server starts, but when opening http://localhost:4567/ in the browser I get the 500 error page and the following stacktrace in the console:

Zlib::DataError: invalid bit length repeat
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/grit-2.2.0/lib/grit/git-ruby/internal/loose.rb:44:in `inflate'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/grit-2.2.0/lib/grit/git-ruby/internal/loose.rb:44:in `get_raw_object'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/grit-2.2.0/lib/grit/git-ruby/internal/loose.rb:32:in `[]'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/grit-2.2.0/lib/grit/git-ruby/repository.rb:84:in `block in get_raw_object_by_sha1'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/grit-2.2.0/lib/grit/git-ruby/repository.rb:83:in `each'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/grit-2.2.0/lib/grit/git-ruby/repository.rb:83:in `get_raw_object_by_sha1'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/grit-2.2.0/lib/grit/git-ruby/repository.rb:334:in `walk_log'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/grit-2.2.0/lib/grit/git-ruby/repository.rb:287:in `log'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/grit-2.2.0/lib/grit/git-ruby/repository.rb:306:in `rev_list'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/grit-2.2.0/lib/grit/git-ruby.rb:68:in `block in rev_list'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/grit-2.2.0/lib/grit/git-ruby.rb:224:in `block in try_run'
        D:/Ruby191/lib/ruby/1.9.1/timeout.rb:52:in `timeout'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/grit-2.2.0/lib/grit/git-ruby.rb:223:in `try_run'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/grit-2.2.0/lib/grit/git-ruby.rb:68:in `rev_list'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/grit-2.2.0/lib/grit/commit.rb:94:in `find_all'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/grit-2.2.0/lib/grit/repo.rb:261:in `commit'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/gollum-1.0.1/lib/gollum/page.rb:254:in `find'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/gollum-1.0.1/lib/gollum/wiki.rb:74:in `page'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/gollum-1.0.1/lib/gollum/frontend/app.rb:132:in `show_page_or_file'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/gollum-1.0.1/lib/gollum/frontend/app.rb:38:in `block in <class:App>'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:865:in `call'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:865:in `block in route'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:521:in `instance_eval'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:521:in `route_eval'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:500:in `block (2 levels) in route!'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:497:in `catch'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:497:in `block in route!'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:476:in `each'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:476:in `route!'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:601:in `dispatch!'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:411:in `block in call!'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:566:in `instance_eval'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:566:in `block in invoke'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:566:in `catch'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:566:in `invoke'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:411:in `call!'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:399:in `call'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/rack-1.2.1/lib/rack/showexceptions.rb:24:in `call'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:979:in `block in call'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:1005:in `synchronize'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:979:in `call'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/rack-1.2.1/lib/rack/content_length.rb:13:in `call'
        D:/Ruby191/lib/ruby/gems/1.9.1/gems/rack-1.2.1/lib/rack/handler/webrick.rb:52:in `service'
        D:/Ruby191/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
        D:/Ruby191/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
        D:/Ruby191/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'

from gollum.

tknerr avatar tknerr commented on May 21, 2024

using ruby 1.8.7.p302 the WEBrick is starting up as above, this time I get a similar error (Zlib::BufError) when running gollum in my mojombo/gollum-demo repo clone:

Zlib::BufError: buffer error
        D:/Ruby187/lib/ruby/gems/1.8/gems/grit-2.2.0/lib/grit/git-ruby/internal/loose.rb:44:in `inflate'
        D:/Ruby187/lib/ruby/gems/1.8/gems/grit-2.2.0/lib/grit/git-ruby/internal/loose.rb:44:in `get_raw_object'
        D:/Ruby187/lib/ruby/gems/1.8/gems/grit-2.2.0/lib/grit/git-ruby/internal/loose.rb:32:in `[]'
        D:/Ruby187/lib/ruby/gems/1.8/gems/grit-2.2.0/lib/grit/git-ruby/repository.rb:84:in `get_raw_object_by_sha1'
        D:/Ruby187/lib/ruby/gems/1.8/gems/grit-2.2.0/lib/grit/git-ruby/repository.rb:83:in `each'
        D:/Ruby187/lib/ruby/gems/1.8/gems/grit-2.2.0/lib/grit/git-ruby/repository.rb:83:in `get_raw_object_by_sha1'
        D:/Ruby187/lib/ruby/gems/1.8/gems/grit-2.2.0/lib/grit/git-ruby/repository.rb:334:in `walk_log'
        D:/Ruby187/lib/ruby/gems/1.8/gems/grit-2.2.0/lib/grit/git-ruby/repository.rb:287:in `log'
        D:/Ruby187/lib/ruby/gems/1.8/gems/grit-2.2.0/lib/grit/git-ruby/repository.rb:306:in `rev_list'
        D:/Ruby187/lib/ruby/gems/1.8/gems/grit-2.2.0/lib/grit/git-ruby.rb:68:in `rev_list'
        D:/Ruby187/lib/ruby/gems/1.8/gems/grit-2.2.0/lib/grit/git-ruby.rb:224:in `try_run'
        D:/Ruby187/lib/ruby/1.8/timeout.rb:67:in `timeout'
        D:/Ruby187/lib/ruby/gems/1.8/gems/grit-2.2.0/lib/grit/git-ruby.rb:223:in `try_run'
        D:/Ruby187/lib/ruby/gems/1.8/gems/grit-2.2.0/lib/grit/git-ruby.rb:68:in `rev_list'
        D:/Ruby187/lib/ruby/gems/1.8/gems/grit-2.2.0/lib/grit/commit.rb:94:in `find_all'
        D:/Ruby187/lib/ruby/gems/1.8/gems/grit-2.2.0/lib/grit/repo.rb:261:in `commit'
        D:/Ruby187/lib/ruby/gems/1.8/gems/gollum-1.0.1/bin/../lib/gollum/page.rb:254:in `find'
        D:/Ruby187/lib/ruby/gems/1.8/gems/gollum-1.0.1/bin/../lib/gollum/wiki.rb:74:in `page'
        D:/Ruby187/lib/ruby/gems/1.8/gems/gollum-1.0.1/bin/../lib/gollum/frontend/app.rb:132:in `show_page_or_file'
        D:/Ruby187/lib/ruby/gems/1.8/gems/gollum-1.0.1/bin/../lib/gollum/frontend/app.rb:38:in `GET /'
        D:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:863:in `call'
        D:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:863:in `route'
        D:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:521:in `instance_eval'
        D:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:521:in `route_eval'
        D:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:500:in `route!'
        D:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:497:in `catch'
        D:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:497:in `route!'
        D:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:476:in `each'
        D:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:476:in `route!'
        D:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:601:in `dispatch!'
        D:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:411:in `call!'
        D:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in `instance_eval'
        D:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in `invoke'
        D:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in `catch'
        D:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in `invoke'
        D:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:411:in `call!'
        D:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:399:in `call'
        D:/Ruby187/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/showexceptions.rb:24:in `call'
        D:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:979:in `call'
        D:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:1005:in `synchronize'
        D:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:979:in `call'
        D:/Ruby187/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/content_length.rb:13:in `call'
        D:/Ruby187/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/handler/webrick.rb:52:in `service'
        D:/Ruby187/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
        D:/Ruby187/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
        D:/Ruby187/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
        D:/Ruby187/lib/ruby/1.8/webrick/server.rb:162:in `start'
        D:/Ruby187/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
        D:/Ruby187/lib/ruby/1.8/webrick/server.rb:95:in `start'
        D:/Ruby187/lib/ruby/1.8/webrick/server.rb:92:in `each'
        D:/Ruby187/lib/ruby/1.8/webrick/server.rb:92:in `start'
        D:/Ruby187/lib/ruby/1.8/webrick/server.rb:23:in `start'
        D:/Ruby187/lib/ruby/1.8/webrick/server.rb:82:in `start'
        D:/Ruby187/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/handler/webrick.rb:13:in `run'
        D:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:946:in `run!'
        D:/Ruby187/lib/ruby/gems/1.8/gems/gollum-1.0.1/bin/gollum:41
        D:/Ruby187/bin/gollum:19:in `load'
        D:/Ruby187/bin/gollum:19

When running gollum in a freshly initialized git repository with ruby 1.8.7, I get a blank screen and the following stacktrace:

[2010-08-31 10:07:29] ERROR NotImplementedError: fork() function is unimplemented on this machine
        d:/Ruby187/lib/ruby/1.8/open3.rb:57:in `fork'
        d:/Ruby187/lib/ruby/1.8/open3.rb:57:in `popen3'
        d:/Ruby187/lib/ruby/gems/1.8/gems/grit-2.2.0/lib/grit/git.rb:253:in `sh'
        d:/Ruby187/lib/ruby/gems/1.8/gems/grit-2.2.0/lib/grit/git.rb:245:in `run'
        d:/Ruby187/lib/ruby/gems/1.8/gems/grit-2.2.0/lib/grit/git.rb:221:in `method_missing'
        d:/Ruby187/lib/ruby/gems/1.8/gems/grit-2.2.0/lib/grit/git-ruby.rb:108:in `rev_parse'
        d:/Ruby187/lib/ruby/gems/1.8/gems/grit-2.2.0/lib/grit/git-ruby.rb:64:in `rev_list'
        d:/Ruby187/lib/ruby/gems/1.8/gems/grit-2.2.0/lib/grit/commit.rb:94:in `find_all'
        d:/Ruby187/lib/ruby/gems/1.8/gems/grit-2.2.0/lib/grit/repo.rb:261:in `commit'
        d:/Ruby187/lib/ruby/gems/1.8/gems/gollum-1.0.1/bin/../lib/gollum/page.rb:254:in `find'
        d:/Ruby187/lib/ruby/gems/1.8/gems/gollum-1.0.1/bin/../lib/gollum/wiki.rb:74:in `page'
        d:/Ruby187/lib/ruby/gems/1.8/gems/gollum-1.0.1/bin/../lib/gollum/frontend/app.rb:132:in `show_page_or_file'
        d:/Ruby187/lib/ruby/gems/1.8/gems/gollum-1.0.1/bin/../lib/gollum/frontend/app.rb:127:in `GET /*'
        d:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:863:in `call'
        d:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:863:in `route'
        d:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:521:in `instance_eval'
        d:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:521:in `route_eval'
        d:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:500:in `route!'
        d:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:497:in `catch'
        d:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:497:in `route!'
        d:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:476:in `each'
        d:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:476:in `route!'
        d:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:601:in `dispatch!'
        d:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:411:in `call!'
        d:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in `instance_eval'
        d:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in `invoke'
        d:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in `catch'
        d:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in `invoke'
        d:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:411:in `call!'
        d:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:399:in `call'
        d:/Ruby187/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/showexceptions.rb:24:in `call'
        d:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:979:in `call'
        d:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:1005:in `synchronize'
        d:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:979:in `call'
        d:/Ruby187/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/content_length.rb:13:in `call'
        d:/Ruby187/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/handler/webrick.rb:52:in `service'
        d:/Ruby187/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
        d:/Ruby187/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
        d:/Ruby187/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
        d:/Ruby187/lib/ruby/1.8/webrick/server.rb:162:in `start'
        d:/Ruby187/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
        d:/Ruby187/lib/ruby/1.8/webrick/server.rb:95:in `start'
        d:/Ruby187/lib/ruby/1.8/webrick/server.rb:92:in `each'
        d:/Ruby187/lib/ruby/1.8/webrick/server.rb:92:in `start'
        d:/Ruby187/lib/ruby/1.8/webrick/server.rb:23:in `start'
        d:/Ruby187/lib/ruby/1.8/webrick/server.rb:82:in `start'
        d:/Ruby187/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/handler/webrick.rb:13:in `run'
        d:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:946:in `run!'
        d:/Ruby187/lib/ruby/gems/1.8/gems/gollum-1.0.1/bin/gollum:41
        d:/Ruby187/bin/gollum:19:in `load'
        d:/Ruby187/bin/gollum:19

from gollum.

tknerr avatar tknerr commented on May 21, 2024

I'm back on Ruby 1.9.1.p430 again. The gollum-demo Wiki actually shows up, but only as long as I do not commit any changes. Changing and commiting a file (either via gollum or via msysgit directly, same for both) causes:
Zlib::DataError: invalid bit length repeat
...

After resetting the head to the previous commit it is working again. So currently it is a read-only Wiki on my Windows machine :-/

from gollum.

Wilhansen avatar Wilhansen commented on May 21, 2024

I'm getting a sort-of similar error here.
Using Ruby 1.9.2p0 (32- bit) on Windows 7 64-bit and Gollum 1.1.0.
Editing the wiki using the web interface corrupts the repository (but editing the text files directly works).

from gollum.

Chaoslab avatar Chaoslab commented on May 21, 2024

Same problem regarding "forking" here. Been trying for a over a week to get a Ruby & GIT based wiki for my of private development purposes.

All of the wiki's I have tried have Windows only issues including this one so if you are looking for a solution Ruby + GIT based solution for windows then Gollum, Gitki and Git-Wiki all have a similar if not the same issue.

from gollum.

gaving avatar gaving commented on May 21, 2024

+1 - spent a good age trying to get this to work too, ended in tears

from gollum.

rkh avatar rkh commented on May 21, 2024

I don't have windows. The first error (not the zlib issue) could be solved by upgrading sinatra (current version is 1.2.6, not 1.0).

from gollum.

Chaoslab avatar Chaoslab commented on May 21, 2024

Ok, I might have a we poke at it again since its been a while.

I just ended up using JSPWiki

Using GIT for DVCS and love it!

Regards
Cameron Mckechnie

On 7/26/11, rkh
[email protected]
wrote:

I don't have windows. The first error (not the zlib issue) could be solved
by upgrading sinatra (current version is 1.2.6, not 1.0).

Reply to this email directly or view it on GitHub:
https://github.com/github/gollum/issues/23#issuecomment-1652619

from gollum.

nopivnick avatar nopivnick commented on May 21, 2024

@gaving wrote:

spent a good age trying to get this to work too, ended in tears

same here, was coordinating efforts with all developers and even made some small progress but threw in the towel after day five.

@Chaoslab wrote:

I just ended up using JSPWiki

that's the workaround I got to as well: run an instance of a java-based wiki against the repo locally ... just out of curiosity, did you take a look at XWiki?

from gollum.

Chaoslab avatar Chaoslab commented on May 21, 2024

Well my gut feeling is that it is "a big opportunity".

Wiki's are very useful for private and commercial uses. And well I
love the idea of using GIT instead of a DB. Then its easy to
duplicate, update, roll back and etc.

:-)

On 7/28/11, nopivnick
[email protected]
wrote:

@gaving wrote:

spent a good age trying to get this to work too, ended in tears

same here, was coordinating efforts with all developers and even made some
small progress but threw in the towel after day
five.

@Chaoslab wrote:

I just ended up using JSPWiki

that's the workaround I got to as well: run an instance of a java-based wiki
against the repo locally ... just out of curiosity, did you take a look at
XWiki?

Reply to this email directly or view it on GitHub:
https://github.com/github/gollum/issues/23#issuecomment-1665909

from gollum.

bootstraponline avatar bootstraponline commented on May 21, 2024

Is this still an issue? The latest gollum uses grit 2.5 which has improved windows support.

from gollum.

tknerr avatar tknerr commented on May 21, 2024

Just tried it once again. This time with:

  • ruby 1.9.3.p125 (via rubyinstaller)
  • msysgit: Git-1.7.1.0-preview20100309
  • Windows 7 / 64 Bit

but got

http://localhost:4567/ -> /__sinatra__/500.png
TypeError - can't convert nil into String:
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/grit-2.4.1/lib/grit/process.rb:290:in `spawn'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/grit-2.4.1/lib/grit/process.rb:290:in `spawn'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/grit-2.4.1/lib/grit/process.rb:271:in `popen4'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/grit-2.4.1/lib/grit/process.rb:97:in `exec!'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/grit-2.4.1/lib/grit/process.rb:68:in `initialize'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/grit-2.4.1/lib/grit/git.rb:301:in `new'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/grit-2.4.1/lib/grit/git.rb:301:in `native'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/grit-2.4.1/lib/grit/git.rb:325:in `method_missing'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/grit-2.4.1/lib/grit/git-ruby.rb:108:in `rev_parse'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/grit-2.4.1/lib/grit/git-ruby.rb:64:in `rev_list'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/gollum-2.0.0/lib/gollum/git_access.rb:149:in `ref_to_sha!'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/gollum-2.0.0/lib/gollum/git_access.rb:39:in `block in ref_to_sha'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/gollum-2.0.0/lib/gollum/git_access.rb:206:in `get_cache'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/gollum-2.0.0/lib/gollum/git_access.rb:39:in `ref_to_sha'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/gollum-2.0.0/lib/gollum/git_access.rb:51:in `tree'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/gollum-2.0.0/lib/gollum/wiki.rb:627:in `tree_map_for'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/gollum-2.0.0/lib/gollum/page.rb:304:in `find'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/gollum-2.0.0/lib/gollum/wiki.rb:183:in `page'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/gollum-2.0.0/lib/gollum/frontend/app.rb:194:in `show_page_or_file'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/gollum-2.0.0/lib/gollum/frontend/app.rb:189:in `block in <class:App>'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1212:in `call'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1212:in `block in compile!'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `[]'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `block (3 levels) in route!'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:801:in `route_eval'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `block (2 levels) in route!'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:822:in `block in process_route'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:820:in `catch'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:820:in `process_route'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:784:in `block in route!'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:783:in `each'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:783:in `route!'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:886:in `dispatch!'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:in `block in call!'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `block in invoke'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `catch'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `invoke'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:in `call!'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:705:in `call'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in `call'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/path_traversal.rb:16:in `call'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/json_csrf.rb:17:in `call'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/base.rb:47:in `call'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in `call'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/nulllogger.rb:9:in `call'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/head.rb:9:in `call'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/showexceptions.rb:21:in `call'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1334:in `block in call'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1416:in `synchronize'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1334:in `call'
        W:/tools/vagrant/embedded/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler/webrick.rb:59:in `service'
        W:/tools/vagrant/embedded/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
        W:/tools/vagrant/embedded/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
        W:/tools/vagrant/embedded/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'

from gollum.

bootstraponline avatar bootstraponline commented on May 21, 2024

gems/grit-2.4.1 is not the latest version. Try cloning the gollum repository and running bundle install to use the latest grit 2.5. Versions of grit less than 2.5 have known problems on windows.

from gollum.

bootstraponline avatar bootstraponline commented on May 21, 2024

Here's what I wrote for #161. In short, gollum is not suppose to work on Windows although patches are welcome.

Gollum uses grit which changed to use posix spawn. Posix spawn does not work on windows (#17, #9). Unless someone adds windows support to posix-spawn, I don't think gollum will ever support windows.

from gollum.

bootstraponline avatar bootstraponline commented on May 21, 2024

I'm closing this because it's an issue in posix-spawn. Once #9 is fixed then I think gollum will work on Windows.

from gollum.

rioki avatar rioki commented on May 21, 2024

You can actually get gollum to work in windows. I did a total hack and will try to get that into grit. Here is what I did:

  • In grit::Git::git_binary (git.rb:56) i had coded the path to git.exe.
  • In grit::Process::read_and_write (Process.rb:162) i changed the call fd.write_nonblock to fd.write.

The issue is all in grit; but it is "possible" to get gollum to work on windows.

from gollum.

tknerr avatar tknerr commented on May 21, 2024

hmmmm....

It seemed to work for me at first glance by either

  • downgrading to grit 2.3.0
  • or using grit 2.4.1 with the modifications described by @rioki above

It seems to work initially, but as soon as I edit an existing page things get messed up (all pages are lost / not showing anymore in the wiki) and git status shows fatal: corrupt tree file...

@rioki : does editing an existing page work for you?

from gollum.

bootstraponline avatar bootstraponline commented on May 21, 2024

The long term solution to running gollum on Windows is replacing grit with rugged. In the short term, if grit can be patched to enable support that's great.

from gollum.

rioki avatar rioki commented on May 21, 2024

Ok I just use gollum to view pages in a reader friendly manner. I edit the pages with a text editor. I tried the to edit a file, what would you know, the edit breaks the repository. Sorry about that. It's a hack I would have to look further into the issue. But downgrading to grit 2.3.0 seams the way to go for now.

from gollum.

jrsconfitto avatar jrsconfitto commented on May 21, 2024

If anyone wants to help me make this a reality, the 🔑 for Gollum working on windows is in #617.

from gollum.

che-wf avatar che-wf commented on May 21, 2024

I'm not sure if anyone else was able to get this working on Windows. I tried installing it on a Windows 10 machine using the Windows architecture. It failed miserably. However, I got it up and running in no time using WSL. So, that's a good option now that Bash for Windows is here.

from gollum.

dometto avatar dometto commented on May 21, 2024

@jbcoder have you tried with jruby?

from gollum.

che-wf avatar che-wf commented on May 21, 2024

@dometto No, I haven't. But WSL seems to be doing the trick.

from gollum.

ceefour avatar ceefour commented on May 21, 2024

Rugged support is in gollum/gollum-lib#16 ?

from gollum.

rubin55 avatar rubin55 commented on May 21, 2024

For posterity, for those that come here trying to install Gollum on Windows, know that Gollum 4.x will never work on windows due to a dependency on posix-spawn, which, as of version 0.3.14 at least, does install on Windows, but does not work (you'll get a Type nil String error).

Version 5.x of Gollum moved to using rugged, which is tricky to install on Windows, but it is possible. In the case of Gollum, as of this writing it specifically depends on rugged 0.99 which in turn specifically depends on libgit2 0.99; make sure to not upgrade your RIDK environment, because else you will get a newer libgit2. In any case, I imagine you can also download the package from the MingW mirrors or find it in your pacman cache and pacman -U /var/cache/pacman/pkg/mingw-w64-x86_64-libgit2-0.99.0-1-any.pkg.tar.xz.

I'm still running into an issue related to rugged:

C:/PROGRA~1/RUBY/RUBY26/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': 126: The specified module could not be found.   - C:/Users/rubin/.gem/ruby/2.6.0/gems/rugged-0.99.0/lib/rugged/rugged.so (LoadError)

I'm trying to find out why rugged can't be loaded.

from gollum.

dometto avatar dometto commented on May 21, 2024

Please note this bit from the Readme:

Gollum runs on Unix-like systems using its adapter for rugged by default. You can also run Gollum on JRuby via its adapter for RJGit. On Windows, Gollum runs only on JRuby.

Just use the JRuby for Windows installer and gem install gollum.

from gollum.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.