Pectojin / duplicati-client

A command line client for controlling the Duplicati Server
GNU Lesser General Public License v2.1
75 stars 20 forks source link

Parameter file not picking up password #3

Closed mjmayer closed 6 years ago

mjmayer commented 6 years ago

I defined the password to connect to my duplicati server in /root/.config/duplicati-client/config.yml. When I used the command duc login I get prompted for a password. However, if I provide the password inline when running duc ( duc login --password=mysecretpassword) it connects without any problem.

I've run the command duc config and from the output it looks like it is reading the config file just fine.

[root@501edab9e2a2 duplicati-client]# duc config
last_login: 2018-03-28 21:45:58.830249
nonce: mjVXSSGrUswurNIWhXqOVBe+ii3R6N5GbMWeJxf+HP8=
parameters_file: /root/.config/duplicati_client/parameters.yml
password: mysecretpassword
server:
  port: '8200'
  protocol: http
  url: myserver.domain.net
  verify: true
session-auth: ZSKYaSx-xt9EvizWIucQ_J32L6sXB6hX3ZhPEuoT9b4
token: ORicSp0PRvj2EV0N1yEZvjUszNORhjKo3P1GnY9eXCM=
token_expires: 2018-03-28 21:56:04.389765
verbose: true
mjmayer commented 6 years ago

I worked through this again today. I misunderstood what the process is. Here is the steps I used to get duplicati_client connecting with a password in a parameters.yml file.

  1. Create parameters file
  2. Import parameters with duc params ~/.config/duplicati-client/parameters.yml
  3. Import automatically creates config.yml file
  4. Connect to duplicati client duc login http://localhost:8200