Gerrit: Session Cookie not available

968 views
Skip to first unread message

Patrick

unread,
Jun 5, 2012, 5:34:39 AM6/5/12
to Repo and Gerrit Discussion
Hello,

I have installed gerrit-2.4 on Ubuntu 12.04LTS following the
instructions at http://gerrit.googlecode.com/svn/documentation/2.2.1/install.html.
I use postgresql as database and LDAP for authentification. For java I
use openjdk-6. The installation seem to work, but whenever I try to
log into the system I get the warning: Session cookie not available.
What does this mean? Is there any way to get rid of this message?

Regards,
Patrick

Saša Živkov

unread,
Jun 6, 2012, 7:50:29 AM6/6/12
to Patrick, Repo and Gerrit Discussion
On Tue, Jun 5, 2012 at 11:34 AM, Patrick <patrick....@gmail.com> wrote:
> Hello,
>
> I have installed gerrit-2.4 on Ubuntu 12.04LTS following the
> instructions at http://gerrit.googlecode.com/svn/documentation/2.2.1/install.html.
> I use postgresql as database and LDAP for authentification. For java I
> use openjdk-6. The installation seem to work, but whenever I try to
> log into the system I get the warning: Session cookie not available.
> What does this mean?

Technically, it means that the HTTP request sent from your web browser didn't
contain the "GerritAccount" cookie.

> Is there any way to get rid of this message?
Have you disabled cookies in your web browser?
Can you verify that your browser receives the GerritAccount cookie
and that it also sends it back to Gerrit?
You could use Firefox with Firebug plugin to check the sent/received cookies.

>
> Regards,
> Patrick
>
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en

Luca Milanesio

unread,
Jun 6, 2012, 8:11:03 AM6/6/12
to Saša Živkov, Patrick, Repo and Gerrit Discussion
Hi Sasa,
we need to be careful as this regression was there since 2.3 and the Mylyn/Gerrit plug-in makes the assumption on this bug :-(
(do you know anybody in that project as well ? They are from TaskTop)

Apart from the noisy warning message on the UI, there are no side-effects so far.

Luca.

Saša Živkov

unread,
Jun 6, 2012, 8:37:06 AM6/6/12
to Luca Milanesio, Patrick, Repo and Gerrit Discussion
On Wed, Jun 6, 2012 at 2:11 PM, Luca Milanesio <luca.mi...@gmail.com> wrote:
> Hi Sasa,
> we need to be careful as this regression was there since 2.3 and the Mylyn/Gerrit plug-in makes the assumption on this bug :-(

Hmm.. do we have a proof that this is a bug in Gerrit 2.4?
We upgraded our internal Gerrit server to 2.4 and no one of our users
reported this issue.
I also can't reproduce it in my test environment.

If it also happens on your system please check the cookies sent
between Gerrit and your web browser.
Look for the "GerritAccount" cookie.

Saša Živkov

unread,
Jun 6, 2012, 9:20:19 AM6/6/12
to Luca Milanesio, Patrick, Repo and Gerrit Discussion
On Wed, Jun 6, 2012 at 2:37 PM, Saša Živkov <ziv...@gmail.com> wrote:
> On Wed, Jun 6, 2012 at 2:11 PM, Luca Milanesio <luca.mi...@gmail.com> wrote:
>> Hi Sasa,
>> we need to be careful as this regression was there since 2.3 and the Mylyn/Gerrit plug-in makes the assumption on this bug :-(
>
> Hmm.. do we have a proof that this is a bug in Gerrit 2.4?
> We upgraded our internal Gerrit server to 2.4 and no one of our users
> reported this issue.
> I also can't reproduce it in my test environment.

Sorry for my previous answer, I was blind for this message in the Sign
In dialog.
I was under assumption that this is something that prevents sign-in.

Basically, this is only a message telling that the session cookie is missing
which means you have to sign in again. It might sound too technical but there
is nothing wrong.

Saša

Luca Milanesio

unread,
Jun 6, 2012, 9:27:44 AM6/6/12
to Saša Živkov, Patrick, Repo and Gerrit Discussion
Yep, no technical issues ... just annoying message in the login box :-(

Luca.

Chad Horohoe

unread,
Jun 6, 2012, 9:30:09 AM6/6/12
to Saša Živkov, Repo and Gerrit Discussion
On Wed, Jun 6, 2012 at 9:20 AM, Saša Živkov <ziv...@gmail.com> wrote:
> On Wed, Jun 6, 2012 at 2:37 PM, Saša Živkov <ziv...@gmail.com> wrote:
>> On Wed, Jun 6, 2012 at 2:11 PM, Luca Milanesio <luca.mi...@gmail.com> wrote:
>>> Hi Sasa,
>>> we need to be careful as this regression was there since 2.3 and the Mylyn/Gerrit plug-in makes the assumption on this bug :-(
>>
>> Hmm.. do we have a proof that this is a bug in Gerrit 2.4?
>> We upgraded our internal Gerrit server to 2.4 and no one of our users
>> reported this issue.
>> I also can't reproduce it in my test environment.
>
> Sorry for my previous answer, I was blind for this message in the Sign
> In dialog.
> I was under assumption that this is something that prevents sign-in.
>
> Basically, this is only a message telling that the session cookie is missing
> which means you have to sign in again. It might sound too technical but there
> is nothing wrong.
>

If it's harmless and we're already *on* the login screen, we should
just not show the message at all. I've had more than one user ask
me if something's wrong, to which I've said "No, just ignore that."

-Chad

Shawn Pearce

unread,
Jun 6, 2012, 10:28:22 AM6/6/12
to Chad Horohoe, Saša Živkov, Repo and Gerrit Discussion
This error message came about to alert the user that he was stuck in a
loop with the sign-in process. It was only supposed to display if the
server suspected it set the GerritAccount cookie and redirected the
user, but on redirect the cookie wasn't there anymore. E.g. because
the browser ate the cookie.
Reply all
Reply to author
Forward
0 new messages