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

Not working anymore auth_username ignored OpenStack v3 Infomaniak (2.0.8.1_beta_2024-05-07) #5188

Closed
2 tasks done
ericjamesbye7 opened this issue May 14, 2024 · 5 comments · Fixed by #5191
Closed
2 tasks done

Comments

@ericjamesbye7
Copy link

  • I have searched open and closed issues for duplicates.
  • I have searched the forum for related topics.

Environment info

  • Duplicati version: 2.0.8.1_beta_2024-05-07
  • Operating system: Windows 11 23H2
  • Backend: Infomaniak

Description

Using Duplicati 2.0.7.1 with Infomaniak without issues.
Process: always using the user and password provided by Infomaniak
After the update, I wanted to change the filters and now it seems Duplicati is not able to save auth-username and auth-password anymore. Testing connextion displays "Failed to connect: Missing required option: auth-username". I've decided to add the missing fields in Advanced options but the test cx replies (502) invalid gateway.
Please note

  • if I use the command line (from a backup config file), everything is OK
  • if I use OneDrive with token, everything is OK

Steps to reproduce

  1. upgrade from 2.0.7.1 to 2.0.8.1_beta
  2. Just edit the Backup task and go on Test connexion: failed.
  • Actual result:
    The connection is KO (according to the process I've described)
  • Expected result:
    The connection should be OK, ofc

Debug log

Where are the logs ?
Nothing in %LOCALAPPDATA%\Duplicati

Thank you for your investigation

Best regards
EJB

@Jojo-1000
Copy link
Contributor

Can you provide more information about the backend type (what is selected in the GUI)? You can also try to export the URL and see if the options are there. That is in the dot menu for the destination. It should match what you have in your backup config.

This might be related to #4972, but only if your path has backslashes.

I've decided to add the missing fields in Advanced options but the test cx replies (502) invalid gateway.

If you add the advanced options in Step 5, the Step 2 test command doesn't use it. You could still try a verify from the main backup list to see if it works.

@ericjamesbye7
Copy link
Author

Hello Jan

Please find the 2 ScS below.
Note, on the 2nd one, the input name/id is not auth_username but openstack_username. Is it logical ? (just for my information).
About the export, the main difference between my old working save confFile and the new KO one is in the field TargetURL.
The url parameters &auth-username=blabla and &auth-password=bla-blabla are missing.

Thanks
Best regards
EJB

duplicati_issues_5188-00
duplicati_issues_5188-01

@Jojo-1000
Copy link
Contributor

The input fields are fine. The relevant part is ng-model="$parent.Username" which will bind the value to the internal variable.

I see what went wrong. In #4973 I fixed an issue that the username and password were added in backends where there are no input fields for it. So, there is a choice whether it should include them. It seems that I missed that the openstack backend has those fields and put in the wrong type.

EditUriBackendConfig.merge_in_advanced_options(scope, opts, false);

should be true instead of false.

I am not sure how long a fix will take to be released, since there is currently some work on changing the .NET version. For right now, if you are able to use the browser developer tools you can temporarily fix this to save the backup correctly:

  • Go to the Sources tab
  • Find ngax/scripts/services/EditUriBuiltins.js
  • Change line 731 (see above) to
    EditUriBackendConfig.merge_in_advanced_options(scope, opts, true);
    
  • Save the file with Ctrl+S. Do not reload the page until you saved the configuration
  • Edit the backup and save it. Test connection should also work

@ericjamesbye7
Copy link
Author

Hello again
Thanks for the feedback.
For now, I have deleted the backup (not the db & files) and I have recreated the backup thanks to the config file I had saved, sort of backup of the backup :o)

For people, the workaround can be done like that :

  • export the KO backup
  • edit this file and modify the field TargetURL by adding the missing parameters &auth-username=blabla and &auth-password=bla-blabla
  • save the file... yes, really...
  • create a new backup task (you have deleted the existing one without removing files and local database) with the option Import from a file and choose the option Save immediately

Like that, it works

Have a good day and backup

Best regards
EJB

@duplicatibot
Copy link

This issue has been mentioned on Duplicati. There might be relevant details there:

https://forum.duplicati.com/t/mandatory-option-missing-auth-username/17977/2

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

Successfully merging a pull request may close this issue.

3 participants