ArchipelProject / Archipel

XMPP Based Orchestrator
http://archipelproject.org
GNU Affero General Public License v3.0
803 stars 127 forks source link

Web frontent signing out again immediately #1035

Closed michael-borkowski closed 10 years ago

michael-borkowski commented 10 years ago

My web client instance signs out of the XMPP server (almost) immediately after login. Here is what happens:

  1. I Sign in to the server (http/https both have the same effect)
  2. The site loads, I see the menu on the left and the top bar, I also see the welcome message
  3. After 1-2 seconds after the site has loaded, the login box re-appears in the main view (beneath the welcome message if I don't close it)
  4. After that, the left and top bars disappear and the login box "moves" to the whole view

I have already reinstalled and reconfigured my XMPP server and have no contacts. I have also tried the archipel-hosted web client with the same result.

The strange thing is that Archipel has already worked. Not sure what is causing the problems now.

Here is what I saw in the ejabberd logs:

=INFO REPORT==== 2014-02-13 20:03:15 ===
I(<0.375.0>:ejabberd_listener:281) : (#Port<0.3322>) Accepted connection {{84,112,xxx,155},55887} -> {{146,255,xxx,212},5281}

=INFO REPORT==== 2014-02-13 20:03:15 ===
I(<0.405.0>:ejabberd_http:143) : started: {tls,
                                           {tlssock,#Port<0.3322>,
                                            #Port<0.3323>}}

=INFO REPORT==== 2014-02-13 20:03:31 ===
I(<0.409.0>:ejabberd_c2s:785) : ({socket_state,ejabberd_http_bind,{http_bind,<0.408.0>,{{84,112,xxx,155},55884}},ejabberd_http_bind}) Accepted authentication for admin by []

=INFO REPORT==== 2014-02-13 20:03:31 ===
I(<0.409.0>:ejabberd_c2s:938) : ({socket_state,ejabberd_http_bind,{http_bind,<0.408.0>,{{84,112,xxx,155},55884}},ejabberd_http_bind}) Opened session for admin@xxx.xxx.at/ArchipelController

=INFO REPORT==== 2014-02-13 20:03:31 ===
I(<0.403.0>:ejabberd_c2s:1483) : ({socket_state,ejabberd_http_bind,{http_bind,<0.402.0>,{{84,112,xxx,155},55884}},ejabberd_http_bind}) Replaced session for admin@xxx.xxx.at/ArchipelController

=INFO REPORT==== 2014-02-13 20:03:31 ===
I(<0.375.0>:ejabberd_listener:281) : (#Port<0.3341>) Accepted connection {{84,112,xxx,155},55915} -> {{146,255,xxx,212},5281}

=INFO REPORT==== 2014-02-13 20:03:31 ===
I(<0.410.0>:ejabberd_http:143) : started: {tls,
                                           {tlssock,#Port<0.3341>,
                                            #Port<0.3342>}}

Maybe the "replaced session for..." has got something to do with it?

What can I provide to further diagnose the problem?

Thanks for the work, I really liked Archipel so far until this issue occured!

CyrilPeponnet commented 10 years ago

There two potential reasons for this behavior:

1 - You may have a jabber client reconnecting automatically, so your session is dropped.

2 - It could also be related to #973 and as the preferences are stored to the XMPP server...

So you can try to get logged on with another user to see if it occurs again. And also disable the welcome view pluggin on you client to reset the settings from the interface. (There is also a way to reset the presences directly on the XMPP server but I don't remember how :p)

michael-borkowski commented 10 years ago

Disabling the GeneralWelcomeView in modules.plist fixed the issue. The welcome screen still shows (or is that something different?) though, but at least there is no signout. Was that the correct way to disable the module? Also, re-enabling the module causes the error to re-appear. I suspect that if I build the client from sources, the newest fix will be included and this error doesn't occur anymore?

Thank you for your support! I love the fact that I'm able to use Archipel again :-)

CyrilPeponnet commented 10 years ago

You're right, you can download niglies as building the UI is not simple. Give a try but it seems that the building bot is not working well for now.

Nowaker commented 10 years ago

@michael-borkowski Just note that nightlies don't currently build. #1028