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

Report download unavailable and 'reports' directory created with owner as root #1093

Open
duncangreene opened this issue Jan 30, 2025 · 2 comments

Comments

@duncangreene
Copy link

Describe the bug
Strange one... A colleague ran a test on a device and is encountering the below when attempting to download the report file(s).

Image

Corresponding line in Testrun output.

Image

See below ls -l.

Image

I did wonder whether case sensitivity/similarity of device names thus directory names may be a contributor somewhere along the line? The testrun process was started as ossadmin using sudo testrun and has been running for a number of days with other reports accessible without issue.

Interestingly, even after suitable chown -R of the affected reports directory...

Image

...the report(s) are still unavailable for download.

Image

Error logs
This is the reports directory, containing 2 tests. The first one (that colleague was trying to initially download above), and a second one that should contain more useful info in the testrun.log file.

reports.zip

Environment (please provide the following information about your setup):

  • Version: 2.1

Additional context
Only modifications from official 2.1 release are as below.

  • resources/test_packs/qualification.json (Set tests to excluded/recommended/informational as appropriate)
  • resources/devices/device_profile.json (Add custom questions)
@duncangreene
Copy link
Author

For the avoidance of doubt in case the similarity in directory names is a cause of concern, the two devices/directories do relate to two completely separate physical Tridium JACE 8000's with 2 entirely different configurations/ports open/etc.

Image

@duncangreene
Copy link
Author

We were able to recreate the root issue by doing the following.

  1. Add device with Manufacturer as "Delta".
  2. Run test on device and let it complete.
  3. Edit the device and change Manufacturer to "Delta Controls".
  4. Run test on device and let it complete.

You can see the root ownership in the below comparison of an unedited (Eurotech) and edited (Delta Controls) device folder.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant