1 (edited by bananafish 2018-02-24 12:38:20)

Topic: Trying to upgrade 0.9.6 to 0.9.7

======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.6
- Linux/BSD distribution name and version: Debian 8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

I am trying to upgrade my iredmail server from 0.9.6 to 0.9.7, I am at the part to run migrate_sql_alias_table.py and I am getting this error:

root@mail:/root# python migrate_sql_alias_table.py
* Read SQL username/password from iRedAdmin config file: /opt/www/iredadmin/settings.pyc
* Backend: mysql
Traceback (most recent call last):
  File "migrate_sql_alias_table.py", line 65, in <module>
    records = db.select('alias', what='address,goto,moderators,domain,active,islist,is_alias')
  File "/usr/lib/python2.7/dist-packages/web/db.py", line 682, in select
    return self.query(qout, processed=True)
  File "/usr/lib/python2.7/dist-packages/web/db.py", line 644, in query
    self._db_execute(db_cursor, sql_query)
  File "/usr/lib/python2.7/dist-packages/web/db.py", line 587, in _db_execute
    out = cur.execute(query, params)
  File "/usr/lib/python2.7/dist-packages/MySQLdb/cursors.py", line 174, in execute
    self.errorhandler(self, exc, value)
  File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
    raise errorclass, errorvalue
_mysql_exceptions.OperationalError: (1054, "Unknown column 'is_alias' in 'field list'")

I have searched and cannot find anything else like this issue.  Where can I go from here? Thanks


I should also state for this upgrade I have just upgraded to iRedAPD2.1 and iRedAdmin0.8, and that went okay, its just the script is failing.

----

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

2

Re: Trying to upgrade 0.9.6 to 0.9.7

bananafish wrote:

_mysql_exceptions.OperationalError: (1054, "Unknown column 'is_alias' in 'field list'")

SQL column "alias.is_alias" was introduced in iRedMail-0.9.3, seems you missed some steps while upgrading.
https://docs.iredmail.org/upgrade.iredm … nd-special

3

Re: Trying to upgrade 0.9.6 to 0.9.7

ZhangHuangbin wrote:
bananafish wrote:

_mysql_exceptions.OperationalError: (1054, "Unknown column 'is_alias' in 'field list'")

SQL column "alias.is_alias" was introduced in iRedMail-0.9.3, seems you missed some steps while upgrading.
https://docs.iredmail.org/upgrade.iredm … nd-special

I see, so if I add is_alias (and any other column I missed back then).  Just so the script works.  I should be okay, correct? Since the columns are being dropped anyhow.

4

Re: Trying to upgrade 0.9.6 to 0.9.7

You must apply all SQL structure related changes for your old iRedMail release during upgrading.
Do not skip any new releases while upgrading.

FYI: https://docs.iredmail.org/iredmail.rele … ding-works