Well. I did not.
Do not try to do the same thing on a production server! This could brake your installation, so if you want to run it…
Backup before burden
Or simply… don’t do it.
After an little search i tried to… run down the hill for an update from 3.6.0 to 4.0. So, here we go.
Source:
With these instructions the 4.0.x repo of Zammad can be installed into sistem.
sudo wget -O /etc/yum.repos.d/zammad.repo \
https://dl.packager.io/srv/zammad/zammad/stable-4.0/installer/el/7.repo
Output
[root@nethtest01 ~]# sudo wget -O /etc/yum.repos.d/zammad.repo \
https://dl.packager.io/srv/zammad/zammad/stable-4.0/installer/el/7.repo
--2021-10-09 16:14:16-- https://dl.packager.io/srv/zammad/zammad/stable-4.0/installer/el/7.repo
Resolving dl.packager.io (dl.packager.io)... 178.63.71.248
Connecting to dl.packager.io (dl.packager.io)|178.63.71.248|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: ‘/etc/yum.repos.d/zammad.repo’
[ <=> ] 279 --.-K/s in 0s
2021-10-09 16:14:16 (16.8 MB/s) - ‘/etc/yum.repos.d/zammad.repo’ saved [279]
But instead of running the install, i prefered an… update.
[root@nethtest01 ~]# yum update
Loaded plugins: changelog, fastestmirror, nethserver_events
Loading mirror speeds from cached hostfile
* ce-base: mirrors.prometeus.net
* ce-extras: mirrors.prometeus.net
* ce-sclo-rh: mirrors.prometeus.net
* ce-sclo-sclo: mirrors.prometeus.net
* ce-updates: mirrors.prometeus.net
* epel: ftp.plusline.net
* nethforge: mrmarkuz.dynu.net
* nethserver-base: mrmarkuz.dynu.net
* nethserver-updates: mrmarkuz.dynu.net
zammad/x86_64/signature | 473 B 00:00:00
zammad/x86_64/signature | 1.3 kB 00:00:00
zammad/x86_64/primary | 3.2 kB 00:00:00
zammad 7/7
Resolving Dependencies
--> Running transaction check
---> Package zammad.x86_64 0:3.6.0-1614852413.9a3a289a.centos7 will be updated
---> Package zammad.x86_64 0:4.0.1-1625488687.c4fbc989.centos7 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
===========================================================================================================================================================================================================
Package Arch Version Repository Size
===========================================================================================================================================================================================================
Updating:
zammad x86_64 4.0.1-1625488687.c4fbc989.centos7 zammad 120 M
Transaction Summary
===========================================================================================================================================================================================================
Upgrade 1 Package
Total download size: 120 M
Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for zammad
zammad-4.0.1-1625488687.c4fbc989.centos7.x86_64.rpm | 120 MB 00:00:33
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : zammad-4.0.1-1625488687.c4fbc989.centos7.x86_64 1/2
# (Re)creating init scripts
Nothing to do.
Nothing to do.
Nothing to do.
# Enabling Zammad on boot
# Stopping Zammad
# database.yml found. Updating db...
== 20201013095141 ElasticSearchLower65Obsolete: migrating =====================
== 20201013095141 ElasticSearchLower65Obsolete: migrated (0.0133s) ============
== 20201110000001 MentionInit: migrating ======================================
-- create_table(:mentions)
-> 0.1921s
-- add_index(:mentions, [:mentionable_id, :mentionable_type, :user_id], {:unique=>true, :name=>"index_mentions_mentionable_user"})
-> 0.0030s
-- add_foreign_key(:mentions, :users, {:column=>:created_by_id})
-> 0.0409s
-- add_foreign_key(:mentions, :users, {:column=>:updated_by_id})
-> 0.0023s
-- add_foreign_key(:mentions, :users, {:column=>:user_id})
-> 0.0021s
== 20201110000001 MentionInit: migrated (0.6790s) =============================
== 20201111133905 MaintenanceAssociationsCleanup: migrating ===================
-- remove_reference(:templates, :user, {:index=>true, :foreign_key=>true})
-> 0.0270s
-- remove_reference(:text_modules, :user, {:index=>true, :foreign_key=>true})
-> 0.0103s
== 20201111133905 MaintenanceAssociationsCleanup: migrated (0.0384s) ==========
== 20201118140850 Issue2671PendingTillCanBeChangedByCustomer: migrating =======
== 20201118140850 Issue2671PendingTillCanBeChangedByCustomer: migrated (0.0330s)
== 20201201000001 SettingAddSenderFormatAgentName: migrating ==================
== 20201201000001 SettingAddSenderFormatAgentName: migrated (0.0168s) =========
== 20201202080338 Issue3270SelectorUpdate: migrating ==========================
== 20201202080338 Issue3270SelectorUpdate: migrated (0.0851s) =================
== 20201210075534 MaintenanceMissingKbUniqueIndexes: migrating ================
-- add_index(:knowledge_base_locales, [:system_locale_id, :knowledge_base_id], {:name=>"index_kb_locale_on_kb_system_locale_kb", :unique=>true})
-> 0.0027s
-- add_index(:knowledge_base_translations, [:kb_locale_id, :knowledge_base_id], {:name=>"index_kb_t_on_kb_locale_kb", :unique=>true})
-> 0.0013s
-- add_index(:knowledge_base_category_translations, [:kb_locale_id, :category_id], {:name=>"index_kb_c_t_on_kb_locale_category", :unique=>true})
-> 0.0043s
-- add_index(:knowledge_base_answer_translations, [:kb_locale_id, :answer_id], {:name=>"index_kb_a_t_on_kb_locale_answer", :unique=>true})
-> 0.0014s
== 20201210075534 MaintenanceMissingKbUniqueIndexes: migrated (0.0106s) =======
== 20210113000001 GitLabSupport: migrating ====================================
== 20210113000001 GitLabSupport: migrated (0.0170s) ===========================
== 20210118095820 Issue3372WebhooksAdminView: migrating =======================
-- create_table(:webhooks)
-> 0.0048s
== 20210118095820 Issue3372WebhooksAdminView: migrated (0.0364s) ==============
== 20210215000001 SettingEsTotalMaxSizeInMb: migrating ========================
== 20210215000001 SettingEsTotalMaxSizeInMb: migrated (0.0028s) ===============
== 20210308000001 GitHubSupport: migrating ====================================
== 20210308000001 GitHubSupport: migrated (0.0165s) ===========================
== 20210310090351 ActiverecordSessionStore114: migrating ======================
== 20210310090351 ActiverecordSessionStore114: migrated (0.0074s) =============
== 20210311130946 RemoveUnfixableGenericOauth2Login: migrating ================
== 20210311130946 RemoveUnfixableGenericOauth2Login: migrated (0.0044s) =======
== 20210428125300 Issue3523NewOperator: migrating =============================
== 20210428125300 Issue3523NewOperator: migrated (0.0010s) ====================
== 20210510092410 Issue3550SetPretty: migrating ===============================
== 20210510092410 Issue3550SetPretty: migrated (0.0013s) ======================
# Updating translations...
# Configuring Elasticsearch...
-> removing [ingest-attachment]...
-> Installing ingest-attachment
-> Downloading ingest-attachment from elastic
[=================================================] 100%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: plugin requires additional permissions @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* java.lang.RuntimePermission accessClassInPackage.sun.java2d.cmm.kcms
* java.lang.RuntimePermission accessDeclaredMembers
* java.lang.RuntimePermission getClassLoader
* java.lang.reflect.ReflectPermission suppressAccessChecks
* java.security.SecurityPermission createAccessControlContext
See http://docs.oracle.com/javase/8/docs/technotes/guides/security/permissions.html
for descriptions of what these permissions allow and the associated risks.
-> Installed ingest-attachment
-> Please restart Elasticsearch to activate any plugins installed
# Starting Zammad
# Creating webserver bootstart
# Restarting webserver nginx
####################################################################################
Add your fully qualified domain name or public IP to servername directive of
nginx, if this installation is done on a remote server. You have to change:
and restart nginx process.
Otherwise just open http://localhost/ in your browser to start using Zammad.
####################################################################################
Cleanup : zammad-3.6.0-1614852413.9a3a289a.centos7.x86_64 2/2
Verifying : zammad-4.0.1-1625488687.c4fbc989.centos7.x86_64 1/2
Verifying : zammad-3.6.0-1614852413.9a3a289a.centos7.x86_64 2/2
Updated:
zammad.x86_64 0:4.0.1-1625488687.c4fbc989.centos7
Complete!
And… at the end, the usual signal-update.
[root@nethtest01 ~]# signal-event nethserver-zammad-update
[root@nethtest01 ~]#
And… it worked!
I had a Zammad opened session, no activity running. After enough… patience (30-45 seconds after the signal-update
) I had the chance to refresh the page and find the version 4.0.1 installed.
My installation is “mint”, only SMTP notifications, no integrations with other systems.
A later yum update
found nothing to update/upgrade.