Overview
M-Files Hubshare introduced a new architecture after version 5.0.17.x, the final release to run on Windows Server. Versions 25.xx and later run on Linux. This article explains how to access product logs when needed.
If you use Hubshare on-premises version 25.xx or later, Hubshare runs on Linux in a Docker container. The following steps explain how to view product logs for troubleshooting and collect the log files when necessary.
Solution
1. View live container logs (recent activity)
Open a shell in the Hubshare container:
bash
docker exec -it hubshare-bundle bash
View the logs for the relevant component:
bash
docker logs bundle-webapp
docker logs bundle-backgroundworker
bundle-webapp contains web application logs.
bundle-backgroundworker contains logs for background tasks, such as sending emails.
When finished, type exit to leave the container.
2. Access historical log files on disk
Daily log files are stored in the following location within the package folder:
hubshare-onprem/mounted/hubshare_storage/Storage/logs/
Look for files named WebApp_<date>.log and BackgroundWorker_<date>.log.
As it should look like this:
Note: hubshare-onprem is the default folder name. If you renamed the folder when unpacking the package, use your chosen name instead.
To send us the logs, compress them (choose the ones related to the date of the issue) to a .ZIP package and send them to M-Files Support by following these instructions: How-to-Send-Files-via-CryptShare-Portal
