Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Issue in Packer process & Docs #239

Open
Ph4rell opened this issue Mar 6, 2019 · 0 comments
Open

Issue in Packer process & Docs #239

Ph4rell opened this issue Mar 6, 2019 · 0 comments

Comments

@Ph4rell
Copy link

Ph4rell commented Mar 6, 2019

Summary

Hi, i tried to follow the Packer Documentation to mount an EC2.
https://github.com/RiotGames/cloud-inquisitor/blob/5dc1602a78731bbdc910883842e1cb52daa74c40/docs/quickstart.rst

  • The part with the configuration of the variables are not up to date compare to the variable files.
  • The directory "Variables" don't exist anymore
  • Initialize Cinq DB Fail during the packer process
  • Impossible to grab admin credentials at /var/log/supervisor/cinq-api-stdout---supervisor-*****.log, nothing in my file.
    Summary.
    ami: # Initialize Cinq DB
    ami: sudo -u ubuntu -H /opt/cinq/cinq-venv/bin/cloud-inquisitor db upgrade
    ami: Traceback (most recent call last):
    ami:   File "/opt/cinq/cinq-venv/bin/cloud-inquisitor", line 11, in <module>
    ami:     load_entry_point('cloud-inquisitor', 'console_scripts', 'cloud-inquisitor')()
    ami:   File "/opt/cinq/cinq-venv/lib/python3.5/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
    ami:     return get_distribution(dist).load_entry_point(group, name)
    ami:   File "/opt/cinq/cinq-venv/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2793, in load_entry_point
    ami:     return ep.load()
    ami:   File "/opt/cinq/cinq-venv/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2411, in load
    ami:     return self.resolve()
    ami:   File "/opt/cinq/cinq-venv/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2417, in resolve
    ami:     module = __import__(self.module_name, fromlist=['__name__'], level=0)
    ami:   File "/opt/cinq/backend/cloud_inquisitor/__init__.py", line 18, in <module>
    ami:     config_path, app_config = LocalProxy(read_config)
    ami:   File "/opt/cinq/cinq-venv/lib/python3.5/site-packages/werkzeug/local.py", line 378, in <lambda>
    ami:     __iter__ = lambda x: iter(x._get_current_object())
    ami:   File "/opt/cinq/cinq-venv/lib/python3.5/site-packages/werkzeug/local.py", line 306, in _get_current_object
    ami:     return self.__local()
    ami:   File "/opt/cinq/backend/cloud_inquisitor/utils.py", line 521, in read_config
    ami:     data = munch.munchify(json.load(open(fpath, 'r')))
    ami:   File "/usr/lib/python3.5/json/__init__.py", line 268, in load
    ami:     parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
    ami:   File "/usr/lib/python3.5/json/__init__.py", line 319, in loads
    ami:     return _default_decoder.decode(s)
    ami:   File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
    ami:     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    ami:   File "/usr/lib/python3.5/json/decoder.py", line 357, in raw_decode
    ami:     raise JSONDecodeError("Expecting value", s, err.value) from None
    ami: json.decoder.JSONDecodeError: Expecting value: line 5 column 22 (char 73)
    ami: make: *** [init_cinq_db] Error 1
    ami: Makefile:107: recipe for target 'init_cinq_db' failed
    ami: sed -e "s|APP_CONFIG_BASE_PATH|/usr/local/etc/cloud-inquisitor|g" -e "s|APP_PYENV_PATH|/opt/cinq/cinq-venv|g" -e "s|APP_WORKER_PROCS|12|g" /home/ubuntu/cloud-inquisitor/resources/config_files/supervisor.conf > /etc/supervisor/conf.d/cinq.conf
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant