Skip to content
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

failed_to_create_web_session #612

Closed
CorneliusC opened this issue May 13, 2019 · 6 comments
Closed

failed_to_create_web_session #612

CorneliusC opened this issue May 13, 2019 · 6 comments

Comments

@CorneliusC
Copy link

Sympa 6.2.42 (Firefox 65.0.2 / Chrome Version 73.0.3683.75)

We have a problem when using the sympa webinterface. Our system contains sympa vhosts for different maildomains. We have an base domain "example.de" and then different subdomains for the vhost-Webinterface for example "server01.example.de" and then "listname.list.example.de".

Sometimes, I don't have figured out when and why yet, I get several listmaster notification when using the webinterface with the subject "Listmaster / failed_to_create_web_session". The problems I got, when this notification comes up is, I can't add subscriber to lists and I can't create new lists for example.

In the Logs I can see this:

May 13 08:00:45 server01 wwsympa[104004]: debug2 Sympa::List::get_robots()
May 13 08:00:45 server01 wwsympa[104004]: debug main::_split_params() PATH_INFO: /home
May 13 08:00:45 server01 wwsympa[104004]: debug2 main::_split_params() Debug level 0
May 13 08:00:45 server01 wwsympa[104004]: debug Sympa::WWW::Session::new(abc.example.de, af0c382f188151084eeb5677ed2e3d82dd, home)
May 13 08:00:45 server01 wwsympa[104004]: debug2 Sympa::WWW::Session::load(Sympa::WWW::Session, af0c382f188151084eeb5677ed2e3d82dd)
May 13 08:00:45 server01 wwsympa[104004]: info Sympa::WWW::Session::load() Undefined session ID in cookie "af0c382f188151084eeb5677ed2e3d82dd"
May 13 08:00:45 server01 wwsympa[104004]: debug2 Sympa::send_notify_to_listmaster(abc.example.de, failed_to_create_web_session, HASH)
May 13 08:00:45 server01 wwsympa[104004]: debug2 Sympa::Tools::SMIME::find_keys(abc.example.de, sign)
May 13 08:00:45 server01 wwsympa[104004]: debug2 Sympa::Message::Template::_new_from_template(Sympa::Message::Template, abc.example.de, listmaster_notification.tt2, ARRAY, HASH)
May 13 08:00:45 server01 wwsympa[104004]: debug2 Sympa::Message::new(Sympa::Message::Template, ...)
May 13 08:00:45 server01 wwsympa[104004]: notice Sympa::Spindle::ProcessTemplate::_twist() Processing Sympa::Message::Template <[email protected],7649>; envelope_sender=[email protected]; [email protected]; recipients=ARRAY; sender=[email protected]; template=listmaster_notification; type=failed_to_create_web_session

So I checked the cookies in the browser an there is something strange. I have one cookie with an Size 47 which is has this "af0c382f188151084eeb5677ed2e3d82dd" ID. And one other with an size of 27. When I manually remove the first cookie from the browser, everything works again until some point in the future when another of this problem-cookie occurs.

sympa chrome cookie_2

I already tried to check the files like Session.pm, but I can't figure out where this other cookie comes from and what could be the problem. Do you have any hint?

We use ldap authentification (SSL_CLIENT_S_DN) to access the interface.

@CorneliusC
Copy link
Author

This was the first log entry:

May 13 07:48:48 server01 wwsympa[102845]: debug main::_split_params() [robot example.de] [client 153.96.12.26] Incoming parameter: subaction=
May 13 07:48:48 server01 wwsympa[102845]: debug Sympa::WWW::Session::new(example.de, af0c382f188151084eeb5677ed2e3d82dd, serveradmin)
May 13 07:48:48 server01 wwsympa[102845]: debug2 Sympa::WWW::Session::load(Sympa::WWW::Session, af0c382f188151084eeb5677ed2e3d82dd)
May 13 07:48:48 server01 wwsympa[102845]: info Sympa::WWW::Session::load() Undefined session ID in cookie "af0c382f188151084eeb5677ed2e3d82dd"

@racke
Copy link
Contributor

racke commented May 13, 2019

Cookies for .example.de are valid for subdomains. So if there is also an cookie issued for the subdomain, both are present and causing trouble.

@CorneliusC
Copy link
Author

Ok, than it is more an webserver issue? (Apache)

@CorneliusC
Copy link
Author

@racke
Copy link
Contributor

racke commented May 13, 2019

Did you change the cookie domain for the separate Sympa robots / virtual servers?

@CorneliusC
Copy link
Author

No.
Thats my /etc/sympa/sympa.conf:

 ## HTTP cookies validity domain
cookie_domain   localhost
## HTTP cookies lifetime
cookie_expire   0
cookie_refresh  60

And that was my robot.conf:

## cookie_domain;

So I assume it must be something like:
cookie_domain .example.de

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants