Skip to content

Instantly share code, notes, and snippets.

@mazz
Created December 7, 2017 01:00
Show Gist options
  • Save mazz/454e85e4e14395ca8666a39078da7f8a to your computer and use it in GitHub Desktop.
Save mazz/454e85e4e14395ca8666a39078da7f8a to your computer and use it in GitHub Desktop.
ansible error
fatal: [kjvrvg_production]: FAILED! => {"changed": true, "cmd": ["/srv/pyramid/kjvrvg/venv/bin/ws-alembic", "-c", "/srv/pyramid/kjvrvg/faithfulaudio/kjvrvg/conf/generated.ini", "upgrade", "head"], "delta": "0:00:01.357724", "end": "2017-12-06 03:30:09.818628", "failed": true, "invocation": {"module_args": {"_raw_params": "/srv/pyramid/kjvrvg/venv/bin/ws-alembic -c /srv/pyramid/kjvrvg/faithfulaudio/kjvrvg/conf/generated.ini upgrade head", "_uses_shell": false, "chdir": "/srv/pyramid/kjvrvg", "creates": null, "executable": null, "removes": null, "warn": true}, "module_name": "command"}, "rc": 1, "start": "2017-12-06 03:30:08.460904", "stderr": "Traceback (most recent call last): File \"/srv/pyramid/kjvrvg/venv/bin/ws-alembic\", line 11, in <module>
load_entry_point('websauna', 'console_scripts', 'ws-alembic')()
File \"/srv/pyramid/kjvrvg/venv/src/websauna/websauna/system/devop/scripts/alembic.py\", line 21, in main
load_entry_point('alembic', 'console_scripts', 'alembic')()
File \"/srv/pyramid/kjvrvg/venv/lib/python3.5/site-packages/alembic/config.py\", line 479, in main
CommandLine(prog=prog).main(argv=argv)
File \"/srv/pyramid/kjvrvg/venv/lib/python3.5/site-packages/alembic/config.py\", line 473, in main
self.run_cmd(cfg, options)
File \"/srv/pyramid/kjvrvg/venv/lib/python3.5/site-packages/alembic/config.py\", line 456, in run_cmd
**dict((k, getattr(options, k, None)) for k in kwarg)
File \"/srv/pyramid/kjvrvg/venv/lib/python3.5/site-packages/alembic/command.py\", line 234, in upgrade
script = ScriptDirectory.from_config(config)
File \"/srv/pyramid/kjvrvg/venv/lib/python3.5/site-packages/alembic/script/base.py\", line 113, in from_config
script_location = config.get_main_option('script_location')
File \"/srv/pyramid/kjvrvg/venv/lib/python3.5/site-packages/alembic/config.py\", line 268, in get_main_option
return self.get_section_option(self.config_ini_section, name, default)
File \"/srv/pyramid/kjvrvg/venv/lib/python3.5/site-packages/alembic/config.py\", line 251, in get_section_option
if not self.file_config.has_section(section):
File \"/srv/pyramid/kjvrvg/venv/lib/python3.5/site-packages/alembic/util/langhelpers.py\", line 239, in __get__
obj.__dict__[self.__name__] = result = self.fget(obj)
File \"/srv/pyramid/kjvrvg/venv/lib/python3.5/site-packages/alembic/config.py\", line 182, in file_config
file_config.read([self.config_file_name])
File \"/usr/lib/python3.5/configparser.py\", line 696, in read
self._read(fp, filename)
File \"/srv/pyramid/kjvrvg/venv/src/websauna/websauna/utils/config/includer.py\", line 56, in _read
self.process_includes(fpname)
File \"/srv/pyramid/kjvrvg/venv/src/websauna/websauna/utils/config/includer.py\", line 125, in process_includes
self.read_include(include, fpname)
File \"/srv/pyramid/kjvrvg/venv/src/websauna/websauna/utils/config/includer.py\", line 95, in read_include
fp = self.resolve(include_file, fpname)
File \"/srv/pyramid/kjvrvg/venv/src/websauna/websauna/utils/config/includer.py\", line 81, in resolve
if not _resource_manager.resource_exists(req, path):
File \"/srv/pyramid/kjvrvg/venv/lib/python3.5/site-packages/pkg_resources/__init__.py\", line 1215, in resource_exists
return get_provider(package_or_requirement).has_resource(resource_name)
File \"/srv/pyramid/kjvrvg/venv/lib/python3.5/site-packages/pkg_resources/__init__.py\", line 436, in get_provider
return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
File \"/srv/pyramid/kjvrvg/venv/lib/python3.5/site-packages/pkg_resources/__init__.py\", line 984, in require
needed = self.resolve(parse_requirements(requirements))
File \"/srv/pyramid/kjvrvg/venv/lib/python3.5/site-packages/pkg_resources/__init__.py\", line 870, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'kjvrvg' distribution was not found and is required by the application", "stdout": "", "stdout_lines": [], "warnings": []}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment