Opened 3 weeks ago

Last modified 11 days ago

#5582 new defect

dbupdate fails with configobj.MissingInterpolationOption error

Reported by: anongoblin Owned by:
Priority: major Milestone:
Component: programming Keywords:
Cc: Parent Tickets:

Description

I am trying to deploy mediagoblin on a Raspberry Pi 3B+ according to the instructions found on https://mediagoblin.readthedocs.io/en/stable/siteadmin/deploying.html. I've tried on both Raspbian Buster and Ubuntu MATE 18.04.2, but they both fail in the same place, as shown below.

mediagoblin@pi-mate:/srv/mediagoblin.example.org/mediagoblin$ ./bin/gmg dbupdate
Traceback (most recent call last):
  File "./bin/gmg", line 11, in <module>
    load_entry_point('mediagoblin', 'console_scripts', 'gmg')()
  File "/srv/mediagoblin.example.org/mediagoblin/mediagoblin/gmg_commands/__init__.py", line 148, in main_cli
    args.func(args)
  File "/srv/mediagoblin.example.org/mediagoblin/mediagoblin/gmg_commands/dbupdate.py", line 235, in dbupdate
    global_config, app_config = setup_global_and_app_config(args.conf_file)
  File "/srv/mediagoblin.example.org/mediagoblin/mediagoblin/init/__init__.py", line 48, in setup_global_and_app_config
    global_config, validation_result = read_mediagoblin_config(config_path)
  File "/srv/mediagoblin.example.org/mediagoblin/mediagoblin/init/config.py", line 89, in read_mediagoblin_config
    mainconfig_defaults = copy.copy(config_spec.get("DEFAULT", {}))
  File "/srv/mediagoblin.example.org/mediagoblin/lib/python3.6/copy.py", line 96, in copy
    rv = reductor(4)
  File "/srv/mediagoblin.example.org/mediagoblin/lib/python3.6/site-packages/configobj-5.0.6-py3.6.egg/configobj.py", line 482, in __reduce__
  File "/srv/mediagoblin.example.org/mediagoblin/lib/python3.6/site-packages/configobj-5.0.6-py3.6.egg/configobj.py", line 557, in __getitem__
  File "/srv/mediagoblin.example.org/mediagoblin/lib/python3.6/site-packages/configobj-5.0.6-py3.6.egg/configobj.py", line 549, in _interpolate
  File "/srv/mediagoblin.example.org/mediagoblin/lib/python3.6/site-packages/configobj-5.0.6-py3.6.egg/configobj.py", line 352, in interpolate
  File "/srv/mediagoblin.example.org/mediagoblin/lib/python3.6/site-packages/configobj-5.0.6-py3.6.egg/configobj.py", line 330, in recursive_interpolate
  File "/srv/mediagoblin.example.org/mediagoblin/lib/python3.6/site-packages/configobj-5.0.6-py3.6.egg/configobj.py", line 417, in _parse_match
  File "/srv/mediagoblin.example.org/mediagoblin/lib/python3.6/site-packages/configobj-5.0.6-py3.6.egg/configobj.py", line 386, in _fetch
configobj.MissingInterpolationOption: missing option "here" in interpolation.

All of the steps leading up to that have executed successfully. I'm attaching the mediagoblin_local.ini file in case I missed something there, but I think everything is correct in it.

Subtickets

Attachments (1)

mediagoblin_local.ini (2.0 KB) - added by anongoblin 3 weeks ago.
Configuration file

Download all attachments as: .zip

Change History (3)

Changed 3 weeks ago by anongoblin

Attachment: mediagoblin_local.ini added

Configuration file

comment:1 Changed 2 weeks ago by Ben Sturmfels

Thanks for taking the time to report this issue. I believe this issue is fixed in the "master" branch of the code. Would you mind testing this please?

In your /srv/mediagoblin.example.org/mediagoblin directory, please run git checkout master and then git pull before trying your dbupdate again. Let us know how you go.

Regards,
Ben

Last edited 2 weeks ago by Ben Sturmfels (previous) (diff)

comment:2 Changed 11 days ago by anongoblin

Thanks! That fixed it.

Note: See TracTickets for help on using tickets.