1

Topic: internal server error fresh install

==== Required information ====
- iRedMail version: 0.8.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: centos 6
- Related log if you're reporting an issue:
====
Hi,
I did the fresh install of iredmail LDAP and as I try to connect i get
internal server error for iredadmin
and
DATABASE ERROR: CONNECTION FAILED! for roundcube

I've check mysql databases and there seems they are absent.

In apache log I can see:

 Traceback (most recent call last):
   File "/usr/lib/python2.6/site-packages/web/application.py", line 237, in process
     return p(lambda: process(processors))
   File "/usr/lib/python2.6/site-packages/web/session.py", line 84, in _processor
     self._cleanup()
   File "/usr/lib/python2.6/site-packages/web/session.py", line 172, in _cleanup
     self.store.cleanup(timeout)
   File "/usr/lib/python2.6/site-packages/web/session.py", line 319, in cleanup
     self.db.delete(self.table, where="$last_allowed_time > atime", vars=locals())
   File "/usr/lib/python2.6/site-packages/web/db.py", line 906, in delete
     db_cursor = self._db_cursor()
   File "/usr/lib/python2.6/site-packages/web/db.py", line 566, in _db_cursor
     return self.ctx.db.cursor()
   File "/usr/lib/python2.6/site-packages/web/db.py", line 507, in _getctx
     self._load_context(self._ctx)
   File "/usr/lib/python2.6/site-packages/web/db.py", line 518, in _load_context
     ctx.db = self._connect(self.keywords)
   File "/usr/lib/python2.6/site-packages/web/db.py", line 546, in _connect
     return self.db_module.connect(**keywords)
   File "/usr/lib64/python2.6/site-packages/MySQLdb/__init__.py", line 81, in Connect
     return Connection(*args, **kwargs)
   File "/usr/lib64/python2.6/site-packages/MySQLdb/connections.py", line 187, in __init__
     super(Connection, self).__init__(*args, **kwargs2)
 OperationalError: (1045, "Access denied for user 'iredadmin'@'localhost' (using password: YES)")
 


 Traceback (most recent call last):
   File "/usr/lib/python2.6/site-packages/web/application.py", line 237, in process
     return p(lambda: process(processors))
   File "/usr/lib/python2.6/site-packages/web/session.py", line 84, in _processor
     self._cleanup()
   File "/usr/lib/python2.6/site-packages/web/session.py", line 172, in _cleanup
     self.store.cleanup(timeout)
   File "/usr/lib/python2.6/site-packages/web/session.py", line 319, in cleanup
     self.db.delete(self.table, where="$last_allowed_time > atime", vars=locals())
   File "/usr/lib/python2.6/site-packages/web/db.py", line 906, in delete
     db_cursor = self._db_cursor()
   File "/usr/lib/python2.6/site-packages/web/db.py", line 566, in _db_cursor
     return self.ctx.db.cursor()
   File "/usr/lib/python2.6/site-packages/web/db.py", line 507, in _getctx
     self._load_context(self._ctx)
   File "/usr/lib/python2.6/site-packages/web/db.py", line 518, in _load_context
     ctx.db = self._connect(self.keywords)
   File "/usr/lib/python2.6/site-packages/web/db.py", line 546, in _connect
     return self.db_module.connect(**keywords)
   File "/usr/lib64/python2.6/site-packages/MySQLdb/__init__.py", line 81, in Connect
     return Connection(*args, **kwargs)
   File "/usr/lib64/python2.6/site-packages/MySQLdb/connections.py", line 187, in __init__
     super(Connection, self).__init__(*args, **kwargs2)
 OperationalError: (1045, "Access denied for user 'iredadmin'@'localhost' (using password: YES)")
 
 Traceback (most recent call last):
   File "/usr/lib/python2.6/site-packages/web/application.py", line 237, in process
     return p(lambda: process(processors))
   File "/usr/lib/python2.6/site-packages/web/session.py", line 84, in _processor
     self._cleanup()
   File "/usr/lib/python2.6/site-packages/web/session.py", line 172, in _cleanup
     self.store.cleanup(timeout)
   File "/usr/lib/python2.6/site-packages/web/session.py", line 319, in cleanup
     self.db.delete(self.table, where="$last_allowed_time > atime", vars=locals())
   File "/usr/lib/python2.6/site-packages/web/db.py", line 906, in delete
     db_cursor = self._db_cursor()
   File "/usr/lib/python2.6/site-packages/web/db.py", line 566, in _db_cursor
     return self.ctx.db.cursor()
   File "/usr/lib/python2.6/site-packages/web/db.py", line 507, in _getctx
     self._load_context(self._ctx)
   File "/usr/lib/python2.6/site-packages/web/db.py", line 518, in _load_context
     ctx.db = self._connect(self.keywords)
   File "/usr/lib/python2.6/site-packages/web/db.py", line 546, in _connect
     return self.db_module.connect(**keywords)
   File "/usr/lib64/python2.6/site-packages/MySQLdb/__init__.py", line 81, in Connect
     return Connection(*args, **kwargs)
   File "/usr/lib64/python2.6/site-packages/MySQLdb/connections.py", line 187, in __init__
     super(Connection, self).__init__(*args, **kwargs2)
 OperationalError: (1045, "Access denied for user 'iredadmin'@'localhost' (using password: YES)")
 
 Traceback (most recent call last):
   File "/usr/lib/python2.6/site-packages/web/application.py", line 237, in process
     return p(lambda: process(processors))
   File "/usr/lib/python2.6/site-packages/web/session.py", line 84, in _processor
     self._cleanup()
   File "/usr/lib/python2.6/site-packages/web/session.py", line 172, in _cleanup
     self.store.cleanup(timeout)
   File "/usr/lib/python2.6/site-packages/web/session.py", line 319, in cleanup
     self.db.delete(self.table, where="$last_allowed_time > atime", vars=locals())
   File "/usr/lib/python2.6/site-packages/web/db.py", line 906, in delete
     db_cursor = self._db_cursor()
   File "/usr/lib/python2.6/site-packages/web/db.py", line 566, in _db_cursor
     return self.ctx.db.cursor()
   File "/usr/lib/python2.6/site-packages/web/db.py", line 507, in _getctx
     self._load_context(self._ctx)
   File "/usr/lib/python2.6/site-packages/web/db.py", line 518, in _load_context
     ctx.db = self._connect(self.keywords)
   File "/usr/lib/python2.6/site-packages/web/db.py", line 546, in _connect
     return self.db_module.connect(**keywords)
   File "/usr/lib64/python2.6/site-packages/MySQLdb/__init__.py", line 81, in Connect
     return Connection(*args, **kwargs)
   File "/usr/lib64/python2.6/site-packages/MySQLdb/connections.py", line 187, in __init__
     super(Connection, self).__init__(*args, **kwargs2)
 OperationalError: (1045, "Access denied for user 'iredadmin'@'localhost' (using password: YES)")
 

How can I re-initiate databases manually ?
Or is it any other error

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: internal server error fresh install

Looks like your iRedMail installation was not completed successfully. Did you see any error message in the terminal during installation process?

It's better to re-install OS then install iRedMail to fix this issue if you don't have any accounts/mailboxes on this server.