Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Config completely broken on 3.1.1 #774

Open
GMart opened this issue Jan 5, 2025 · 2 comments
Open

[Bug]: Config completely broken on 3.1.1 #774

GMart opened this issue Jan 5, 2025 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@GMart
Copy link

GMart commented Jan 5, 2025

What happened?

I am trying to copy a config file from one instance of TA to another. Both are running 3.1.1. I get the config .json file from one and give it to the other, and then click save, it says there are errors. The Device_sources part of the tree has errors.

I have pasted a simple config generated by version 3.1.1. There is some large bug preventing the config from saving. It thinks there needs to be more items under the item, like "max_reconnects", "bus" and others. I don't know what to set these values to.
image

Version

3.1.1

Distribution

CLI

OS

Linux

What browsers are you seeing the problem on?

Firefox, Chrome

If applicable, What Listener Clients are You Using?

No response

TallyArbiter configuration

{
  "security": {
    "jwt_private_key": "H6yE3CZEm6pBR2yZwpkbLm6xzXrJzYrIvhjO1RLWs1EDCSCbCo9AnztWfYmYExr8jEWkt4bVM3GZSmCZlm9n69eRPp4H9oM5y24Kvbu0ayEZVn4pSsBnyrS9jWPDdZmXJz6edCfFPCLy/dKNow9Lbc0xVSxqwx+mcmNa3J3deL4WmGP12I8lU02pIkEVPmZ2AbMdZ2Uwhjl8zc5MglOm1KDs6MO1k/eIQ2Bd/KaIvgPrPUWaXJ5X04ZwMRuAZvltbJDtZPSDD5y/HzlwsLHNVSnap95Xl0ypJFj2jJJ9jGi4KMbcWwThvgYksNqr7e+U1XmpR18suup83UIzeyn13Q=="
  },
  "users": [
    {
      "username": "producer",
      "password": "$2a$10$xoxOcq23kicZcQYwuQQkmexffL4flew0az5P9dP/iUVz8L2Dbfk5C",
      "roles": "producer"
    },
    {
      "username": "admin",
      "password": "$2a$10$T.g5Uaua7.CHAfvt3FGml.cvb0O8cIwujxldGckbTdaRk5LCPio76",
      "roles": "admin"
    }
  ],
  "cloud_destinations": [],
  "cloud_keys": [],
  "device_actions": [],
  "device_sources": [
    {
      "deviceId": "f8211675",
      "sourceIdx": "0",
      "address": "TEST_0",
      "rename": true,
      "sourceId": "91befc40",
      "id": "b553a665"
    }
  ],
  "devices": [
    {
      "name": "Phone",
      "description": "Phone1",
      "enabled": true,
      "id": "f8211675"
    }
  ],
  "sources": [
    {
      "data": {
        "interval": 222,
        "changeMode": "one-at-a-time",
        "addressesNumber": 3
      },
      "name": "Test",
      "sourceTypeId": "TESTMODE",
      "reconnect": true,
      "enabled": true,
      "id": "91befc40",
      "max_reconnects": 5,
      "connected": true
    }
  ],
  "tsl_clients": [],
  "tsl_clients_1secupdate": false,
  "bus_options": [
    {
      "id": "e393251c",
      "label": "Preview",
      "type": "preview",
      "color": "#3fe481",
      "priority": 50,
      "visible": true
    },
    {
      "id": "334e4eda",
      "label": "Program",
      "type": "program",
      "color": "#e43f5a",
      "priority": 200,
      "visible": true
    },
    {
      "id": "12c8d699",
      "label": "Aux 1",
      "type": "aux",
      "color": "#0000FF",
      "priority": 100,
      "visible": true
    },
    {
      "id": "0449b0c7",
      "label": "Aux 2",
      "type": "aux",
      "color": "#0000FF",
      "priority": 100,
      "visible": true
    },
    {
      "id": "5d94f273",
      "label": "Aux 3",
      "type": "aux",
      "color": "#0000FF",
      "priority": 100,
      "visible": false
    },
    {
      "id": "77ffb605",
      "label": "Aux 4",
      "type": "aux",
      "color": "#0000FF",
      "priority": 100,
      "visible": false
    },
    {
      "id": "09d4975d",
      "label": "Aux 5",
      "type": "aux",
      "color": "#0000FF",
      "priority": 100,
      "visible": false
    },
    {
      "id": "e2c2e192",
      "label": "Aux 6",
      "type": "aux",
      "color": "#0000FF",
      "priority": 100,
      "visible": false
    },
    {
      "id": "734f7395",
      "label": "Aux 7",
      "type": "aux",
      "color": "#0000FF",
      "priority": 100,
      "visible": false
    },
    {
      "id": "3011d34a",
      "label": "Aux 8",
      "type": "aux",
      "color": "#0000FF",
      "priority": 100,
      "visible": false
    }
  ],
  "externalAddress": "http://0.0.0.0:4455/#/tally",
  "remoteErrorReporting": false,
  "uuid": "5ee0864f"
}

Relevant log output

No response

Error stacktrace (if applicable)

No response

@GMart GMart added the bug Something isn't working label Jan 5, 2025
Copy link

github-actions bot commented Jan 5, 2025

Hello there GMart 👋

Welcome to TallyArbiter!

Thank you for opening your first issue for the Tally Arbiter project. Tally Arbiter fosters an open and welcoming environment for all our contributors. Please adhere to our Code Of Conduct.

If you have more to contribute to this issue, please comment down below! We will try to get back to you as soon as we can.

@Jocke4f
Copy link
Collaborator

Jocke4f commented Jan 10, 2025

How do you copy the config content from one TA to another TA installation?

Complete config file
If you want to copy the config file as-is then there are two options:

  1. The TA must not be running and then you copy the actual config.json file.
  2. Using config tools Import/Export the config.json file when TA is running.

Parts of config file
If you want to copy via the UI (Config editor? Raw config editor?) then you really need to know what parts you can copy and how different sections of the config file relates to other parts since some of the config information is setup with local id:s and if you mess with them you will get a corrupt config.json file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants