|
Page 1 of 1 |
|
Posted: Mon, 7th Oct 2024 16:55 Post subject: [Solved] onedrive via rclone |
|
 |
Ok, so I hope this is the right forum for this. I have been bashing my head against the wall these last days to figure this one out. ChatGPT also didn't help.
I am running a (rented) VPS with Ubuntu 22.04. The main idea is to host Plex and then, due to limited storage on the VPS, link it to OneDrive, so Plex can stream the movies directly from there.
I managed to set up Plex and it generally works, it can play files locally from the VPS. Plex is using the directories /media/movies and /media/tv. I set up rclone and the folder /home/administrator/onedrive is now linked to onedrive.
Now where I get issues is connecting giving Plex access to those folders:
- In the Plex web interface, I cannot access those folders, because plex uses the "plex" user, but the mounted folder sits in the home directory of the administrator user.
- I tried to put the rclone mount into the topmost directory (in root), but then I get an error that I do not have the access rights for this.
- I also tried putting a symlink between the working mounted /onedrive folder in the home part to the /media directory, but that doesn't really seem to work either.
Does anybody have any ideas? I am not super good with this command-line linux stuff, but any suggestions on the general setup (like for example, which folders should be where) would already help.
“The only way to deal with an unfree world is to become so absolutely free that your very existence is an act of rebellion.”
- Albert Camus
Last edited by bringiton on Tue, 8th Oct 2024 17:00; edited 1 time in total
|
|
Back to top |
|
 |
|
Posted: Mon, 7th Oct 2024 17:35 Post subject: |
|
 |
I don't think this belongs here but in Operating Systems.
Anyway, this should be possible if you first make a dir with proper rights and then rclone mount into it. But performance will be terrible as you'd do OneDrive > VPS > own thing. I doubt it'll work well.
PC: Yes. Console: No.
|
|
Back to top |
|
 |
|
Posted: Mon, 7th Oct 2024 17:39 Post subject: |
|
 |
I created a folder for the plex user, which works:
drwxrwxr-x 2 777 plex 4096
However, once I mount onedrive to it via rclone, rclone then changes ownership of that folder to the user running rclone, which is administrator.
Like, in Plex I can access the (then empty) folder just fine before mounting rclone. Once I mount it, in the Plex web interface, the folder is greyed out and I cannot access it anymore.
“The only way to deal with an unfree world is to become so absolutely free that your very existence is an act of rebellion.”
- Albert Camus
|
|
Back to top |
|
 |
|
Posted: Mon, 7th Oct 2024 18:21 Post subject: |
|
 |
I'm not entirely sure why you'd use Onedrive and rclone, it's my understanding that rclone will simply download the files to the VPS and then essentially use up all the free space on the VPS.
You could change your plex server/service to run as administrator, that could fix the permissions
|
|
Back to top |
|
 |
|
Posted: Tue, 8th Oct 2024 17:00 Post subject: |
|
 |
Thanks. I managed to get it fixed, it had something to do with fuse not being properly configured, even though it comes with the Kernel. Playing around with that fixed it.
And no, rclone would not fully download the file, unless you instruct it to.
“The only way to deal with an unfree world is to become so absolutely free that your very existence is an act of rebellion.”
- Albert Camus
|
|
Back to top |
|
 |
Page 1 of 1 |
All times are GMT + 1 Hour |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB 2.0.8 © 2001, 2002 phpBB Group
|
|
 |
|