Fresh install - login and nothing happens

574 views
Skip to first unread message

Derek Ekins

unread,
Jun 23, 2010, 7:05:32 AM6/23/10
to Gitorious
Hi,
I followed this guide to set up gitorious: http://gitorious.org/gitorious/pages/UbuntuInstallation

When I browse to the website I can see the dashboard.
If I click login I can enter my credentials (the admin account I setup
previously) and it seems to log me in (if I enter the wrong password I
don't go anywhere). I get redirected back to the dashboard, however
nothing has changed at all.

I am not really sure what the next steps are from here.
Do I need to do something else to get some admin options?

Derek

Benjamin Podszun

unread,
Jun 24, 2010, 6:57:56 AM6/24/10
to gito...@googlegroups.com
Hi.

On Wed, Jun 23, 2010 at 1:05 PM, Derek Ekins <de...@spathi.com> wrote:
> If I click login I can enter my credentials (the admin account I setup
> previously) and it seems to log me in (if I enter the wrong password I
> don't go anywhere). I get redirected back to the dashboard, however
> nothing has changed at all.

This comes up all the time (maybe something should be added to the
docs) and more or less qualifies as a FAQ already:

The most probable reason for your problem (been there..) is that the
login cookie isn't set. While that might have several causes, the one
that usually bites people is
a) Your installation has no valid domain for a cookie (e.g. localhost)
b) Your installation tries to set a cookie for a different domain that
the serving one
(You access http://localhost but the cookie is set for
http://your.qualified.gitorious)

If you don't care about the domain part of the cookie you can disable it:

git diff config/initializers/session_store.rb
diff --git a/config/initializers/session_store.rb
b/config/initializers/session_store.rb
index 7384f93..fba9164 100644
--- a/config/initializers/session_store.rb
+++ b/config/initializers/session_store.rb
@@ -8,7 +8,7 @@ gitorious_yaml = YAML::load_file(File.join(Rails.root,
"config/gitorious.yml"))[
ActionController::Base.session = {
:key => '_gitorious_sess',
:secret => gitorious_yaml['cookie_secret'],
- :domain => ".#{gitorious_yaml["gitorious_host"]}",
+# :domain => ".#{gitorious_yaml["gitorious_host"]}",
:expire_after => 3.weeks,
}


HTH,
Ben

Reply all
Reply to author
Forward
0 new messages