Closed avdata99 closed 1 year ago
If the expire_api_token plugin is enabled we need to define expires_in and unit parameters
expire_api_token
expires_in
unit
The environment variables DATAPUSHER_TOKEN_EXPIRES_IN and DATAPUSHER_TOKEN_EXPIRES_UNIT are proposed to fix a build error
DATAPUSHER_TOKEN_EXPIRES_IN
DATAPUSHER_TOKEN_EXPIRES_UNIT
Traceback (most recent call last): ckan-dev4 | File "/usr/bin/ckan", line 8, in ckan-dev4 | sys.exit(ckan()) ckan-dev4 | File "/usr/lib/python3.10/site-packages/click/core.py", line 1130, in __call__ ckan-dev4 | return self.main(*args, **kwargs) ckan-dev4 | File "/usr/lib/python3.10/site-packages/click/core.py", line 1055, in main ckan-dev4 | rv = self.invoke(ctx) ckan-dev4 | File "/usr/lib/python3.10/site-packages/click/core.py", line 1657, in invoke ckan-dev4 | return _process_result(sub_ctx.command.invoke(sub_ctx)) ckan-dev4 | File "/usr/lib/python3.10/site-packages/click/core.py", line 1657, in invoke ckan-dev4 | return _process_result(sub_ctx.command.invoke(sub_ctx)) ckan-dev4 | File "/usr/lib/python3.10/site-packages/click/core.py", line 1657, in invoke ckan-dev4 | return _process_result(sub_ctx.command.invoke(sub_ctx)) ckan-dev4 | File "/usr/lib/python3.10/site-packages/click/core.py", line 1404, in invoke ckan-dev4 | return ctx.invoke(self.callback, **ctx.params) ckan-dev4 | File "/usr/lib/python3.10/site-packages/click/core.py", line 760, in invoke ckan-dev4 | return __callback(*args, **kwargs) ckan-dev4 | File "/srv/app/src/ckan/ckan/cli/user.py", line 200, in add_token ckan-dev4 | token = logic.get_action(u"api_token_create")( ckan-dev4 | File "/srv/app/src/ckan/ckan/logic/__init__.py", line 551, in wrapped ckan-dev4 | result = _action(context, data_dict, **kw) ckan-dev4 | File "/srv/app/src/ckan/ckan/logic/action/create.py", line 1524, in api_token_create ckan-dev4 | raise ValidationError(errors) ckan-dev4 | ckan.logic.ValidationError: None - {'expires_in': ['Missing value'], 'unit': ['Missing value']} postgresql4 | 2023-06-27 18:21:02.796 UTC [65] LOG: unexpected EOF on client connection with an open transaction ckan-dev4 | /srv/app/start_ckan_development.sh: Running init file /docker-entrypoint.d/01_lower_ckan_log_level.sh
If the
expire_api_token
plugin is enabled we need to defineexpires_in
andunit
parametersThe environment variables
DATAPUSHER_TOKEN_EXPIRES_IN
andDATAPUSHER_TOKEN_EXPIRES_UNIT
are proposed to fix a build error