主题: 登录报错:会话无效或已过期
==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.92
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):MySQL
- 使用的 Linux/BSD 发行版名称及版本号:CentOS Linux release 7.0.1406
- 与您的问题相关的日志信息:
张工你好,我搭建的0。92版本已经成功,但在登录roundcubemail和iredadmin时候都出现会话超时的情况,超时时间不定,登录立即提示会话无效或已过期的也有,等1.2分钟才断的也有,等很久才断的也有,我尝试修改过php.ini 和 roundcubemail里面的session timeout等相关设置,也不生效,因为iredadmin也出现这种情况,感觉不是配置问题,查过log没有看到实时出现的报错,但有少量session相关写mysql的报错,求协助处理,谢谢张大神
====
tail -f /var/log/maillog
Sep 6 10:47:16 mx clamd[893]: SelfCheck: Database status OK.
Sep 6 10:54:39 mx roundcube: <fvkhv0tu> DB Error: [1062] Duplicate entry 'fvkhv0tuvdskni5lruqbvpqiu5' for key 'PRIMARY' (SQL Query: INSERT INTO `session` (`sess_id`, `vars`, `ip`, `created`, `changed`) VALUES ('fvkhv0tuvdskni5lruqbvpqiu5', 'dGVtcHxiOjE7bGFuZ3VhZ2V8czo1OiJ6aF9DTiI7', '116.22.XXX.XXX', now(), now())) in /var/www/roundcubemail-1.1.1/program/lib/Roundcube/rcube_db.php on line 543 (GET /mail/?_task=mail&_remote=1&_unlock=0&_action=getunread&_=1441508088060)
Sep 6 10:57:16 mx clamd[893]: SelfCheck: Database status OK.
Sep 6 11:00:17 mx roundcube: <a6b1ndln> DB Error: [1062] Duplicate entry 'a6b1ndlnpqaqgp4pjnprjf6ud6' for key 'PRIMARY' (SQL Query: INSERT INTO `session` (`sess_id`, `vars`, `ip`, `created`, `changed`) VALUES ('a6b1ndlnpqaqgp4pjnprjf6ud6', 'bGFuZ3VhZ2V8czo1OiJ6aF9DTiI7dGVtcHxiOjE7c2tpbnxzOjU6ImxhcnJ5Ijs=', '116.22.XXX.XXX', now(), now())) in /var/www/roundcubemail-1.1.1/program/lib/Roundcube/rcube_db.php on line 543 (GET /mail/?_task=mail&_refresh=1&_mbox=INBOX&_remote=1&_unlock=loading1441508427412&_action=list&_=1441508426366)
tail -f uwsgi.log
mail.XXX.net [pid: 10248|app: 0|req: 17/17] 116.22.XXX.XXX () {50 vars in 947 bytes} [Sun Sep 6 11:16:39 2015] GET /iredadmin/domains => generated 13 bytes in 3 msecs (HTTP/1.1 303) 3 headers in 251 bytes (2 switches on core 0)
mail.XXX.net [pid: 10248|app: 0|req: 18/18] 116.22.XXX.XXX () {50 vars in 930 bytes} [Sun Sep 6 11:16:39 2015] GET /iredadmin/login?msg=SESSION_EXPIRED => generated 5022 bytes in 211 msecs (HTTP/1.1 200) 1 headers in 111 bytes (2 switches on core 0)