Discussion:
[s3ql] backend-options not working in authinfo2
Cliff Stanford
2018-08-26 14:25:31 UTC
Permalink
My authinfo2 file looks like this:

[s3]
storage-url: s3://
backend-login: XXXXXXXXX
backend-password: yyyyyyyyyyyyyyyyyyyy
fs-passphrase: password

[communigate.may.be]
storage-url: s3://eu-west-1/communigate.may.be
fs-passphrase: Something Secret
backend-options: ia
allow-root: true

The allow-root option works OK but the backend-options line causes an
exception:

ERROR: Uncaught top-level exception:
Traceback (most recent call last):
File "/usr/local/bin/mount.s3ql", line 11, in <module>
load_entry_point('s3ql==2.29', 'console_scripts', 'mount.s3ql')()
File
"/usr/local/lib/python3.6/dist-packages/s3ql-2.29-py3.6-linux-x86_64.egg/s3ql/mount.py",
line 125, in main
backend_factory = get_backend_factory(options)
File
"/usr/local/lib/python3.6/dist-packages/s3ql-2.29-py3.6-linux-x86_64.egg/s3ql/common.py",
line 260, in get_backend_factory
backend = options.backend_class(options)
File
"/usr/local/lib/python3.6/dist-packages/s3ql-2.29-py3.6-linux-x86_64.egg/s3ql/backends/s3.py",
line 45, in __init__
super().__init__(options)
File
"/usr/local/lib/python3.6/dist-packages/s3ql-2.29-py3.6-linux-x86_64.egg/s3ql/backends/s3c.py",
line 70, in __init__
options.backend_options.get('ssl-ca-path', None))
AttributeError: 'str' object has no attribute 'get'

Am I doing something wrong? Or is it a bug?

Regards
Cliff.
--
Cliff Stanford
London: +44 20 0222 1666 Swansea: +44 1792 469666
Spain: +34 603 777 666 Estonia: +372 5308 9666
UK Mobile: +44 7973 616 666
--
You received this message because you are subscribed to the Google Groups "s3ql" group.
To unsubscribe from this group and stop receiving emails from it, send an email to s3ql+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Nikolaus Rath
2018-08-26 17:03:44 UTC
Permalink
Post by Cliff Stanford
[s3]
storage-url: s3://
backend-login: XXXXXXXXX
backend-password: yyyyyyyyyyyyyyyyyyyy
fs-passphrase: password
[communigate.may.be]
storage-url: s3://eu-west-1/communigate.may.be
fs-passphrase: Something Secret
backend-options: ia
From memory: Use

ia: true
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
--
You received this message because you are subscribed to the Google Groups "s3ql" group.
To unsubscribe from this group and stop receiving emails from it, send an email to s3ql+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Cliff Stanford
2018-08-29 12:25:43 UTC
Permalink
Post by Nikolaus Rath
From memory: Use
ia: true
That works, thank you. Also

allow-root: true

seems to work but

allow-other: true

doesn't seem to.

Cliff.
--
Cliff Stanford
London: +44 20 0222 1666 Swansea: +44 1792 469666
Spain: +34 603 777 666 Estonia: +372 5308 9666
UK Mobile: +44 7973 616 666
--
You received this message because you are subscribed to the Google Groups "s3ql" group.
To unsubscribe from this group and stop receiving emails from it, send an email to s3ql+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Nikolaus Rath
2018-08-29 16:32:21 UTC
Permalink
Post by Cliff Stanford
Post by Nikolaus Rath
From memory: Use
ia: true
That works, thank you. Also
allow-root: true
seems to work but
allow-other: true
doesn't seem to.
That's surprising, neither should work since neither is a valid
--backend-options value.


Best,
-Nikolaus
--
GPG Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

»Time flies like an arrow, fruit flies like a Banana.«
--
You received this message because you are subscribed to the Google Groups "s3ql" group.
To unsubscribe from this group and stop receiving emails from it, send an email to s3ql+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...