Nuxeo Drive - Creating config.ini file

I'm trying to create a config.ini to deploy with the Nuxeo Drive setup for Windows. The setup fails when it hits the feature parameter of the ini. I'm confused how to write the feature parameter and the instructions from https://doc.nuxeo.com/client-apps/nuxeo-drive/#features are a bit confusing.

This is my ini file:

[DEFAULT]
env = custom

[custom]
channel = release
use-analytics = False
feature auto_updates = false

Error:

Traceback (most recent call last):
  File "nxdrive\options.py", line 340, in set
KeyError: 'feature auto_updates'

RuntimeError: 'feature auto_updates' is not a recognized parameter. From 'C:\\Users\\bryce.bolton\\.nuxeo-drive\\config.ini', section [custom].

Logs before the crash:

2020-07-21 15:25:34 13804 10348 INFO     nxdrive.options    Option 'channel' updated: 'centralized' -> 'release' [local]
2020-07-21 15:25:34 13804 10348 DEBUG    nxdrive.options    Options(channel[local]='release')
2020-07-21 15:25:34 13804 10348 INFO     nxdrive.options    Option 'use_analytics' updated: False -> False [local]
2020-07-21 15:25:34 13804 10348 INFO     nxdrive.options    Option 'use_sentry' updated: True -> True [local]
0 votes

2 answers

151 views

ANSWER



Hello,

The correct content should be:

[DEFAULT]
env = custom

[custom]
channel = release
use-analytics = False
feature.auto_update = false

In fact, each option should be a simple string without spaces.

I will fix the documentation because if is mixing auto-updates and auto-update (without “s”) and will fix the example to ease understanding.

If I may, you opened another question about a global deployment: maybe it would be better/easier to set global options instead of having to create a config file for each user.

1 votes



Thank you for the clarification Did not know about the global options.. Indeed that looks to be the better choice.

1 votes