Trouble logging in or creating a user - need help?

211 views
Skip to first unread message

JayP

unread,
Feb 23, 2012, 4:08:21 PM2/23/12
to Gitorious
I installed Gitorious on CentOS and now I’m trying to log in with the
admin user I created with “script/create_admin” and fails with this
message in production.log

ActionController::InvalidAuthenticityToken
(ActionController::InvalidAuthenticityToken):
vendor/rails/actionpack/lib/action_controller/
request_forgery_protection.rb:79:in `verify_authenticity_token’

This is what I see on the page after login fails:

Sorry, something went wrong

Gitorious encountered an server error. We are automatically notified
of errors and will look into it. If the error persists beyond what’s
reasonable

I deleted the user and tried again to see if I was putting in the
wrong password but it still failed to log the admin user in. I also
get the same message when I try to create a user. Any ideas?

Thanks in advance.

Jay

Jason Perry

unread,
Feb 23, 2012, 4:02:57 PM2/23/12
to Gitorious
I set Gitorious up on CentOS and now I’m trying to log in with the
admin user I created with “script/create_admin” and fails with this
message in production.log

ActionController::InvalidAuthenticityToken
(ActionController::InvalidAuthenticityToken):
vendor/rails/actionpack/lib/action_controller/
request_forgery_protection.rb:79:in `verify_authenticity_token’

This is what I see on the page after login fails:

Sorry, something went wrong

Gitorious encountered an server error. We are automatically notified
of errors and will look into it. If the error persists beyond what’s
reasonable

I deleted the user and tried again to see if I was putting in the
wrong password but it still failed to log the admin user in. Any

sbinev

unread,
Apr 1, 2012, 12:00:28 PM4/1/12
to Gitorious
I have the exact same problem. Did you find out how to fix it?

Marius Mårnes Mathiesen

unread,
Apr 3, 2012, 5:25:29 AM4/3/12
to gito...@googlegroups.com
On Sun, Apr 1, 2012 at 6:00 PM, sbinev <sbi...@gmail.com> wrote:
I have the exact same problem. Did you find out how to fix it?

 You need to use the same hostname in the browser as you've configured in gitorious.yml.

- Marius

JayP

unread,
Apr 4, 2012, 12:22:30 PM4/4/12
to Gitorious
Even when I did this I still get the failure. Are there other things
that should be set?

Anything in apache?

Thanks,
Jay

On Apr 3, 5:25 am, Marius Mårnes Mathiesen

JayP

unread,
Apr 4, 2012, 12:37:56 PM4/4/12
to Gitorious
Does the fully qualified hostname need to match as well?

Meaning if you do a hostname --fqdn

JayP

unread,
Apr 4, 2012, 2:05:06 PM4/4/12
to Gitorious
All the hostnames are matching up in gitorious.yml and apache configs
and I'm getting a failure in the production.log:

WARNING: Invalid request host 'jason-ubuntu'. Session cookies will
not work.

Marius Mårnes Mathiesen

unread,
Apr 12, 2012, 7:11:32 AM4/12/12
to gito...@googlegroups.com
On Wed, Apr 4, 2012 at 8:05 PM, JayP <boso...@gmail.com> wrote:
All the hostnames are matching up in gitorious.yml and apache configs
and I'm getting a failure in the production.log:

WARNING: Invalid request host 'jason-ubuntu'.  Session cookies will
not work.

Ah,  you'll need at least one period/dot in gitorious_host in gitorious.yml. Try setting up an entry in /etc/hosts which points to your server, like so:

127.0.0.1  jason.ubuntu

And then put "gitorious_host: jason.ubuntu" in gitorious.yml

Cheers,
- Marius
Reply all
Reply to author
Forward
0 new messages