Cannot generate reports on Omada Software Controller 5.3.1
Hello,
I need some help in exporting the reports from the Omada Software Controller v5.3.1
I run the controller in a Docker container on a Synology NAS.
When I try to export the report as PDF from the Report tab i get the following error:
Please install Chromium before exporting the network report. Make sure you can run Chromium as root.
If i try to schedule the report I get the following error Log tab under alerts.
Any help is much apreciated.
Thank you!
- Copy Link
- Subscribe
- Bookmark
- Report Inappropriate Content
- Copy Link
- Report Inappropriate Content
Hi there,
Thank you for coming to TP-Link Community for help!
I'd like to conclude the issue reported here. Hope it helps.
Problem Cause:
Limited by the permission settings of Linux, Linux Controller requires users to install chromium dependencies and ensure that chromium can be executed as root. Installing chromium using snap won't work as it cannot run as root due to the limitations of snap itself.
Solution:
To successfully export the report as PDF from the Report tab, you can follow the suggestion provided by @iamk3 (thank you for sharing your solution in post #8), install the ppa:system76/pop repository, updating apt, and then just "sudo apt install chromium".
So install a third-party ppa and use apt to install chromium on Debian-based distributions (Debian, Ubuntu). After installation, try to execute "sudo chromium" in the terminal. If the browser can be successfully launched, the report should be successfully exported.
- Copy Link
- Report Inappropriate Content
- Copy Link
- Report Inappropriate Content
Thanks for the link!
I did open a Github issue for mbentley (the guy that created the docker image). Maybe he can have a look at the issue and give some more insight.
- Copy Link
- Report Inappropriate Content
So, part of the issue is that I don't have any version of Chrome(ium) installed in the container. The readme and installation documentation do not go through any steps of how that should be done. The message about running Chromium as root is interesting but I'm not sure if it is needing to be able to use sudo or something to escalate privileges. I started with a base 5.3.1 container and just added chromium and I now get another error:
This was on a brand new install where I didn't configure anything so it might be an issue with having nothing to really export.
As a side note, I did try to run it on my actual deployment and then I get a different error:
Turns out that because of how the persistent data is stored in the container, the data/pdf and data/html directories were not being created from the install - because the entire data directory is a persistent directory so I had to do some work to make sure that they are created if they don't exist. Not really a software related problem, just a result of how I'm building the image and telling people to use the entire data directory as a persistent volume.
The good news is that once I worked around this issue, I am back to the original "Failed to export report due to damaged software. It is recommended to reinstall the controller." error.
- Copy Link
- Report Inappropriate Content
- Copy Link
- Report Inappropriate Content
It seems like expecting chromium(and everything needed to run it) to be available in something like this which is commonly run out of a lightweight container is somewhat of a flawed expectation to begin with.
- Copy Link
- Report Inappropriate Content
Anyone from tp-link have the software dependencies on the report generation feature?
- Copy Link
- Report Inappropriate Content
- Copy Link
- Report Inappropriate Content
- Copy Link
- Report Inappropriate Content
I first received this one:
Installed the Ubuntu Snap and received this one:
Once I followed the above steps, I was able to export via PDF and CSV.
mbentley wrote
So which error in specific were you getting? What version of Chromium does the ppa you mentioned install?
chromium --version
Chromium 83.0.4103.116 built on Debian bullseye/sid, running on Debian bullseye/sid
- Copy Link
- Report Inappropriate Content
Hi there,
Thank you for coming to TP-Link Community for help!
I'd like to conclude the issue reported here. Hope it helps.
Problem Cause:
Limited by the permission settings of Linux, Linux Controller requires users to install chromium dependencies and ensure that chromium can be executed as root. Installing chromium using snap won't work as it cannot run as root due to the limitations of snap itself.
Solution:
To successfully export the report as PDF from the Report tab, you can follow the suggestion provided by @iamk3 (thank you for sharing your solution in post #8), install the ppa:system76/pop repository, updating apt, and then just "sudo apt install chromium".
So install a third-party ppa and use apt to install chromium on Debian-based distributions (Debian, Ubuntu). After installation, try to execute "sudo chromium" in the terminal. If the browser can be successfully launched, the report should be successfully exported.
- Copy Link
- Report Inappropriate Content
Information
Helpful: 0
Views: 2219
Replies: 10
Voters 0
No one has voted for it yet.