[Docker-Compose] AUTOWIZARD_JSON usage

Hi!

After an initial test I’m just in the process of setting up a little more production ready instance based on docker-compose.
While checking out the docks i found this possible useful piece of documentation.
https://docs.zammad.org/en/latest/install/docker-compose/environment.html?highlight=AUTOWIZARD_JSON

I got a decent idea how I would like to have the file.
But I’m not sure how to pass the variable and what container to.

after my first attempt with a config like this failed (No auto wizardry )

  zammad-init:
    environment:    
      AUTOWIZARD_JSON: |
        {
          "Token": "631a167d79113eafe51c84194d2bee7d4542944f2fedcb3987d97bbea4350805caa26228eea73e595827ed48eb9fd317c9ad69123f2a75507136a17f002b4435",
          "TextModuleLocale": {
            "Locale": "en-us"
          },
          "Users": [
            {
              "login": "test.user@e...

I tryed instead a file.
my feeling is that the docks are very unclear on the autowizzard topic.

  zammad-init:
    volumes:
      - {{ zammad_project_path }}/wizzard.json:/wizzard.json
    environment:    
      AUTOWIZARD_JSON: '/wizzard.json'

I could possible see that I have to put the variable on a different container.
Tipps for me on how to pass the json to the right(? maybe all) container/s

Infos:

  • Zammad version: -4.1.0-6
  • docker-compose
  • Operating system: Rocky8

Expected behavior:

  • load a wizzard json

Actual behavior:

  • **poof

Steps to reproduce the behavior:

  • see above
    Cheers!
1 Like

well. I think I found something :expressionless:

apparently, I should encrypt the json as a base64
Lets see what happens when yolo it and pass in the generated file into the path

${ZAMMAD_DIR}/auto_wizard.json
 /opt/zammad/auto_wizard.json
1 Like

Ok… as thought yoloing it hurts (a little)
(dont use a bind mount, rsync gets confused )

what halfway works is:
cat wizzard.json | jq '' | base64
pass the string into .env
and have in docker-compose.override.yml something like this:

  zammad-init:
    environment:    
      AUTOWIZARD_JSON: ${AUTOWIZARD_JSON}

But heeeey - new roadblock
image
The auto wizard is enabled, please use the prodvided auto wizard url.

Lets see

docker-compose logs | grep -e 'wizard\|url'
zammad-elasticsearch_1  | {"type": "server", "timestamp": "2021-09-20T18:20:44,667Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "0058f930e3db", "message": "loaded module [repository-url]" }
zammad-init_1           | I, [2021-09-20T18:21:51.013134 #32-47381815884140]  INFO -- : Setting.set('es_url', "http://zammad-elasticsearch:9200")

a rather lean yield. let’s see what I find next

1 Like

Babysteps again.

I Thought the secret token is meant as salt or encrypting stuff. nope.
Its a secret URL !!

that is what gave it away

sooo

https://<URL>/#getting_started/auto_wizard/5631a167d79113eafe51c84194d2bee7d4542944f2fedcb3987d97bbea4350805caa26228eea73e595827ed48eb9fd317c9ad69123f2a75507136a17f002b4435

But we are rather dark here


But what after visiting works is the main URL:
image
Old so used to setup screen. I’m still here to get rid of you!11

Ok anyway, after we are here, just click it…
pasting in some awesome credentials with upper and lower numbers and just a little blood of my firstborn child… and then a but

image
So something works

now stuff might get a little more interesting

## hit autowizzardy 
zammad-scheduler_1      | I, [2021-09-22T13:18:21.997340 #1-47203169039160]  INFO -- : execute StatsStore.cleanup (try_count 0)...
zammad-scheduler_1      | I, [2021-09-22T13:18:21.999394 #1-47203169039160]  INFO -- : ended StatsStore.cleanup took: 0.013482423 seconds.

zammad-railsserver_1    | I, [2021-09-22T13:18:26.517849 #1-47432698411520]  INFO -- : Started GET "/" for 9.12.9.4 at 2021-09-22 13:18:26 +0000
zammad-railsserver_1    | I, [2021-09-22T13:18:26.530755 #1-47432698411520]  INFO -- : Processing by InitController#index as HTML
zammad-railsserver_1    | I, [2021-09-22T13:18:26.531876 #1-47432698411520]  INFO -- :   Rendering init/index.html.erb within layouts/application
zammad-railsserver_1    | I, [2021-09-22T13:18:26.532192 #1-47432698411520]  INFO -- :   Rendered init/index.html.erb within layouts/application (0.2ms)
zammad-railsserver_1    | I, [2021-09-22T13:18:26.534231 #1-47432698411520]  INFO -- : Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.4ms)
waf_1                   | <donttouchmygarbage.url> 9.12.9.4 - - [22/Sep/2021:13:18:26 +0000] "GET / HTTP/2.0" 200 1180 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:92.0) Gecko/20100101 Firefox/92.0"
zammad-railsserver_1    | I, [2021-09-22T13:18:27.122348 #1-47432698410780]  INFO -- : Started POST "/api/v1/signshow" for 9.12.9.4 at 2021-09-22 13:18:27 +0000
zammad-railsserver_1    | I, [2021-09-22T13:18:27.132192 #1-47432698410780]  INFO -- : Processing by SessionsController#show as JSON
zammad-railsserver_1    | I, [2021-09-22T13:18:27.132389 #1-47432698410780]  INFO -- :   Parameters: {"fingerprint"=>"429385428"}
zammad-railsserver_1    | I, [2021-09-22T13:18:27.186685 #1-47432698410780]  INFO -- : Completed 200 OK in 54ms (Views: 7.5ms | ActiveRecord: 11.6ms)
waf_1                   | <donttouchmygarbage.url> 9.12.9.4 - - [22/Sep/2021:13:18:27 +0000] "POST /api/v1/signshow HTTP/2.0" 200 3118 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:92.0) Gecko/20100101 Firefox/92.0"
zammad-railsserver_1    | I, [2021-09-22T13:18:27.240436 #1-47432698410500]  INFO -- : Started GET "/api/v1/translations/lang/en-gb?_=1632316706851" for 9.12.9.4 at 2021-09-22 13:18:27 +0000
zammad-railsserver_1    | I, [2021-09-22T13:18:27.248952 #1-47432698410500]  INFO -- : Processing by TranslationsController#lang as JSON
zammad-railsserver_1    | I, [2021-09-22T13:18:27.249057 #1-47432698410500]  INFO -- :   Parameters: {"_"=>"1632316706851", "locale"=>"en-gb"}
zammad-railsserver_1    | I, [2021-09-22T13:18:27.251792 #1-47432698410500]  INFO -- : Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.4ms)
waf_1                   | <donttouchmygarbage.url> 9.12.9.4 - - [22/Sep/2021:13:18:27 +0000] "GET /api/v1/translations/lang/en-gb?_=1632316706851 HTTP/2.0" 200 119 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:92.0) Gecko/20100101 Firefox/92.0"
zammad-railsserver_1    | I, [2021-09-22T13:18:27.387518 #1-47432698411140]  INFO -- : Started GET "/api/v1/getting_started/auto_wizard/631a167d79113eafe51c84194d2bee7d4542944f2fedcb3987d97bbea4350805caa26228eea73e595827ed48eb9fd317c9ad69123f2a75507136a17f002b4435?_=1632316706852" for 9.12.9.4 at 2021-09-22 13:18:27 +0000
zammad-railsserver_1    | I, [2021-09-22T13:18:27.401142 #1-47432698411140]  INFO -- : Processing by GettingStartedController#auto_wizard_admin as JSON
zammad-railsserver_1    | I, [2021-09-22T13:18:27.401214 #1-47432698411140]  INFO -- :   Parameters: {"_"=>"1632316706852", "token"=>"631a167d79113eafe51c84194d2bee7d4542944f2fedcb3987d97bbea4350805caa26228eea73e595827ed48eb9fd317c9ad69123f2a75507136a17f002b4435"}
zammad-railsserver_1    | I, [2021-09-22T13:18:27.701741 #1-47432698411140]  INFO -- : Setting.set('developer_mode', false)
zammad-railsserver_1    | I, [2021-09-22T13:18:27.712746 #1-47432698411140]  INFO -- : Setting.set('product_name', "Support System")
zammad-railsserver_1    | I, [2021-09-22T13:18:27.721657 #1-47432698411140]  INFO -- : Setting.set('system_online_service', true)
zammad-railsserver_1    | I, [2021-09-22T13:18:28.244199 #1-47432698411140]  INFO -- : Can't fetch image for 'test@mycrappy.url' (maybe no avatar available), http code: 422
zammad-railsserver_1    | I, [2021-09-22T13:18:28.372121 #1-47432698411140]  INFO -- : Fetched image for 'mycrappy.url', http code: 200
zammad-railsserver_1    | I, [2021-09-22T13:18:28.417892 #1-47432698411140]  INFO -- : NOTICE create - self.created_by_id is different: 1/3
zammad-railsserver_1    | I, [2021-09-22T13:18:28.457223 #1-47432698411140]  INFO -- : Setting.set('product_logo', "bd7d94fe6d9fe0e21e7acd145f32105d.png")
zammad-railsserver_1    | I, [2021-09-22T13:18:28.471947 #1-47432698411140]  INFO -- : Setting.set('product_logo', "bd7d94fe6d9fe0e21e7acd145f32105d.png")
zammad-railsserver_1    | E, [2021-09-22T13:18:28.474846 #1-47432698411140] ERROR -- : No lookup value found for 'organization': "Your Support Team22" (Exceptions::UnprocessableEntity)
zammad-railsserver_1    | /opt/zammad/app/models/application_model/can_associations.rb:381:in `block in association_name_to_id_convert'
zammad-railsserver_1    | /opt/zammad/app/models/application_model/can_associations.rb:349:in `map'
zammad-railsserver_1    | /opt/zammad/app/models/application_model/can_associations.rb:349:in `association_name_to_id_convert'
zammad-railsserver_1    | /opt/zammad/app/models/application_model/can_creates_and_updates.rb:77:in `create_or_update_with_ref'
zammad-railsserver_1    | /opt/zammad/lib/auto_wizard.rb:114:in `block in setup'
zammad-railsserver_1    | /opt/zammad/lib/auto_wizard.rb:102:in `each'
zammad-railsserver_1    | /opt/zammad/lib/auto_wizard.rb:102:in `setup'
zammad-railsserver_1    | /opt/zammad/app/controllers/getting_started_controller.rb:84:in `auto_wizard_admin'
zammad-railsserver_1    | /usr/local/bundle/gems/actionpack-5.2.4.6/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
zammad-railsserver_1    | /usr/local/bundle/gems/actionpack-5.2.4.6/lib/abstract_controller/base.rb:194:in `process_action'
zammad-railsserver_1    | /usr/local/bundle/gems/actionpack-5.2.4.6/lib/action_controller/metal/rendering.rb:30:in `process_action'
zammad-railsserver_1    | /usr/local/bundle/gems/actionpack-5.2.4.6/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
zammad-railsserver_1    | /usr/local/bundle/gems/activesupport-5.2.4.6/lib/active_support/callbacks.rb:109:in `block in run_callbacks'
zammad-railsserver_1    | /opt/zammad/app/controllers/application_controller/has_secure_content_security_policy_for_downloads.rb:18:in `block (4 levels) in <module:HasSecureContentSecurityPolicyForDownloads>'
zammad-railsserver_1    | /usr/local/bundle/gems/activesupport-5.2.4.6/lib/active_support/notifications.rb:180:in `subscribed'
zammad-railsserver_1    | /opt/zammad/app/controllers/application_controller/has_secure_content_security_policy_for_downloads.rb:17:in `block (3 levels) in <module:HasSecureContentSecurityPolicyForDownloads>'
zammad-railsserver_1    | /usr/local/bundle/gems/activesupport-5.2.4.6/lib/active_support/notifications.rb:180:in `subscribed'
zammad-railsserver_1    | /opt/zammad/app/controllers/application_controller/has_secure_content_security_policy_for_downloads.rb:16:in `block (2 levels) in <module:HasSecureContentSecurityPolicyForDownloads>'
zammad-railsserver_1    | /usr/local/bundle/gems/activesupport-5.2.4.6/lib/active_support/callbacks.rb:118:in `instance_exec'
zammad-railsserver_1    | /usr/local/bundle/gems/activesupport-5.2.4.6/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
zammad-railsserver_1    | /opt/zammad/app/controllers/application_controller/handles_transitions.rb:14:in `handle_transaction'
zammad-railsserver_1    | /usr/local/bundle/gems/activesupport-5.2.4.6/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
zammad-railsserver_1    | /usr/local/bundle/gems/activesupport-5.2.4.6/lib/active_support/callbacks.rb:136:in `run_callbacks'
zammad-railsserver_1    | /usr/local/bundle/gems/actionpack-5.2.4.6/lib/abstract_controller/callbacks.rb:41:in `process_action'
zammad-railsserver_1    | /usr/local/bundle/gems/actionpack-5.2.4.6/lib/action_controller/metal/rescue.rb:22:in `process_action'
zammad-railsserver_1    | /usr/local/bundle/gems/actionpack-5.2.4.6/lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'
zammad-railsserver_1    | /usr/local/bundle/gems/activesupport-5.2.4.6/lib/active_support/notifications.rb:168:in `block in instrument'
zammad-railsserver_1    | /usr/local/bundle/gems/activesupport-5.2.4.6/lib/active_support/notifications/instrumenter.rb:23:in `instrument'
zammad-railsserver_1    | /usr/local/bundle/gems/activesupport-5.2.4.6/lib/active_support/notifications.rb:168:in `instrument'
zammad-railsserver_1    | /usr/local/bundle/gems/actionpack-5.2.4.6/lib/action_controller/metal/instrumentation.rb:32:in `process_action'
zammad-railsserver_1    | /usr/local/bundle/gems/actionpack-5.2.4.6/lib/action_controller/metal/params_wrapper.rb:256:in `process_action'
zammad-railsserver_1    | /usr/local/bundle/gems/activerecord-5.2.4.6/lib/active_record/railties/controller_runtime.rb:24:in `process_action'
zammad-railsserver_1    | /usr/local/bundle/gems/actionpack-5.2.4.6/lib/abstract_controller/base.rb:134:in `process'
zammad-railsserver_1    | /usr/local/bundle/gems/actionview-5.2.4.6/lib/action_view/rendering.rb:32:in `process'
zammad-railsserver_1    | /usr/local/bundle/gems/actionpack-5.2.4.6/lib/action_controller/metal.rb:191:in `dispatch'
zammad-railsserver_1    | /usr/local/bundle/gems/actionpack-5.2.4.6/lib/action_controller/metal.rb:252:in `dispatch'
zammad-railsserver_1    | /usr/local/bundle/gems/actionpack-5.2.4.6/lib/action_dispatch/routing/route_set.rb:52:in `dispatch'
zammad-railsserver_1    | /usr/local/bundle/gems/actionpack-5.2.4.6/lib/action_dispatch/routing/route_set.rb:34:in `serve'
zammad-railsserver_1    | /usr/local/bundle/gems/actionpack-5.2.4.6/lib/action_dispatch/journey/router.rb:52:in `block in serve'
zammad-railsserver_1    | /usr/local/bundle/gems/actionpack-5.2.4.6/lib/action_dispatch/journey/router.rb:35:in `each'
zammad-railsserver_1    | /usr/local/bundle/gems/actionpack-5.2.4.6/lib/action_dispatch/journey/router.rb:35:in `serve'
zammad-railsserver_1    | /usr/local/bundle/gems/actionpack-5.2.4.6/lib/action_dispatch/routing/route_set.rb:840:in `call'
zammad-railsserver_1    | /usr/local/bundle/gems/omniauth-1.9.1/lib/omniauth/strategy.rb:420:in `call_app!'
zammad-railsserver_1    | /usr/local/bundle/gems/omniauth-saml-1.10.1/lib/omniauth/strategies/saml.rb:89:in `other_phase'
zammad-railsserver_1    | /usr/local/bundle/gems/omniauth-1.9.1/lib/omniauth/strategy.rb:190:in `call!'
zammad-railsserver_1    | /usr/local/bundle/gems/omniauth-1.9.1/lib/omniauth/strategy.rb:169:in `call'
zammad-railsserver_1    | /usr/local/bundle/gems/omniauth-1.9.1/lib/omniauth/strategy.rb:192:in `call!'
zammad-railsserver_1    | /usr/local/bundle/gems/omniauth-1.9.1/lib/omniauth/strategy.rb:169:in `call'
zammad-railsserver_1    | /usr/local/bundle/gems/omniauth-1.9.1/lib/omniauth/strategy.rb:192:in `call!'
zammad-railsserver_1    | /usr/local/bundle/gems/omniauth-1.9.1/lib/omniauth/strategy.rb:169:in `call'
zammad-railsserver_1    | /usr/local/bundle/gems/omniauth-1.9.1/lib/omniauth/strategy.rb:192:in `call!'
zammad-railsserver_1    | /usr/local/bundle/gems/omniauth-1.9.1/lib/omniauth/strategy.rb:169:in `call'
zammad-railsserver_1    | /usr/local/bundle/gems/omniauth-1.9.1/lib/omniauth/strategy.rb:192:in `call!'
zammad-railsserver_1    | /usr/local/bundle/gems/omniauth-1.9.1/lib/omniauth/strategy.rb:169:in `call'
zammad-railsserver_1    | /usr/local/bundle/gems/omniauth-1.9.1/lib/omniauth/strategy.rb:192:in `call!'
zammad-railsserver_1    | /usr/local/bundle/gems/omniauth-1.9.1/lib/omniauth/strategy.rb:169:in `call'
zammad-railsserver_1    | /usr/local/bundle/gems/omniauth-1.9.1/lib/omniauth/strategy.rb:192:in `call!'
zammad-railsserver_1    | /usr/local/bundle/gems/omniauth-1.9.1/lib/omniauth/strategy.rb:169:in `call'
zammad-railsserver_1    | /usr/local/bundle/gems/omniauth-1.9.1/lib/omniauth/strategy.rb:192:in `call!'
zammad-railsserver_1    | /usr/local/bundle/gems/omniauth-1.9.1/lib/omniauth/strategy.rb:169:in `call'
zammad-railsserver_1    | /usr/local/bundle/gems/omniauth-1.9.1/lib/omniauth/strategy.rb:192:in `call!'
zammad-railsserver_1    | /usr/local/bundle/gems/omniauth-1.9.1/lib/omniauth/strategy.rb:169:in `call'
zammad-railsserver_1    | /usr/local/bundle/gems/omniauth-1.9.1/lib/omniauth/builder.rb:45:in `call'
zammad-railsserver_1    | /usr/local/bundle/gems/rack-2.2.3/lib/rack/tempfile_reaper.rb:15:in `call'
zammad-railsserver_1    | /usr/local/bundle/gems/rack-2.2.3/lib/rack/etag.rb:27:in `call'
zammad-railsserver_1    | /usr/local/bundle/gems/rack-2.2.3/lib/rack/conditional_get.rb:27:in `call'
zammad-railsserver_1    | /usr/local/bundle/gems/rack-2.2.3/lib/rack/head.rb:12:in `call'
zammad-railsserver_1    | /usr/local/bundle/gems/actionpack-5.2.4.6/lib/action_dispatch/http/content_security_policy.rb:18:in `call'
zammad-railsserver_1    | /usr/local/bundle/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:266:in `context'
zammad-railsserver_1    | /usr/local/bundle/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:260:in `call'
zammad-railsserver_1    | /usr/local/bundle/gems/actionpack-5.2.4.6/lib/action_dispatch/middleware/cookies.rb:670:in `call'
zammad-railsserver_1    | /usr/local/bundle/gems/actionpack-5.2.4.6/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
zammad-railsserver_1    | /usr/local/bundle/gems/activesupport-5.2.4.6/lib/active_support/callbacks.rb:98:in `run_callbacks'
zammad-railsserver_1    | /usr/local/bundle/gems/actionpack-5.2.4.6/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
zammad-railsserver_1    | /usr/local/bundle/gems/actionpack-5.2.4.6/lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call'
zammad-railsserver_1    | /usr/local/bundle/gems/actionpack-5.2.4.6/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
zammad-railsserver_1    | /usr/local/bundle/gems/railties-5.2.4.6/lib/rails/rack/logger.rb:38:in `call_app'
zammad-railsserver_1    | /usr/local/bundle/gems/railties-5.2.4.6/lib/rails/rack/logger.rb:26:in `block in call'
zammad-railsserver_1    | /usr/local/bundle/gems/activesupport-5.2.4.6/lib/active_support/tagged_logging.rb:71:in `block in tagged'
zammad-railsserver_1    | /usr/local/bundle/gems/activesupport-5.2.4.6/lib/active_support/tagged_logging.rb:28:in `tagged'
zammad-railsserver_1    | /usr/local/bundle/gems/activesupport-5.2.4.6/lib/active_support/tagged_logging.rb:71:in `tagged'
zammad-railsserver_1    | /usr/local/bundle/gems/railties-5.2.4.6/lib/rails/rack/logger.rb:26:in `call'
zammad-railsserver_1    | /usr/local/bundle/gems/actionpack-5.2.4.6/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
zammad-railsserver_1    | /usr/local/bundle/gems/actionpack-5.2.4.6/lib/action_dispatch/middleware/request_id.rb:27:in `call'
zammad-railsserver_1    | /usr/local/bundle/gems/rack-2.2.3/lib/rack/method_override.rb:24:in `call'
zammad-railsserver_1    | /usr/local/bundle/gems/rack-2.2.3/lib/rack/runtime.rb:22:in `call'
zammad-railsserver_1    | /usr/local/bundle/gems/activesupport-5.2.4.6/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
zammad-railsserver_1    | /usr/local/bundle/gems/actionpack-5.2.4.6/lib/action_dispatch/middleware/executor.rb:14:in `call'
zammad-railsserver_1    | /usr/local/bundle/gems/actionpack-5.2.4.6/lib/action_dispatch/middleware/static.rb:127:in `call'
zammad-railsserver_1    | /usr/local/bundle/gems/rack-2.2.3/lib/rack/sendfile.rb:110:in `call'
zammad-railsserver_1    | /usr/local/bundle/gems/railties-5.2.4.6/lib/rails/engine.rb:524:in `call'
zammad-railsserver_1    | /usr/local/bundle/gems/puma-4.3.8/lib/puma/configuration.rb:228:in `call'
zammad-railsserver_1    | /usr/local/bundle/gems/puma-4.3.8/lib/puma/server.rb:718:in `handle_request'
zammad-railsserver_1    | /usr/local/bundle/gems/puma-4.3.8/lib/puma/server.rb:472:in `process_client'
zammad-railsserver_1    | /usr/local/bundle/gems/puma-4.3.8/lib/puma/server.rb:328:in `block in run'
zammad-railsserver_1    | /usr/local/bundle/gems/puma-4.3.8/lib/puma/thread_pool.rb:134:in `block in spawn_thread'
zammad-railsserver_1    | /usr/local/bundle/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
zammad-railsserver_1    | I, [2021-09-22T13:18:28.475539 #1-47432698411140]  INFO -- : Completed 422 Unprocessable Entity in 1074ms (Views: 0.1ms | ActiveRecord: 250.7ms)
waf_1                   | <donttouchmygarbage.url> 9.12.9.4 - - [22/Sep/2021:13:18:28 +0000] "GET /api/v1/getting_started/auto_wizard/631a167d79113eafe51c84194d2bee7d4542944f2fedcb3987d97bbea4350805caa26228eea73e595827ed48eb9fd317c9ad69123f2a75507136a17f002b4435?_=1632316706852 HTTP/2.0" 422 159 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:92.0) Gecko/20100101 Firefox/92.0"
zammad-scheduler_1      | I, [2021-09-22T13:18:29.183557 #1-47203189601560]  INFO -- : 2021-09-22T13:18:29+0000: [Worker(host:aa1db5848acf pid:1)] Job SearchIndexAssociationsJob [6a6635a2-7a19-4e10-9f6d-fac0113d841d] from DelayedJob(default) with arguments: ["Organization", 2] (id=14) (queue=default) RUNNING
zammad-scheduler_1      | I, [2021-09-22T13:18:29.313035 #1-47203189601560]  INFO -- : 2021-09-22T13:18:29+0000: [Worker(host:aa1db5848acf pid:1)] Job SearchIndexAssociationsJob [6a6635a2-7a19-4e10-9f6d-fac0113d841d] from DelayedJob(default) with arguments: ["Organization", 2] (id=14) (queue=default) COMPLETED after 0.1292
zammad-scheduler_1      | I, [2021-09-22T13:18:29.317842 #1-47203189601560]  INFO -- : 2021-09-22T13:18:29+0000: [Worker(host:aa1db5848acf pid:1)] Job SearchIndexAssociationsJob [e9861fae-49f0-4294-abb0-6c161634901d] from DelayedJob(default) with arguments: ["Organization", 3] (id=15) (queue=default) RUNNING
zammad-elasticsearch_1  | {"type": "server", "timestamp": "2021-09-22T13:18:29,381Z", "level": "INFO", "component": "o.e.c.m.MetadataMappingService", "cluster.name": "docker-cluster", "node.name": "387d9e0ac581", "message": "[zammad_production_organization/in6QA4ilSg6QcaF9pupYcg] update_mapping [_doc]", "cluster.uuid": "fERnnjgkQ2umzpCkl9xuHw", "node.id": "MyBclUG3SBSbau4Xb18vAw"  }
zammad-scheduler_1      | I, [2021-09-22T13:18:29.768786 #1-47203189601560]  INFO -- : 2021-09-22T13:18:29+0000: [Worker(host:aa1db5848acf pid:1)] Job SearchIndexAssociationsJob [e9861fae-49f0-4294-abb0-6c161634901d] from DelayedJob(default) with arguments: ["Organization", 3] (id=15) (queue=default) COMPLETED after 0.4507
zammad-scheduler_1      | I, [2021-09-22T13:18:29.798887 #1-47203189601560]  INFO -- : 2021-09-22T13:18:29+0000: [Worker(host:aa1db5848acf pid:1)] Job SearchIndexAssociationsJob [23513878-5fe2-4b3f-9a35-c3b108b68a20] from DelayedJob(default) with arguments: ["User", 3] (id=17) (queue=default) RUNNING
zammad-elasticsearch_1  | {"type": "server", "timestamp": "2021-09-22T13:18:29,925Z", "level": "INFO", "component": "o.e.c.m.MetadataMappingService", "cluster.name": "docker-cluster", "node.name": "387d9e0ac581", "message": "[zammad_production_user/NnpPXGwyQFazdggebKTsGQ] update_mapping [_doc]", "cluster.uuid": "fERnnjgkQ2umzpCkl9xuHw", "node.id": "MyBclUG3SBSbau4Xb18vAw"  }
zammad-scheduler_1      | I, [2021-09-22T13:18:30.993312 #1-47203189601560]  INFO -- : 2021-09-22T13:18:30+0000: [Worker(host:aa1db5848acf pid:1)] Job SearchIndexAssociationsJob [23513878-5fe2-4b3f-9a35-c3b108b68a20] from DelayedJob(default) with arguments: ["User", 3] (id=17) (queue=default) COMPLETED after 1.1942
zammad-scheduler_1      | I, [2021-09-22T13:18:30.998622 #1-47203189601560]  INFO -- : 2021-09-22T13:18:30+0000: [Worker(host:aa1db5848acf pid:1)] Job SearchIndexJob [f84eff4b-8185-446f-9f27-329447060857] from DelayedJob(default) with arguments: ["Group", 1] (id=18) (queue=default) RUNNING
zammad-scheduler_1      | I, [2021-09-22T13:18:31.055685 #1-47203189601560]  INFO -- : 2021-09-22T13:18:31+0000: [Worker(host:aa1db5848acf pid:1)] Job SearchIndexJob [f84eff4b-8185-446f-9f27-329447060857] from DelayedJob(default) with arguments: ["Group", 1] (id=18) (queue=default) COMPLETED after 0.0569
zammad-scheduler_1      | I, [2021-09-22T13:18:31.061941 #1-47203189601560]  INFO -- : 2021-09-22T13:18:31+0000: [Worker(host:aa1db5848acf pid:1)] Job SearchIndexJob [c9d97e6f-d6cd-44d1-a532-45136b10f314] from DelayedJob(default) with arguments: ["User", 3] (id=19) (queue=default) RUNNING
zammad-scheduler_1      | I, [2021-09-22T13:18:31.159216 #1-47203189601560]  INFO -- : 2021-09-22T13:18:31+0000: [Worker(host:aa1db5848acf pid:1)] Job SearchIndexJob [c9d97e6f-d6cd-44d1-a532-45136b10f314] from DelayedJob(default) with arguments: ["User", 3] (id=19) (queue=default) COMPLETED after 0.0971
zammad-scheduler_1      | I, [2021-09-22T13:18:31.164211 #1-47203189601560]  INFO -- : 2021-09-22T13:18:31+0000: [Worker(host:aa1db5848acf pid:1)] Job SearchIndexJob [fd8317bf-966b-4052-824e-3b77c2620d4b] from DelayedJob(default) with arguments: ["Organization", 3] (id=20) (queue=default) RUNNING
zammad-scheduler_1      | I, [2021-09-22T13:18:31.277340 #1-47203189601560]  INFO -- : 2021-09-22T13:18:31+0000: [Worker(host:aa1db5848acf pid:1)] Job SearchIndexJob [fd8317bf-966b-4052-824e-3b77c2620d4b] from DelayedJob(default) with arguments: ["Organization", 3] (id=20) (queue=default) COMPLETED after 0.1130
zammad-scheduler_1      | I, [2021-09-22T13:18:32.009320 #1-47203138861260]  INFO -- : execute HttpLog.cleanup (try_count 0)...
zammad-scheduler_1      | I, [2021-09-22T13:18:32.011648 #1-47203138861260]  INFO -- : ended HttpLog.cleanup took: 0.015443571 seconds.
zammad-scheduler_1      | I, [2021-09-22T13:18:32.012055 #1-47203179361320]  INFO -- : execute Channel.fetch (try_count 0)...
zammad-scheduler_1      | I, [2021-09-22T13:18:32.013544 #1-47203179361320]  INFO -- : ended Channel.fetch took: 0.011389435 seconds.
zammad-scheduler_1      | I, [2021-09-22T13:18:39.299043 #1-47203189601560]  INFO -- : 2021-09-22T13:18:39+0000: [Worker(host:aa1db5848acf pid:1)] Job TicketCreateScreenJob [b68d8008-a928-455b-89e2-c5fc7bce9dcf] from DelayedJob(default) with arguments: [] (id=16) (queue=default) RUNNING
zammad-scheduler_1      | I, [2021-09-22T13:18:39.340094 #1-47203189601560]  INFO -- : 2021-09-22T13:18:39+0000: [Worker(host:aa1db5848acf pid:1)] Job TicketCreateScreenJob [b68d8008-a928-455b-89e2-c5fc7bce9dcf] from DelayedJob(default) with arguments: [] (id=16) (queue=default) COMPLETED after 0.0408
zammad-scheduler_1      | I, [2021-09-22T13:18:39.344288 #1-47203189601560]  INFO -- : 2021-09-22T13:18:39+0000: [Worker(host:aa1db5848acf pid:1)] Job CollectionUpdateJob [e84e55c2-efa7-4790-a106-27ac7922b9a6] from DelayedJob(default) with arguments: ["Group"] (id=21) (queue=default) RUNNING
zammad-scheduler_1      | W, [2021-09-22T13:18:39.367759 #1-47203189601560]  WARN -- : Scoped order is ignored, it's forced to be batch order.
zammad-scheduler_1      | I, [2021-09-22T13:18:39.384109 #1-47203189601560]  INFO -- : 2021-09-22T13:18:39+0000: [Worker(host:aa1db5848acf pid:1)] Job CollectionUpdateJob [e84e55c2-efa7-4790-a106-27ac7922b9a6] from DelayedJob(default) with arguments: ["Group"] (id=21) (queue=default) COMPLETED after 0.0397
zammad-scheduler_1      | I, [2021-09-22T13:18:42.016193 #1-47203168769600]  INFO -- : execute Cti::Log.cleanup (try_count 0)...
zammad-scheduler_1      | I, [2021-09-22T13:18:42.019422 #1-47203168769600]  INFO -- : ended Cti::Log.cleanup took: 0.015151484 seconds.
zammad-scheduler_1      | I, [2021-09-22T13:18:52.026593 #1-47203169991440]  INFO -- : execute ImapAuthenticationMigrationCleanupJob.perform_now (try_count 0)...
zammad-scheduler_1      | I, [2021-09-22T13:18:52.034726 #1-47203169991440]  INFO -- : ended ImapAuthenticationMigrationCleanupJob.perform_now took: 0.01925306 seconds.
zammad-scheduler_1      | I, [2021-09-22T13:19:02.027509 #1-47203179361320]  INFO -- : execute Channel.fetch (try_count 0)...
zammad-scheduler_1      | I, [2021-09-22T13:19:02.029279 #1-47203179361320]  INFO -- : ended Channel.fetch took: 0.013908667 seconds.
zammad-scheduler_1      | I, [2021-09-22T13:19:02.032693 #1-47203171016100]  INFO -- : execute Job.run (try_count 0)...
zammad-scheduler_1      | I, [2021-09-22T13:19:02.034710 #1-47203171016100]  INFO -- : ended Job.run took: 0.01485032 seconds.

might be related to

zammad-railsserver_1 | E, [2021-09-22T13:18:28.474846 #1-47432698411140] ERROR – : No lookup value found for ‘organization’: “Your Support Team22” (Exceptions::UnprocessableEntity)

lets see if stuff works out when I find something related to organisation

yep yep, yep all working now.
as expected, the above error is just because I passed in random stuff.

so, tldr

  • set up a JSON like the example
  • pass it throu base64 ( cat wizzard.json | jq . | base64 -w 0)
  • write it into .env like
AUTOWIZARD_JSON="ewogICAgIkNo...BdCn0="
  • pass the .env var to the zammad-init container ( I used docker-compose.override.yml )
  zammad-init:
    environment:
      AUTOWIZARD_JSON: ${AUTOWIZARD_JSON}
  • start the compose
  • visit https://<URL>/#getting_started/auto_wizard/<token>
    in case of the example the token would be secret_token

just took me 4 days to figure this out
image

2 Likes

I’m very glad you’ve spent so much time and effort to dive into this.

Thank you very much!

Regards
AIT

most welcome,
Keep questions flowing. currently, I know stuff that I ll forget soon :stuck_out_tongue:
not yet completely happy with it.
Important settings (settings you cant change in the UI anymore) are missing like fqdn, and http_type. idk if system_id is something important to set.
I currently use the browser’s developer tools to dig me through but meh…
Currently searching for the Groups setup.

also came across some oddities.
Like running rails zammad:setup:auto_wizard auto_wizard.json inside of the container (hoped I can test out changes faster) gives me a reset to
I, [2021-09-23T13:28:06.357431 #44-47388411042140] INFO -- : Setting.set('product_name', "Zammad Test System").
anyway? Is there maybe API documentation I didnt stumbled across yet?

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.