When trying to log into a fresh roundcube 0.9rc installation I'm always getting an "Invalid request! No data was saved." error. How can I debug what is going on here? I have already enabled logging with the following settings:
$rcmail_config['debug_level'] = 1; $rcmail_config['log_driver'] = 'file'; $rcmail_config['smtp_log'] = true; $rcmail_config['log_logins'] = true; $rcmail_config['log_session'] = true; $rcmail_config['sql_debug'] = true; $rcmail_config['imap_debug'] = true; $rcmail_config['ldap_debug'] = true; $rcmail_config['smtp_debug'] = true;
The only this that is logged is the following to the sql log (I'm using sqlite):
[11-Mar-2013 10:15:09 +0100]: [1] SELECT vars, ip, changed FROM session WHERE sess_id = 'f323pb6b4mnu9gbkl2datv5783'; [11-Mar-2013 10:15:09 +0100]: [2] DELETE FROM session WHERE sess_id = 'f323pb6b4mnu9gbkl2datv5783'; [11-Mar-2013 10:15:09 +0100]: [3] DELETE FROM session WHERE sess_id = 'f323pb6b4mnu9gbkl2datv5783'; [11-Mar-2013 10:15:09 +0100]: [4] INSERT INTO session (sess_id, vars, ip, created, changed) VALUES ('f323pb6b4mnu9gbkl2datv5783', 'bGFuZ3VhZ2V8czo1OiJlbl9VUyI7dGVtcHxiOjE7c2tpbnxzOjU6ImxhcnJ5Ijs=', '10.0.4.100', '2013-03-11 10:15:09', '2013-03-11 10:15:09');
Is there any way to get more detailed logs so I can see what the actual problem is? I've already tried raising debug_level to 8 to no avail.
Is the logs directory of your roundcube installation writable by your apache user ?
the logs usually are here, but this directory have to be writable to the user running the web server.
regards,
S.B.
Le 11/03/2013 10:28, Guido Berhoerster a écrit :
When trying to log into a fresh roundcube 0.9rc installation I'm always getting an "Invalid request! No data was saved." error. How can I debug what is going on here? I have already enabled logging with the following settings:
$rcmail_config['debug_level'] = 1; $rcmail_config['log_driver'] = 'file'; $rcmail_config['smtp_log'] = true; $rcmail_config['log_logins'] = true; $rcmail_config['log_session'] = true; $rcmail_config['sql_debug'] = true; $rcmail_config['imap_debug'] = true; $rcmail_config['ldap_debug'] = true; $rcmail_config['smtp_debug'] = true;
The only this that is logged is the following to the sql log (I'm using sqlite):
[11-Mar-2013 10:15:09 +0100]: [1] SELECT vars, ip, changed FROM session WHERE sess_id = 'f323pb6b4mnu9gbkl2datv5783'; [11-Mar-2013 10:15:09 +0100]: [2] DELETE FROM session WHERE sess_id = 'f323pb6b4mnu9gbkl2datv5783'; [11-Mar-2013 10:15:09 +0100]: [3] DELETE FROM session WHERE sess_id = 'f323pb6b4mnu9gbkl2datv5783'; [11-Mar-2013 10:15:09 +0100]: [4] INSERT INTO session (sess_id, vars, ip, created, changed) VALUES ('f323pb6b4mnu9gbkl2datv5783', 'bGFuZ3VhZ2V8czo1OiJlbl9VUyI7dGVtcHxiOjE7c2tpbnxzOjU6ImxhcnJ5Ijs=', '10.0.4.100', '2013-03-11 10:15:09', '2013-03-11 10:15:09');
Is there any way to get more detailed logs so I can see what the actual problem is? I've already tried raising debug_level to 8 to no avail.
Is the logs directory of your roundcube installation writable by your apache user ?
the logs usually are here, but this directory have to be writable to the user running the web server.
I'm not using apache but the logs directory is owned by the same user the server runs as and in fact the sql log that I cited was created there. The actual problem was that the server was corrupting request variables so that the request token went missing. I only found out after looking through the code and inserting my own debug statements here and there, the built-in logging mechanisms simply does not log anything in this case making it very hard to diagnose what's going on.