-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
Ginatra is NOT running #40
Comments
Does the server work if you point |
Ok I misunderstood the message, I'm sorry. I just made an empty directory in my home folder and pointed the git_dirs to that dummy folder. When I used
I got
When I point it to my real git repository I get the same message and I still get a 500 error when I got to localhost:9797 in my webbrowser. And was my prefix path ok? |
The prefix setting is used when running in a subdirectory, so I think it's ok. Could you test with the latest version: 4.1.0? Also I don't recommend running ginatra as a root. |
I upgraded but it didn't change anything. Could it be the problem that I'm trying to run it on a raspberry pi with Raspbian? |
No, it should work perfectly. Could you start it with this command: |
I've seen that comment a lot, but it doesn't do anything for me...I might consider reinstalling Raspbian and trying it again. I think I've broken something lol |
Strange. The index page just lists directory names, in theory it shouldn't 500. |
I had the same issues pimteslaa. I first tried the gem install, then reverted to checkout and bundle it. After the server was running (bundle exec bin/ginatra run) i could not reference outside of the dir due to bundler which resulted in 500 errors. I soft linked in the ./repos directory (as defined in the README within that dir) so the app can see it since it is jailed at that point... of course if you aren't using bundler, ignore this message :) |
I am getting the same result as above, running from /var/lib/gems/1.9.1/gems/rack-1.6.4/lib/rack/builder.rb:55:in instance_eval' from /var/lib/gems/1.9.1/gems/rack-1.6.4/lib/rack/builder.rb:55:in initialize'from /var/lib/gems/1.9.1/gems/ginatra-4.1.0/config.ru:in new' from /var/lib/gems/1.9.1/gems/ginatra-4.1.0/config.ru:in 'from /var/lib/gems/1.9.1/gems/rack-1.6.4/lib/rack/builder.rb:49:in eval' from /var/lib/gems/1.9.1/gems/rack-1.6.4/lib/rack/builder.rb:49:in new_from_string'from /var/lib/gems/1.9.1/gems/rack-1.6.4/lib/rack/builder.rb:40:in parse_file' from /var/lib/gems/1.9.1/gems/rack-1.6.4/lib/rack/server.rb:299:in build_app_and_options_from_config'from /var/lib/gems/1.9.1/gems/rack-1.6.4/lib/rack/server.rb:208:in app' from /var/lib/gems/1.9.1/gems/rack-1.6.4/lib/rack/server.rb:336:in wrapped_app'from /var/lib/gems/1.9.1/gems/rack-1.6.4/lib/rack/server.rb:272:in start' from /var/lib/gems/1.9.1/gems/rack-1.6.4/lib/rack/server.rb:147:in start'from /var/lib/gems/1.9.1/gems/rack-1.6.4/bin/rackup:4:in <top (required)>' from /usr/local/bin/rackup:23:in load'from /usr/local/bin/rackup:23:in `' Ginatra runs on localhost:9797`` If I try to gem install better_errors I get an error saying better_errors requires Ruby version >= 2.0.0 edit: This is odd as better_errors 1.1.0 only requires ruby1.9.2 (https://github.com/charliesome/better_errors/blob/v1.1.0/better_errors.gemspec) My Environment
|
The issue with better_errors requiring ruby 2.0.0 was my mistake, I was installing the latest better_errors. When installing better_errors -v 1.1.0 (as the app requires) succeeds and solves the above dump; however, it leaves me with the following dump: from /var/lib/gems/1.9.1/gems/rack-1.6.4/lib/rack/builder.rb:55:in instance_eval' from /var/lib/gems/1.9.1/gems/rack-1.6.4/lib/rack/builder.rb:55:in initialize'from /var/lib/gems/1.9.1/gems/ginatra-4.1.0/config.ru:in new' from /var/lib/gems/1.9.1/gems/ginatra-4.1.0/config.ru:in 'from /var/lib/gems/1.9.1/gems/rack-1.6.4/lib/rack/builder.rb:49:in eval' from /var/lib/gems/1.9.1/gems/rack-1.6.4/lib/rack/builder.rb:49:in new_from_string'from /var/lib/gems/1.9.1/gems/rack-1.6.4/lib/rack/builder.rb:40:in parse_file' from /var/lib/gems/1.9.1/gems/rack-1.6.4/lib/rack/server.rb:299:in build_app_and_options_from_config'from /var/lib/gems/1.9.1/gems/rack-1.6.4/lib/rack/server.rb:208:in app' from /var/lib/gems/1.9.1/gems/rack-1.6.4/lib/rack/server.rb:336:in wrapped_app'from /var/lib/gems/1.9.1/gems/rack-1.6.4/lib/rack/server.rb:272:in start' from /var/lib/gems/1.9.1/gems/rack-1.6.4/lib/rack/server.rb:147:in start'from /var/lib/gems/1.9.1/gems/rack-1.6.4/bin/rackup:4:in <top (required)>' from /usr/local/bin/rackup:23:in load'from /usr/local/bin/rackup:23:in <main>' Ginatra runs on localhost:9797
|
Sorry for all of the updates but due to the above roadblock, I switched to use the app (with bundler) and ginatra starts up without an issue. If I have time later I'll pull and see if I can figure out the gem problem. |
Hey there,
I just installed the Ginatra 4.0.2 app. I changed the config.yml in the root folder and when I type
I get
But when I use
I get back
What am I doing wrong? My config file looks like:
My app is installed under /usr/local/lib/ruby/gems/2.2.0/gems/ginatra-4.0.2 should this be the prefix?
EDIT: I got the server running atm but I'm getting a 500 interal server error. I double checked my git_dirs and it seems ok... it's still on /opt/git/* and I've got only one repo on my server which is: /opt/git/c-programming.git. I've played a little with the git_dirs parameter and even if I complete change it to some random location ginatra still says: "checking for git...yes"
The text was updated successfully, but these errors were encountered: