Giter Site home page Giter Site logo

Comments (5)

Pectojin avatar Pectojin commented on June 28, 2024

What system is this running on, Python version, and the parameters provided?

I'm thinking it could be something related to the introduction of basic auth support right after 1ef7646, but I can't seem to replicate this on my system.

Are you able to reach http://duplicati:8200/login.cgi using for example cURL to make a post request?

# curl 'http://localhost:8200/login.cgi' --data 'get-nonce=1'

from duplicati-client.

mjmayer avatar mjmayer commented on June 28, 2024

I'm running alpine linux 3.7.0 and python 3.6.3 .The only parameters I'm providing are in the parameters.yml file

password: secret-password
url: duplicati
verbose: True

Contents of config.yml

/ # cat ~/.config/duplicati-client/config.yml
authorization: ''
last_login: null
parameters_file: /root/.config/duplicati-client/parameters.yml
server:
  port: '8200'
  protocol: http
  url: duplicati
  verify: true
token: null
token_expires: 2018-05-18 19:33:20.212126
verbose: true
/ # duc version
Duplicati client version 0.3.9
/ # curl 'http://duplicati:8200/login.cgi' --data 'get-nonce=1'
{
  "Status": "OK",
  "Nonce": "2XVybvEdC1JDUvE+3/8BlIRdjQC+IlUt21nhu8CCHaA=",
  "Salt": "mwtVqXW0mHHUr7Tgy4Elz1t9x3JwwCtAmA5+oNHi8Qc="
/ # duc login
Loaded 3 parameters from file
Connecting to http://duplicati:8200...
Getting nonce and salt...
Error getting salt from server
Code: 404

from duplicati-client.

Pectojin avatar Pectojin commented on June 28, 2024

Hmm, I have this replicated in a docker container running same alpine/python versions. Pretty odd it doesn't happen on Ubuntu 16.04/Python 3.6.3 or MacOS/Python 3.6.4. I'd expect Alpine to be more similar to Ubuntu than MacOS.

It's something I committed in 5b98a1c that's to blame, but I'll need to sit down tonight to figure out exactly what.

from duplicati-client.

Pectojin avatar Pectojin commented on June 28, 2024

Now I understand nothing. I came back to troubleshoot the issue now and I can no longer replicate it.

Still running Alpine 3.7.0 + Python 3.6.3 in a docker container against my 2.0.3.6_canary Duplicati server.

It would fail every time, when I tested 8 hours ago, but now it works every time. Regardless of what version I use and regardless of whether I connect directly or through Apache.

Edit: It's worth noting that the 404 error comes directly from the Duplicati server so maybe it's external from the client?? My first assumption was that the client was somehow sending a GET instead of POST to SERVER/login.cgi, which only works if it's a POST request, but if that was the issue then it would be consistent...

from duplicati-client.

mjmayer avatar mjmayer commented on June 28, 2024

from duplicati-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.