Topic: Re-creation of SOGo view fails
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
1.4.0 MARIADB edition.
- Deployed with iRedMail Easy or the downloadable installer?
downloadable installer
- Linux/BSD distribution name and version: Debian 10
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi, I'm trying to upgrade from 1.4.0 to 1.4.1 (https://docs.iredmail.org/upgrade.iredm … 1.4.1.html) and I'm stuck at the step "For MySQL and MariaDB backends" in particular at the re-creation of SOGo view.
When I perform "mysql sogo < /tmp/sogo.mysql", MySQL return this errror:
root@mail2:~# mysql sogo < /tmp/sogo.mysql
ERROR 4092 (42S02) at line 1: Unknown VIEW: 'sogo.users'
I'm attaching the full logs/commands executed:
# Step Add new SQL columns in vmail.mailbox table for per-user SOGo webmail / calendar / activesync service control
root@mail2:~# wget -O /tmp/iredmail.mysql [url]https://github.com/iredmail/iRedMail/raw/1.4.1/update/1.4.1/iredmail.mysql[/url]
--2021-09-08 12:02:15-- [url]https://github.com/iredmail/iRedMail/raw/1.4.1/update/1.4.1/iredmail.mysql[/url]
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: [url]https://raw.githubusercontent.com/iredmail/iRedMail/1.4.1/update/1.4.1/iredmail.mysql[/url] [following]
--2021-09-08 12:02:15-- [url]https://raw.githubusercontent.com/iredmail/iRedMail/1.4.1/update/1.4.1/iredmail.mysql[/url]
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.111.133, 185.199.108.133, 185.199.109.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 289 [text/plain]
Saving to: '/tmp/iredmail.mysql'
/tmp/iredmail.mysql 100%[=============================================================================>] 289 --.-KB/s in 0s
2021-09-08 12:02:16 (6.05 MB/s) - '/tmp/iredmail.mysql' saved [289/289]
root@mail2:~# mysql vmail < /tmp/iredmail.mysql
root@mail2:~# rm -f /tmp/iredmail.mysql
# Step SOGo: Re-create SQL VIEW and update config file
root@mail2:~# wget -O /tmp/sogo.mysql [url]https://github.com/iredmail/iRedMail/raw/1.4.1/update/1.4.1/sogo.mysql[/url]
--2021-09-08 12:02:23-- [url]https://github.com/iredmail/iRedMail/raw/1.4.1/update/1.4.1/sogo.mysql[/url]
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: [url]https://raw.githubusercontent.com/iredmail/iRedMail/1.4.1/update/1.4.1/sogo.mysql[/url] [following]
--2021-09-08 12:02:24-- [url]https://raw.githubusercontent.com/iredmail/iRedMail/1.4.1/update/1.4.1/sogo.mysql[/url]
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.110.133, 185.199.111.133, 185.199.108.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 373 [text/plain]
Saving to: '/tmp/sogo.mysql'
/tmp/sogo.mysql 100%[=============================================================================>] 373 --.-KB/s in 0s
2021-09-08 12:02:24 (9.28 MB/s) - '/tmp/sogo.mysql' saved [373/373]
root@mail2:~# mysql sogo < /tmp/sogo.mysql
ERROR 1054 (42S22) at line 3: Unknown column 'enablesogo' in 'where clause'
root@mail2:~# rm -f /tmp/sogo.mysql
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.