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

username password not used #21

Open
thuer-it opened this issue Dec 25, 2024 · 3 comments
Open

username password not used #21

thuer-it opened this issue Dec 25, 2024 · 3 comments

Comments

@thuer-it
Copy link

Hi,

neither netrc nor config file is used for username and password.
If I'm deleting netrc file, I'm getting file missing: .netrc

br
Andreas

@hoylen
Copy link
Member

hoylen commented Dec 25, 2024

If I'm deleting netrc file, I'm getting file missing: .netrc

That is expected behaviour: if the file is deleted, it is missing.

neither netrc nor config file is used for username and password

That is a mystery. I suggest you debug what the script is trying to do by running it with bash -x nextcloud-sync-cron.sh ... so it prints out every command it is running. Then you can see what arguments it is using to invoke nextcloudcmd in either line 592 (if using username and password from the config file) or 605 (if using .netrc).

If those parameters look correct, then it might be a problem with your particular copy of nextcloudcmd. NextCloud may have changed how it works and made it incompatible with nextcloud-sync-cron.sh.

@thuer-it
Copy link
Author

thuer-it commented Dec 26, 2024

my mistake, I was using wrong config file.
But with ~/.netrc file, it's still not working

cat ~/.netrc default login andxxxx password nTdEH-xxxxx-xxxx-xxxxx-xxxx

br
Andreas

@hoylen
Copy link
Member

hoylen commented Dec 26, 2024

I assume your example is misformated, and is supposed to be on two lines (i.e. the .netrc file does not start with "cat").

Try to manually run nextcloudcmd and get it working with your .netrc file, since the nextcloud-sync-cron.sh script just invokes nextcloudcmd with the -n option (which tells it to use the .netrc file for the login credentials). There might a problem between nextcloudcmd and the .netrc file, so check for that first; before trying to find out if there is a problem between nextclod-sync-cron.sh and nextcloudcmd.

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

2 participants