rivenmedia / riven

Handle your Media Library with ease!
https://rivenmedia.github.io/wiki/
GNU General Public License v3.0
367 stars 51 forks source link

Permission error when creating directory on startup #768

Open ajk1982 opened 3 weeks ago

ajk1982 commented 3 weeks ago

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 commented 3 weeks ago

OK - I am running as root so I used:

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.