Closed codergitrf closed 1 month ago
@codergitrf
I set the download only flag to true in the config file however when I test it by placing a new file into the local directory, it eventually uploads. I'm running it as a service and yes I restart it after setting the config file etc.
This is 100% impossible due to how the client code works.
The only scenario here is if you have 2 running systemd services running - which if you ever installed via a package, you would have a hidden systemd service running with a default configuration.
I suspect you 99.99% have a mis-configuration going on here and I can 100% say that there is no 'download only' bug that stuff gets uploaded with - as this is 100% technically impossible when 'download only' is correctly set.
I'm actually only doing this because of another bug, which is when I unplug my external hdd's (which my onedrive resides on) it deleted everything from my online onedrive, I guess it made the assumption that because drive was gone everything was deleted, seems like a bit of an issue.
Correct - if you are mounting a drive and storing your data on a second drive, and this drive disappears the client has zero knowledge that the drive disappeared and assumes you deleted your data.
Please read the documentation regarding this situation and how to configure your system and the application to prevent a drive removal causing deletion:
Closing this issue as this is 99.9999999% not a bug but end-user configuration issue, and the data on a mounted external drive needs to be setup correctly.
Some of the other parameters seem to work such as sync directory etc. How would I check and turn this hidden service off?
I just interact with the service normally using commands like systemctl --user status onedrive
Please read all documents and install the client correctly for your platform
Are you saying I need to reinstall it? I installed for rpi previously following your instructions https://github.com/abraunegg/onedrive/blob/master/docs/INSTALL.md
And then I interact with the service as described.
I don't think this is the issue, because like I said some of the other commands work such as path location. If there was another config file then the path I set on the external drive wouldn't have worked and the data is there.
Are you saying I need to reinstall it? I installed for rpi previously following your instructions https://github.com/abraunegg/onedrive/blob/master/docs/INSTALL.md
So .. for an RPi platform you have 2 methods:
Now .. what many folk do is that they always seem to install the distribution package of the client first, then realise something is not working. It is this package that causes the hidden systemd service.
Please read all the available documentation.
Steps to resolve
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Describe the bug
I set the download only flag to true in the config file however when I test it by placing a new file into the local directory, it eventually uploads. I'm running it as a service and yes I restart it after setting the config file etc.
I'm actually only doing this because of another bug, which is when I unplug my external hdd's (which my onedrive resides on) it deleted everything from my online onedrive, I guess it made the assumption that because drive was gone everything was deleted, seems like a bit of an issue.
Operating System Details
Client Installation Method
From Source
OneDrive Account Type
Personal
What is your OneDrive Application Version
2.4.25
What is your OneDrive Application Configuration
What is your 'curl' version
Where is your 'sync_dir' located
Local
What are all your system 'mount points'
What are all your local file system partition types
How do you use 'onedrive'
na
Steps to reproduce the behaviour
na
Complete Verbose Log Output
Screenshots
No response
Other Log Information or Details
No response
Additional context
No response