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

Permission error when creating directory on startup #768

Open
ajk1982 opened this issue Oct 4, 2024 · 1 comment
Open

Permission error when creating directory on startup #768

ajk1982 opened this issue Oct 4, 2024 · 1 comment

Comments

@ajk1982
Copy link

ajk1982 commented Oct 4, 2024

I am not sure the best way to fix this permission issue when starting Riven:

24-10-04 10:21:39 | 🤖 PROGRAM | program.start - Riven v0.15.3 starting!
24-10-04 10:21:40 | ✔️ SUCCESS | plex_watchlist.init - Plex Watchlist initialized!
24-10-04 10:21:40 | ✔️ SUCCESS | torrentio.init - Torrentio initialized!
24-10-04 10:21:40 | ❌ ERROR | symlink.create_initial_folders - Permission denied when creating directory: [Errno 13] Permission denied: '/mnt/plex/movies'

@ajk1982
Copy link
Author

ajk1982 commented Oct 4, 2024

OK - I am running as root so I used:

  • PUID=0 ## Running as root user
  • PGID=0 ## Running as root group

Now all appears happy accord to log but I get no symlinks:
24-10-04 12:21:59 | 🤖 PROGRAM | program.start - Riven v0.15.3 starting!
24-10-04 12:21:59 | ✔️ SUCCESS | plex_watchlist.init - Plex Watchlist initialized!
24-10-04 12:21:59 | ✔️ SUCCESS | torrentio.init - Torrentio initialized!
24-10-04 12:21:59 | 📰 INFO | symlink.init - Rclone path symlinks are pointed to: /mnt/remote/realdebrid/torrents
24-10-04 12:21:59 | 📰 INFO | symlink.init - Symlinks will be placed in: /mnt/plex
24-10-04 12:21:59 | ✔️ SUCCESS | symlink.init - Symlink initialized!
24-10-04 12:21:59 | ✔️ SUCCESS | plex.init - Plex Updater initialized!
24-10-04 12:21:59 | 🔗 DEBRID | realdebrid.validate - Your account expires in 176 days.
24-10-04 12:22:01 | 🤖 PROGRAM | program._init_db_from_symlinks - Collecting items from symlinks, this may take a while depending on library size
24-10-04 12:22:02 | ✔️ SUCCESS | program._init_db_from_symlinks - Database initialized, time taken: h00:m00:s00
24-10-04 12:22:02 | 🗃️ ITEM | program.start - Movies: 0 (Symlinks: 0)
24-10-04 12:22:02 | 🗃️ ITEM | program.start - Shows: 0
24-10-04 12:22:02 | 🗃️ ITEM | program.start - Seasons: 0
24-10-04 12:22:02 | 🗃️ ITEM | program.start - Episodes: 0 (Symlinks: 0)
24-10-04 12:22:02 | 🗃️ ITEM | program.start - Total Items: 0 (Symlinks: 0)
24-10-04 12:22:02 | 🐞 DEBUG | program._schedule_services - Scheduled PlexWatchlist to run every 30 seconds.
24-10-04 12:22:02 | 🐞 DEBUG | program._schedule_functions - Scheduled _retry_library to run every 600 seconds.
24-10-04 12:22:02 | 🐞 DEBUG | program._schedule_functions - Scheduled log_cleaner to run every 3600 seconds.
24-10-04 12:22:02 | 🐞 DEBUG | program._schedule_functions - Scheduled vacuum_and_analyze_index_maintenance to run every 86400 seconds.
24-10-04 12:22:02 | ✔️ SUCCESS | program.start - Riven is running!
24-10-04 12:22:02 | 🐞 DEBUG | event_manager.submit_job - Submitting service PlexWatchlist to be executed
24-10-04 12:22:02 | 🐞 DEBUG | event_manager._find_or_create_executor - Created executor for PlexWatchlist with 1 max workers.
24-10-04 12:22:02 | 🛢️ DATABASE | db.vacuum_and_analyze_index_maintenance - VACUUM and ANALYZE completed successfully.
24-10-04 12:22:03 | 👾 API | main.dispatch - GET / - 200 - 0.00s
24-10-04 12:22:07 | 🐞 DEBUG | event_manager._process_future - Service PlexWatchlist executed
24-10-04 12:22:32 | 🐞 DEBUG | event_manager.submit_job - Submitting service PlexWatchlist to be executed
24-10-04 12:22:32 | 🐞 DEBUG | event_manager._find_or_create_executor - Executor for PlexWatchlist found.

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