Skip to content

Conversation

@Ellaharding1
Copy link
Contributor

Description
Fixes #14 - File permission issue for data-downloader generated JSON files
Problem
The data-downloader scanner was creating JSON files (runs.json, scanner_status.json, sensors.json) with restrictive permissions (-rw-------), preventing other components and the VS Code coder user from reading them. This caused "NoPermissions" errors when trying to access the files.
Solution
Modified the _write_file method in backend/storage.py to set proper file permissions using chmod(0o664). This ensures all generated JSON files have -rw-rw-r-- permissions (readable by owner, group, and others).
Changes

Updated backend/storage.py: Added tmp_path.chmod(0o664) to set group-readable permissions on temporary files before moving them to their final location

@haoruizhou haoruizhou merged commit a0bb68a into main Nov 20, 2025
6 of 8 checks passed
@Ellaharding1 Ellaharding1 deleted the fix-json-permissions branch November 21, 2025 01:06
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

Successfully merging this pull request may close these issues.

file permission for data-downloader generated json

3 participants