• Categories
    • Recent
    • Tags
    • Popular
    • Register
    • Login

    mycontroller.yaml config

    Scheduled Pinned Locked Moved General Discussion
    9 Posts 3 Posters 472 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Y Offline
      Yourry
      last edited by

      Hi there,
      I think I made a mistake in the file config because I have this error on the dashboard:

      alt text

      Here is my config file (without the secret line):

      analytics:
        enabled: true
      
      web:
        web_directory: web_console
        enable_profiling: false
        read_timeout: 60s
        http:
          enabled: true
          bind_address: "0.0.0.0"
          port: 8580
        https_ssl:
          enabled: true
          bind_address: "0.0.0.0"
          port: 8543
          cert_dir: mc_home/certs/https_ssl
        https_acme:
          enabled: false
          bind_address: "0.0.0.0"
          port: 9443
          cache_dir: mc_home/certs/https_acme
          acme_directory:
          email: hello@example.com
          domains: ["mycontroller.example.com"]
      
      logger:
        mode: record_all
        encoding: console
        enable_stacktrace: false
        level:
          core: info
          web_handler: info
          storage: info
          metric: warn
      
      directories:
        data: mc_home/data
        logs: mc_home/logs
        tmp: mc_home/tmp
        secure_share: mc_home/secure_share
        insecure_share: mc_home/insecure_share
      
      bus:
        type: embedded
        topic_prefix: mc_server
        server_url: nats://127.0.0.1:4222
        insecure: false
        connection_timeout: 10s
      
      gateway:
        disabled: false
        types: []
        ids: []
        labels:
          location: server
      
      handler:
        disabled: false
        types: []
        ids: []
        labels:
          location: server
      
      database:
        storage:
          type: memory
          dump_enabled: true
          dump_interval: 10m
          dump_dir: "memory_db"
          dump_format: ["yaml"]
          load_format: "yaml"
      
        metric:
          disabled: false
          name: influx_database
          type: influxdb
          uri: http://127.0.0.1:8086 # must be updated with your host ip address
          token:
          username:
          password:
          organization:
          bucket: mycontroller
          batch_size:
          flush_interval: 1s
      
      

      The influx service works well:

      root@odroid:/opt/apps/mycontroller# systemctl status influxdb.service
      ā— influxdb.service - InfluxDB is an open-source, distributed, time series database
           Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor preset: enabled)
           Active: active (running) since Thu 2022-08-04 22:16:18 CEST; 1 weeks 2 days ago
             Docs: https://docs.influxdata.com/influxdb/
         Main PID: 1296364 (influxd)
            Tasks: 16 (limit: 3833)
           Memory: 30.1M
           CGroup: /system.slice/influxdb.service
                   └─1296364 /usr/bin/influxd -config /etc/influxdb/influxdb.conf
      
      Aug 04 22:16:16 odroid systemd[1]: Starting InfluxDB is an open-source, distributed, time series database...
      Aug 04 22:16:16 odroid influxd-systemd-start.sh[1296370]: Merging with configuration at: /etc/influxdb/influxdb.conf
      Aug 04 22:16:16 odroid influxd-systemd-start.sh[1296391]: Merging with configuration at: /etc/influxdb/influxdb.conf
      Aug 04 22:16:17 odroid influxd-systemd-start.sh[1296352]: InfluxDB API unavailable after 1 attempts...
      Aug 04 22:16:18 odroid influxd-systemd-start.sh[1296352]: InfluxDB started
      Aug 04 22:16:18 odroid systemd[1]: Started InfluxDB is an open-source, distributed, time series database.
      

      Database entry :

      root@odroid:/opt/apps/mycontroller# influx
      Connected to http://localhost:8086 version 1.8.10
      InfluxDB shell version: 1.8.10
      > show databases
      name: databases
      name
      ----
      _internal
      mycontroller
      > exit
      
      

      Thanks for your help

      jkandasaJ 2 Replies Last reply Reply Quote 0
      • jkandasaJ Offline
        jkandasa @Yourry
        last edited by

        @Yourry sorry the document is not updated yet. I will do it soon as possible.
        Please update your influxdb config as follows and restart the MyController server

          metric:
            disabled: false
            type: influxdb
            uri: http://127.0.0.1:8086
            token:
            username:
            password:
            organization_name:
            bucket_name: mycontroller
            batch_size:
            flush_interval: 1s
        
        1 Reply Last reply Reply Quote 0
        • jkandasaJ Offline
          jkandasa @Yourry
          last edited by

          @Yourry just updated the database configurations on the document. please report if you see incorrect details. Thanks!

          1 Reply Last reply Reply Quote 0
          • J Offline
            JeeLet
            last edited by JeeLet

            ?

            Install InfluxDB

            Last modified January 6, 2022: update github repo url (a311392)
            

            ?

            🚜

            jkandasaJ 1 Reply Last reply Reply Quote 0
            • jkandasaJ Offline
              jkandasa @JeeLet
              last edited by

              @JeeLet No change in the influxdb installation side. Change are in the MyController yaml

              • Quick installation: https://v2.mycontroller.org/docs/installation/quick-installation/
              • Backend Configuration: https://v2.mycontroller.org/docs/installation/advanced-installation/backend-configuration/
              1 Reply Last reply Reply Quote 0
              • Y Offline
                Yourry
                last edited by

                Thank you for your help, the proposed modification works very well !

                On the other hand I tried to update my config file (mycontroller.yaml) with the one proposed on the documentation:
                Backend Configuration
                And nothing works anymore.
                For example in my config file, if I simply replace the line:

                web_directory: web_console
                

                by

                web_directory: /ui
                

                I have an error (404) on the main page.
                My config file that works (without the secret line):

                analytics:
                  enabled: true
                
                web:
                  web_directory: web_console
                  enable_profiling: false
                  read_timeout: 60s
                  http:
                    enabled: false
                    bind_address: "0.0.0.0"
                    port: 8580
                  https_ssl:
                    enabled: true
                    bind_address: "0.0.0.0"
                    port: 8543
                    cert_dir: mc_home/certs/https_ssl
                  https_acme:
                    enabled: false
                    bind_address: "0.0.0.0"
                    port: 9443
                    cache_dir: mc_home/certs/https_acme
                    acme_directory:
                    email: hello@example.com
                    domains: ["mycontroller.example.com"]
                
                logger:
                  mode: record_all
                  encoding: console
                  enable_stacktrace: false
                  level:
                    core: info
                    web_handler: info
                    storage: info
                    metric: warn
                
                directories:
                  data: mc_home/data
                  logs: mc_home/logs
                  tmp: mc_home/tmp
                  secure_share: mc_home/secure_share
                  insecure_share: mc_home/insecure_share
                
                bus:
                  type: embedded
                  topic_prefix: mc_server
                  server_url: nats://127.0.0.1:4222
                  insecure: false
                  connection_timeout: 10s
                
                gateway:
                  disabled: false
                  types: []
                  ids: []
                  labels:
                    location: server
                
                handler:
                  disabled: false
                  types: []
                  ids: []
                  labels:
                    location: server
                
                database:
                  storage:
                    type: memory
                    dump_enabled: true
                    dump_interval: 10m
                    dump_dir: "memory_db"
                    dump_format: ["yaml"]
                    load_format: "yaml"
                
                  metric:
                    disabled: false
                    type: influxdb
                    uri: http://127.0.0.1:8086
                    token:
                    username:
                    password:
                    organization_name:
                    bucket_name: mycontroller
                    batch_size:
                    flush_interval: 1s
                
                jkandasaJ 2 Replies Last reply Reply Quote 0
                • jkandasaJ Offline
                  jkandasa @Yourry
                  last edited by

                  @Yourry

                  • web_directory: web_console - used in binary installation
                  • web_directory: /ui - used in docker container

                  My config file that works (without the secret line):

                  I will check this and let you know

                  1 Reply Last reply Reply Quote 0
                  • jkandasaJ Offline
                    jkandasa @Yourry
                    last edited by jkandasa

                    @Yourry I have added patch to avoid empty secret. It will not be allowed in the latest release. you need to update your secret and passwords,tokens, etc., used in MyController server

                    1 Reply Last reply Reply Quote 0
                    • Y Offline
                      Yourry
                      last edited by

                      I expressed myself badly, I have the secret in my config file.
                      I voluntarily deleted it by copying my file on this forum.
                      Sorry

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post

                      0

                      Online

                      587

                      Users

                      529

                      Topics

                      3.4k

                      Posts
                      Copyright Ā© 2015-2025 MyController.org | Contributors | Localization