cd /opt/zammad/app/assets/stylesheets/custom/
vi custom.css
# Editing...
zammad run rake assets:precompile
systemctl restart zammad-web
Tag: Zammad
-
Custom CSS for Zammad
-
How to Solve Zammad `BackgroundJobSearchIndex` Errors
1339 failing background jobs.
Failed to run background job #1 ‘BackgroundJobSearchIndex’ 10 time(s) with 228 attempt(s).Run
zammad run rails c
then:items = SearchIndexBackend.search('preferences.notification_sound.enabled:*', 3000, 'User') items.each {|item| next if !item[:id] user = User.find_by(id: item[:id]) next if !user next if !user.preferences next if !user.preferences[:notification_sound] next if !user.preferences[:notification_sound][:enabled] if user.preferences[:notification_sound][:enabled] == 'true' user.preferences[:notification_sound][:enabled] = true user.save! next end next if user.preferences[:notification_sound][:enabled] != 'false' user.preferences[:notification_sound][:enabled] = false user.save! next } Delayed::Job.all.each {|job| Delayed::Worker.new.run(job) }
Further reading: Failing background jobs.;Failed to run background job #1 ‘BackgroundJobSearchIndex’ 10 time(s)
-
Disable Elasticsearch for Existing Zammad Installs
Zammad can actually work very well without Elasticsearch for small amount of tickets. Please note, after disabling Elasticsearch, you may see many
BackgroundJobSearchIndex
errors like this, so use it at your own risk.zammad run rails r "Setting.set('es_url', '')" # set it empty zammad run rake searchindex:rebuild systemctl stop elasticsearch systemctl disable elasticsearch systemctl mask elasticsearch
Further reading: Set up Elasticsearch – Zammad Docs
-
OpenJDK 64-Bit Server VM warning: XX:ParallelGCThreads=N
Just adding
-XX:-AssumeMP
to/etc/elasticsearch/jvm.options