The log paths on my end are correct and are the exact path I used with v1. I even deleted the log file and confirmed it was regenerated in my specified path.
Default agent has to set via env. You can’t set it via UI, there is no db and all other agents are stored in browser memory. The first agent has to be set via env file compulsory to start the dashboard.
@​hhftechnology hmm, that’s how I originally attempted multi agents. But the secondary agent, although would connect and show as online does not populate data into the dashboard after switching to that agent in the dashboard. Primary works via the env.
To test further I take my secondary and configure with the agent env. That then populates into the dashboard. But if I add my original primary as my secondary via UI, the same issue is encountered
Dashboard logs don’t seem to be fetching the secondary agent logs
Fetching from agent: http://traefik-agent:5000/api/logs/access?position=-1&lines=1000&tail=false
Agent returned 1000 logs
Fetching from agent: http://traefik-agent:5000/api/logs/access?position=-1&lines=1000&tail=false
Agent returned 1000 logs
Fetching from agent: http://traefik-agent:5000/api/logs/access?position=-1&lines=1000&tail=false
Agent returned 1000 logs
Fetching from agent: http://traefik-agent:5000/api/logs/access?position=-1&lines=1000&tail=false
Agent returned 1000 logs
Fetching from agent: http://traefik-agent:5000/api/logs/access?position=-1&lines=1000&tail=false
Agent returned 1000 logs
Fetching from agent: …
Still no luck. Again, I switched between primary and secondary agent for env in my compose file. Still, whatever I put as env, that agent will report and whatever is added in the UI does not.
The only thing I can do is toggle between agents in the dashboard. But switching to secondary doesn’t report any secondary traefik logs and nether does it report CPU/Memory/Disk Usage (switching to secondary just reports the primary machine CPU/Memory/Disk)
Updated secondary agent compose. I changed both name and port to 5001
Also works here. The only thing I had to do was change ownership of mapped folder to 1001:1001 otherwise the db would not get created. Also seems like the db resides in /app/data which I couldn’t find in this post or anywhere else. e.g. - ./data/dashboard:/app/data