Git Product home page Git Product logo

lemur-docker's Introduction

Lemur Docker

For full documentation on Lemur, please see the docs.

This repo utilizes docker compose to launch a cluster of containers to support development of the Lemur project. This is only meant for development and testing, not for production. See the Issues section for information regarding productionalizing these containers.

This project builds the current state of a checked out lemur repository subdirectory, meaning you may make changes and rebuild your container to pick them up. It also has the ability to dump and load another database, in case you want to
test with a copy of a real Lemur DB. Alternatively, it has the option to initialize an empty database.
Celery tasks will also run, if you choose to enable them.

Requirements

Prepare

Check out the current repo:

git clone [email protected]:Netflix/lemur-docker.git
cd lemur-docker

Starting

One magic command for all things that you need:

make

NOTE: all containers running in background by default NOTE: make automatically resolves access rights to the docker. If we haven't start containers with sudo.
NOTE: make commands tested on Linux and Mac. If you have any suggestion how it can be improved for Windows, feel free to make PR.

Starting with more control

Check out the lemur repo and make a local copy of the config files:

git clone --depth=1 https://github.com/Netflix/lemur.git lemur-build-docker/lemur
cp .lemur.env.dist .lemur.env
cp .pgsql.env.dist .pgsql.env

Start the containers:

docker-compose up

Stopping

docker-compose stop

Try It Out

Launch web browser and connect to your docker container at https://localhost:447. The default credentials are lemur/admin.

Architecture

This project launches four containers:

  1. nginx
  2. postgres
  3. redis
  4. lemur

Externally, only nginx exposes any ports. This container exposes TCP 87 and 447. We use standard ports to avoid conflicts.

The lemur container is built on a local copy of the Lemur code. It runs two processes via supervisord:

  • lemur
  • lemur-celery

The file entrypoint is used to perform setup and initialization both for postgres and lemur within the lemur container.

Note that then lemur subdirectory is git ignored, so you may make changes to the lemur repository without causing any changes to show up in lemur-docker.

Configuration

Lemur configuration Lemur configuration can happen in two places:

  • .lemur.env can be used for a few basic configuration overrides
  • lemur.conf.py must be used for any configuration that requires Python execution, and any options not available in .lemur.env

Note that by default, the Celery process is running, but all Celery tasks are disabled. If you wish to enable a Celery task, it should be done in lemur.conf.py.

lemur.conf.py is mounted on the container, so all you need to do to update these settings is to make the desired changes and restart the containers:

docker-compose stop
docker-compose start

Your changes should now be reflected in Lemur.

Database configuration Database configuration is located in:

  • .pgsql.env

This Docker configuration includes three ways to run the database, controlled via the option POSTGRES_DB_MODE in .pgsql.env:

  • init will create a brand new Lemur database, initialized with base data
  • load-frum-dump will use specified DB info to dump another database and load it into the container database (see .pgsql.env for config options)
  • blank/not set will reuse whatever data already exists in the volume lemur-docker_pg_data

Note that the init and load-from-dump options will drop whatever data is already in the volume. Aside from those, explicitly deleting the Docker volume will also delete all data. Otherwise, the volume is persistent and should contain persistent data across multiple runs of the Docker container.

Issues

Default credentials on the web UI

The username for the Lemur web UI is lemur and the default password is admin (unless overridden by environment variable LEMUR_ADMIN_PASSWORD). You may create new users and disable this service account after the apps has been launched.

Default Config

This comes with a default lemur.conf.py. Things like encryption keys and tokens have been randomized in these configs, and should instead be generated and persisted securely for anything other than experimentation.

Default credentials on the postgres database

The username for the postgres database is lemur and the default password is 12345 (located in .pgsql.env).

Untrusted web certificate

The certificate used by nginx to serve Lemur in the container is self-signed and untrusted. You would need to use a trusted certificate if you were to run this for anything other than experimentation.

Alternatively, for local development, mkcert can be used to generate a locally-trusted development certificate and key. For nginx to use these files they must be mounted into the nginx container to /etc/nginx/ssl/server.crt and /etc/nginx/ssl/server-key.crt respectively.

Example:

  1. Generate a locally-trusted certificate and key for localhost

    mkcert localhost
  2. Modify the nginx service in docker-compose.yml to mount the generated certificate and key

    --- a/docker-compose.yml
    +++ b/docker-compose.yml
    @@ -33,6 +33,8 @@ services:
           - appnet
         volumes:
           - app_data:/opt/lemur/lemur/static/dist:ro
    +      - ./localhost.pem:/etc/nginx/ssl/server.crt:ro
    +      - ./localhost-key.pem:/etc/nginx/ssl/server.key:ro
         restart: on-failure
         depends_on:
           - lemur
  3. Restart the containers

    make restart_containers

lemur-docker's People

Contributors

ahmedsajid avatar bwhaley avatar castrapel avatar circlecode avatar filipposc5 avatar hosseinsh avatar intgr avatar jdivy avatar jtschladen avatar kevgliss avatar maresb avatar mhimanshu0101 avatar neilschelly avatar pkoziol avatar sergerdn avatar tho avatar thtesche avatar tnoeding avatar viranch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lemur-docker's Issues

Lemur Pod in K8s crashing

Here are the logs:
Waiting for db to become available
Attempt to connect to db.. try #1
?column?

    1

(1 row)

db ready!

Creating lemurdb...
ERROR: database "lemur" already exists
Creating the lemur user...
ERROR: role "lemur" already exists
Changing postgres password...
GRANT
Done changing postgres password...
ALTER ROLE
DONE CREATING lemurdb...
/usr/local/src/lemur/venv/lib/python3.6/site-packages/flask_sqlalchemy/init.py:814: UserWarning: Neither SQLALCHEMY_DATABASE_URI nor SQLALCHEMY_BINDS is set. Defaulting SQLALCHEMY_DATABASE_URI to "sqlite:///:memory:".
'Neither SQLALCHEMY_DATABASE_URI nor SQLALCHEMY_BINDS is set. '
[2020-01-30 05:25:52,564] WARNING in managers: Plugin 'DigiCertCISIssuerPlugin' may not work correctly. Required variable 'DIGICERT_CIS_API_KEY' is not set in Lemur's conf.
Plugin 'DigiCertCISIssuerPlugin' may not work correctly. Required variable 'DIGICERT_CIS_API_KEY' is not set in Lemur's conf.
[2020-01-30 05:25:52,564] WARNING in managers: Plugin 'DigiCertCISSourcePlugin' may not work correctly. Required variable 'DIGICERT_CIS_API_KEY' is not set in Lemur's conf.
Plugin 'DigiCertCISSourcePlugin' may not work correctly. Required variable 'DIGICERT_CIS_API_KEY' is not set in Lemur's conf.
[2020-01-30 05:25:52,564] WARNING in managers: Plugin 'DigiCertIssuerPlugin' may not work correctly. Required variable 'DIGICERT_API_KEY' is not set in Lemur's conf.
Plugin 'DigiCertIssuerPlugin' may not work correctly. Required variable 'DIGICERT_API_KEY' is not set in Lemur's conf.
Traceback (most recent call last):
File "/usr/local/src/lemur/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1246, in _execute_context
cursor, statement, parameters, context
File "/usr/local/src/lemur/venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 581, in do_execute
cursor.execute(statement, parameters)
sqlite3.OperationalError: near "EXTENSION": syntax error

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "manage.py", line 591, in
main()
File "manage.py", line 587, in main
manager.run()
File "/usr/local/src/lemur/venv/lib/python3.6/site-packages/flask_script/init.py", line 417, in run
result = self.handle(argv[0], argv[1:])
File "/usr/local/src/lemur/venv/lib/python3.6/site-packages/flask_script/init.py", line 386, in handle
res = handle(*args, **config)
File "/usr/local/src/lemur/venv/lib/python3.6/site-packages/flask_script/commands.py", line 216, in call
return self.run(*args, **kwargs)
File "manage.py", line 198, in run
create()
File "manage.py", line 148, in create
database.db.engine.execute(text("CREATE EXTENSION IF NOT EXISTS pg_trgm"))
File "/usr/local/src/lemur/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2182, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/local/src/lemur/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 982, in execute
return meth(self, multiparams, params)
File "/usr/local/src/lemur/venv/lib/python3.6/site-packages/sqlalchemy/sql/elements.py", line 287, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "/usr/local/src/lemur/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1101, in _execute_clauseelement
distilled_params,
File "/usr/local/src/lemur/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1250, in _execute_context
e, statement, parameters, cursor, context
File "/usr/local/src/lemur/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1476, in _handle_dbapi_exception
util.raise_from_cause(sqlalchemy_exception, exc_info)
File "/usr/local/src/lemur/venv/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/local/src/lemur/venv/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise
raise value.with_traceback(tb)
File "/usr/local/src/lemur/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1246, in _execute_context
cursor, statement, parameters, context
File "/usr/local/src/lemur/venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 581, in do_execute
cursor.execute(statement, parameters)
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) near "EXTENSION": syntax error
[SQL: CREATE EXTENSION IF NOT EXISTS pg_trgm]
(Background on this error at: http://sqlalche.me/e/e3q8)
/usr/local/src/lemur/venv/lib/python3.6/site-packages/flask_sqlalchemy/init.py:814: UserWarning: Neither SQLALCHEMY_DATABASE_URI nor SQLALCHEMY_BINDS is set. Defaulting SQLALCHEMY_DATABASE_URI to "sqlite:///:memory:".
'Neither SQLALCHEMY_DATABASE_URI nor SQLALCHEMY_BINDS is set. '
[2020-01-30 05:25:55,086] WARNING in managers: Plugin 'DigiCertCISIssuerPlugin' may not work correctly. Required variable 'DIGICERT_CIS_API_KEY' is not set in Lemur's conf.
Plugin 'DigiCertCISIssuerPlugin' may not work correctly. Required variable 'DIGICERT_CIS_API_KEY' is not set in Lemur's conf.
[2020-01-30 05:25:55,086] WARNING in managers: Plugin 'DigiCertCISSourcePlugin' may not work correctly. Required variable 'DIGICERT_CIS_API_KEY' is not set in Lemur's conf.
Plugin 'DigiCertCISSourcePlugin' may not work correctly. Required variable 'DIGICERT_CIS_API_KEY' is not set in Lemur's conf.
[2020-01-30 05:25:55,086] WARNING in managers: Plugin 'DigiCertIssuerPlugin' may not work correctly. Required variable 'DIGICERT_API_KEY' is not set in Lemur's conf.
Plugin 'DigiCertIssuerPlugin' may not work correctly. Required variable 'DIGICERT_API_KEY' is not set in Lemur's conf.
Traceback (most recent call last):
File "manage.py", line 591, in
main()
File "manage.py", line 587, in main
manager.run()
File "/usr/local/src/lemur/venv/lib/python3.6/site-packages/flask_script/init.py", line 417, in run
result = self.handle(argv[0], argv[1:])
File "/usr/local/src/lemur/venv/lib/python3.6/site-packages/flask_script/init.py", line 386, in handle
res = handle(*args, **config)
File "/usr/local/src/lemur/venv/lib/python3.6/site-packages/flask_script/commands.py", line 216, in call
return self.run(*args, **kwargs)
File "manage.py", line 425, in run
validate_conf(current_app, REQUIRED_VARIABLES)
File "/usr/local/src/lemur/lemur/common/utils.py", line 241, in validate_conf
"Required variable '{var}' is not set in Lemur's conf.".format(var=var)
lemur.exceptions.InvalidConfiguration: Required variable 'LEMUR_SECURITY_TEAM_EMAIL' is not set in Lemur's conf.

What am I missing?

Add DigiCert Support

Would it be possible to add digicert support to the docker image or is it already since it is part of the base?

error during python 2.7 installation

web image building calls apt-get -y install nodejs make
according to apt-cache, this requires python-minimal, which at the end requires python 2.7
During installation, this leads to the following error :

Preparing to unpack .../python_2.7.5-5ubuntu3_amd64.deb ...
update-alternatives: warning: forcing reinstallation of alternative /usr/bin/python3.5 because link group python is broken
Unpacking python (2.7.5-5ubuntu3) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Setting up libpython2.7-minimal:amd64 (2.7.6-8ubuntu0.3) ...
Setting up python2.7-minimal (2.7.6-8ubuntu0.3) ...
Linking and byte-compiling packages for runtime python2.7...
Traceback (most recent call last):
  File "/usr/bin/pycompile", line 35, in <module>
    from debpython.version import SUPPORTED, debsorted, vrepr, \
  File "/usr/share/python/debpython/version.py", line 24, in <module>
    from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error processing package python2.7-minimal (--configure):
 subprocess installed post-installation script returned error exit status 1

apt-cache output :

# apt-cache show nodejs=4.8.6-1nodesource1
Package: nodejs
Version: 4.8.6-1nodesource1
Architecture: amd64
Maintainer: Chris Lea <[email protected]>
Installed-Size: 35743
Depends: libc6 (>= 2.4), libgcc1 (>= 1:3.4), libstdc++6 (>= 4.1.1), python-minimal, ca-certificates
Conflicts: nodejs-dev, nodejs-legacy, npm
Replaces: nodejs-dev (<= 0.8.22), nodejs-legacy, npm (<= 1.2.14)
Provides: nodejs-dev, nodejs-legacy, npm
Homepage: https://nodejs.org
Priority: optional
Section: web
Filename: pool/main/n/nodejs/nodejs_4.8.6-1nodesource1_amd64.deb
Size: 8399788
SHA256: adcc7c88969df6d7431f5a7aef46f139556a403546c06745cf9557ec97d353e3
SHA1: 2912a77d930315a19e851ba933ce7a0880d7bb8b
MD5sum: d20065dc31b0d8a080ea5a8ef62e227c
Description: Node.js event-based server-side javascript engine
 Node.js is similar in design to and influenced by systems like
 Ruby's Event Machine or Python's Twisted.
 .
 It takes the event model a bit further - it presents the event
 loop as a language construct instead of as a library.
 .
 Node.js is bundled with several useful libraries to handle server tasks :
 System, Events, Standard I/O, Modules, Timers, Child Processes, POSIX,
 HTTP, Multipart Parsing, TCP, DNS, Assert, Path, URL, Query Strings.
Description-md5: 964493985d4a02c9abd7e062f9234325

Root CAs and Certs missing in UI from all but dashboard after containers restarted

Problem: CAs and certs missing when containers restarted
Expectation: CAs and certs created are visible under Authorities and Certificates
OS: Fresh CentOS 7 install 7.9.2009 (Core)
Docker Engine: 20.10.5
Docker Compose: 1.29.0
Reproduce steps:

  • Bring the project up with docker-compose up (runs in foreground)
  • Log in using default credentials
  • Create a Cryptography plugin root CA
  • Control-C to stop containers
  • Bring the project back up with docker-compose up
  • Log in using default credentials
  • Check Authorities and Certificates and no items are present
  • Check dashboard and Issuers will show 1 selfsigned

After destroying with docker-compose down this issue still persists

Several python tracebacks are in the container output which can be found here => https://pastebin.com/E6LzNRNA

I thought best to raise here first as it might be an issue with postgres container or something within the compose stack. Happy to raise in Lemur issue tracker if more appropriate.

403 Forbidden

Hi deploy lemur on Photon OS.

I need to perform some modifications on redis connection and the system as up and run.

the problem is that when I try to access the interface i have the following error:

2021/01/15 16:05:55 [error] 33#33: *60 "/opt/lemur/lemur/static/dist/index.html" is forbidden (13: Permission denied), client: 192.168.1.53, server: lemurtls, request: "GET / HTTP/1.1", host: "192.168.1.2:447"

Can't able to genrate server and client certs for the old Root certificate authority certs.

For freshly created root CA we can able to generate the server and client certificate after some time maybe a day it was throwing the 500 INTERNAL SERVER ERROR. Also ROOT CA is not visible in the UI also https://:447/

GET API I used to fetch RCA details -> http://:8000/api/1/authorities?filter=name;

we have tried reacreating the lemur instance as well as recreating the lemur postgress DB - it works only for some time again we are getting the below error.

logs captured as below:

2024-01-18 09:19:47,017 INFO sqlalchemy.engine.base.Engine SELECT 1;
2024-01-18 09:19:47,018 INFO sqlalchemy.engine.base.Engine {}
2024-01-18 09:19:47,724 INFO sqlalchemy.engine.base.Engine BEGIN (implicit)
2024-01-18 09:19:47,724 INFO sqlalchemy.engine.base.Engine SELECT users.id AS users_id, users.password AS users_password, users.active AS users_active, users.confirmed_at AS users_confirmed_at, users.username AS users_username, users.email AS users_email, users.profile_picture AS users_profile_picture
FROM users
WHERE users.id = %(id_1)s
2024-01-18 09:19:47,725 INFO sqlalchemy.engine.base.Engine {'id_1': 1}
2024-01-18 09:19:47,727 INFO sqlalchemy.engine.base.Engine SELECT users.id AS users_id, users.password AS users_password, users.active AS users_active, users.confirmed_at AS users_confirmed_at, users.username AS users_username, users.email AS users_email, users.profile_picture AS users_profile_picture
FROM users
WHERE users.id = %(id_1)s
2024-01-18 09:19:47,727 INFO sqlalchemy.engine.base.Engine {'id_1': 1}
2024-01-18 09:19:47,729 INFO sqlalchemy.engine.base.Engine SELECT roles.id AS roles_id, roles.name AS roles_name, roles.username AS roles_username, roles.password AS roles_password, roles.description AS roles_description, roles.authority_id AS roles_authority_id, roles.user_id AS roles_user_id, roles.third_party AS roles_third_party
FROM roles, roles_users
WHERE %(param_1)s = roles_users.user_id AND roles.id = roles_users.role_id
2024-01-18 09:19:47,729 INFO sqlalchemy.engine.base.Engine {'param_1': 1}
2024-01-18 09:19:47,731 INFO sqlalchemy.engine.base.Engine SELECT authorities.id AS authorities_id, authorities.owner AS authorities_owner, authorities.name AS authorities_name, authorities.body AS authorities_body, authorities.chain AS authorities_chain, authorities.active AS authorities_active, authorities.plugin_name AS authorities_plugin_name, authorities.description AS authorities_description, authorities.options AS authorities_options, authorities.date_created AS authorities_date_created, authorities.user_id AS authorities_user_id
FROM authorities
WHERE %(param_1)s = authorities.user_id
2024-01-18 09:19:47,731 INFO sqlalchemy.engine.base.Engine {'param_1': 1}
2024-01-18 09:19:47,733 INFO sqlalchemy.engine.base.Engine SELECT roles.id AS roles_id, roles.name AS roles_name, roles.username AS roles_username, roles.password AS roles_password, roles.description AS roles_description, roles.authority_id AS roles_authority_id, roles.user_id AS roles_user_id, roles.third_party AS roles_third_party
FROM roles, roles_users
WHERE %(param_1)s = roles_users.user_id AND roles.id = roles_users.role_id
2024-01-18 09:19:47,733 INFO sqlalchemy.engine.base.Engine {'param_1': 1}
2024-01-18 09:19:47,735 INFO sqlalchemy.engine.base.Engine SELECT count(*) AS count_1
FROM authorities
WHERE authorities.name ILIKE %(name_1)s
2024-01-18 09:19:47,735 INFO sqlalchemy.engine.base.Engine {'name_1': '%Certificate-Authority-dev.mybuilding.leviton.com%'}
2024-01-18 09:19:47,738 INFO sqlalchemy.engine.base.Engine SELECT authorities.id AS authorities_id, authorities.owner AS authorities_owner, authorities.name AS authorities_name, authorities.body AS authorities_body, authorities.chain AS authorities_chain, authorities.active AS authorities_active, authorities.plugin_name AS authorities_plugin_name, authorities.description AS authorities_description, authorities.options AS authorities_options, authorities.date_created AS authorities_date_created, authorities.user_id AS authorities_user_id
FROM authorities
WHERE authorities.name ILIKE %(name_1)s
 LIMIT %(param_1)s OFFSET %(param_2)s
2024-01-18 09:19:47,738 INFO sqlalchemy.engine.base.Engine {'name_1': '%Certificate-Authority-dev.mybuilding.leviton.com%', 'param_1': 10, 'param_2': 0}
2024-01-18 09:19:47,742 INFO sqlalchemy.engine.base.Engine SELECT certificates.id AS certificates_id, certificates.external_id AS certificates_external_id, certificates.owner AS certificates_owner, certificates.name AS certificates_name, certificates.description AS certificates_description, certificates.notify AS certificates_notify, certificates.body AS certificates_body, certificates.chain AS certificates_chain, certificates.csr AS certificates_csr, certificates.private_key AS certificates_private_key, certificates.issuer AS certificates_issuer, certificates.serial AS certificates_serial, certificates.cn AS certificates_cn, certificates.deleted AS certificates_deleted, certificates.dns_provider_id AS certificates_dns_provider_id, certificates.not_before AS certificates_not_before, certificates.not_after AS certificates_not_after, certificates.date_created AS certificates_date_created, certificates.signing_algorithm AS certificates_signing_algorithm, certificates.status AS certificates_status, certificates.bits AS certificates_bits, certificates.san AS certificates_san, certificates.rotation AS certificates_rotation, certificates.user_id AS certificates_user_id, certificates.authority_id AS certificates_authority_id, certificates.root_authority_id AS certificates_root_authority_id, certificates.rotation_policy_id AS certificates_rotation_policy_id, certificates.key_type AS certificates_key_type
FROM certificates
WHERE %(param_1)s = certificates.root_authority_id
2024-01-18 09:19:47,742 INFO sqlalchemy.engine.base.Engine {'param_1': 6}
[2024-01-18 09:19:47,747] ERROR in app: Exception on /api/1/authorities [GET]
Traceback (most recent call last):
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/utils.py", line 349, in _get_value_for_key
    return obj[key]
TypeError: 'Authority' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/venv/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/opt/venv/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/opt/venv/lib/python3.8/site-packages/flask_restful/__init__.py", line 467, in wrapper
    resp = resource(*args, **kwargs)
  File "/opt/venv/lib/python3.8/site-packages/flask/views.py", line 89, in view
    return self.dispatch_request(*args, **kwargs)
  File "/opt/venv/lib/python3.8/site-packages/flask_restful/__init__.py", line 582, in dispatch_request
    resp = meth(*args, **kwargs)
  File "/opt/lemur/lemur/auth/service.py", line 141, in decorated_function
    return f(*args, **kwargs)
  File "/opt/lemur/lemur/common/schema.py", line 175, in decorated_function
    return unwrap_pagination(resp, output_schema_to_use), 200
  File "/opt/lemur/lemur/common/schema.py", line 128, in unwrap_pagination
    marshaled_data["items"] = output_schema.dump(data["items"], many=True).data
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/schema.py", line 513, in dump
    preresult = marshal(
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/marshalling.py", line 114, in serialize
    ret = [self.serialize(d, fields_dict, many=False,
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/marshalling.py", line 114, in <listcomp>
    ret = [self.serialize(d, fields_dict, many=False,
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/marshalling.py", line 135, in serialize
    value = self.call_and_store(
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/marshalling.py", line 63, in call_and_store
    value = getter_func(data)
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/marshalling.py", line 134, in <lambda>
    getter = lambda d: field_obj.serialize(attr_name, d, accessor=accessor)
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/fields.py", line 243, in serialize
    value = self.get_value(attr, obj, accessor=accessor)
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/fields.py", line 186, in get_value
    return accessor_func(check_key, obj, default)
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/schema.py", line 415, in get_attribute
    return utils.get_value(attr, obj, default)
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/utils.py", line 336, in get_value
    return _get_value_for_keys(key.split('.'), obj, default)
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/utils.py", line 341, in _get_value_for_keys
    return _get_value_for_key(keys[0], obj, default)
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/utils.py", line 352, in _get_value_for_key
    attr = getattr(obj, key)
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/attributes.py", line 294, in __get__
    return self.impl.get(instance_state(instance), dict_)
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/attributes.py", line 730, in get
    value = self.callable_(state, passive)
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/strategies.py", line 759, in _load_for_state
    return self._emit_lazyload(
  File "<string>", line 1, in <lambda>
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/strategies.py", line 900, in _emit_lazyload
    q(session)
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/ext/baked.py", line 544, in all
    return list(self)
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 100, in instances
    cursor.close()
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/util/langhelpers.py", line 68, in __exit__
    compat.raise_(
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/util/compat.py", line 182, in raise_
    raise exception
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 80, in instances
    rows = [proc(row) for row in fetch]
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 80, in <listcomp>
    rows = [proc(row) for row in fetch]
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 579, in _instance
    _populate_full(
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 725, in _populate_full
    dict_[key] = getter(row)
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/sql/type_api.py", line 1278, in process
    return process_value(impl_processor(value), dialect)
  File "/opt/lemur/lemur/utils.py", line 122, in process_result_value
    return MultiFernet(self.keys).decrypt(value).decode("utf8")
  File "/opt/venv/lib/python3.8/site-packages/cryptography/fernet.py", line 202, in decrypt
    raise InvalidToken
cryptography.fernet.InvalidToken
2024-01-18 09:19:47,752 INFO sqlalchemy.engine.base.Engine ROLLBACK
Exception on /api/1/authorities [GET]
Traceback (most recent call last):
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/utils.py", line 349, in _get_value_for_key
    return obj[key]
TypeError: 'Authority' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/venv/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/opt/venv/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/opt/venv/lib/python3.8/site-packages/flask_restful/__init__.py", line 467, in wrapper
    resp = resource(*args, **kwargs)
  File "/opt/venv/lib/python3.8/site-packages/flask/views.py", line 89, in view
    return self.dispatch_request(*args, **kwargs)
  File "/opt/venv/lib/python3.8/site-packages/flask_restful/__init__.py", line 582, in dispatch_request
    resp = meth(*args, **kwargs)
  File "/opt/lemur/lemur/auth/service.py", line 141, in decorated_function
    return f(*args, **kwargs)
  File "/opt/lemur/lemur/common/schema.py", line 175, in decorated_function
    return unwrap_pagination(resp, output_schema_to_use), 200
  File "/opt/lemur/lemur/common/schema.py", line 128, in unwrap_pagination
    marshaled_data["items"] = output_schema.dump(data["items"], many=True).data
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/schema.py", line 513, in dump
    preresult = marshal(
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/marshalling.py", line 114, in serialize
    ret = [self.serialize(d, fields_dict, many=False,
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/marshalling.py", line 114, in <listcomp>
    ret = [self.serialize(d, fields_dict, many=False,
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/marshalling.py", line 135, in serialize
    value = self.call_and_store(
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/marshalling.py", line 63, in call_and_store
    value = getter_func(data)
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/marshalling.py", line 134, in <lambda>
    getter = lambda d: field_obj.serialize(attr_name, d, accessor=accessor)
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/fields.py", line 243, in serialize
    value = self.get_value(attr, obj, accessor=accessor)
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/fields.py", line 186, in get_value
    return accessor_func(check_key, obj, default)
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/schema.py", line 415, in get_attribute
    return utils.get_value(attr, obj, default)
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/utils.py", line 336, in get_value
    return _get_value_for_keys(key.split('.'), obj, default)
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/utils.py", line 341, in _get_value_for_keys
    return _get_value_for_key(keys[0], obj, default)
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/utils.py", line 352, in _get_value_for_key
    attr = getattr(obj, key)
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/attributes.py", line 294, in __get__
    return self.impl.get(instance_state(instance), dict_)
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/attributes.py", line 730, in get
    value = self.callable_(state, passive)
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/strategies.py", line 759, in _load_for_state
    return self._emit_lazyload(
  File "<string>", line 1, in <lambda>
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/strategies.py", line 900, in _emit_lazyload
    q(session)
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/ext/baked.py", line 544, in all
    return list(self)
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 100, in instances
    cursor.close()
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/util/langhelpers.py", line 68, in __exit__
    compat.raise_(
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/util/compat.py", line 182, in raise_
    raise exception
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 80, in instances
    rows = [proc(row) for row in fetch]
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 80, in <listcomp>
    rows = [proc(row) for row in fetch]
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 579, in _instance
    _populate_full(
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 725, in _populate_full
    dict_[key] = getter(row)
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/sql/type_api.py", line 1278, in process
    return process_value(impl_processor(value), dialect)
  File "/opt/lemur/lemur/utils.py", line 122, in process_result_value
    return MultiFernet(self.keys).decrypt(value).decode("utf8")
  File "/opt/venv/lib/python3.8/site-packages/cryptography/fernet.py", line 202, in decrypt
    raise InvalidToken
cryptography.fernet.InvalidToken
Exception on /api/1/authorities [GET]
Traceback (most recent call last):
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/utils.py", line 349, in _get_value_for_key
    return obj[key]
TypeError: 'Authority' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/venv/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/opt/venv/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/opt/venv/lib/python3.8/site-packages/flask_restful/__init__.py", line 467, in wrapper
    resp = resource(*args, **kwargs)
  File "/opt/venv/lib/python3.8/site-packages/flask/views.py", line 89, in view
    return self.dispatch_request(*args, **kwargs)
  File "/opt/venv/lib/python3.8/site-packages/flask_restful/__init__.py", line 582, in dispatch_request
    resp = meth(*args, **kwargs)
  File "/opt/lemur/lemur/auth/service.py", line 141, in decorated_function
    return f(*args, **kwargs)
  File "/opt/lemur/lemur/common/schema.py", line 175, in decorated_function
    return unwrap_pagination(resp, output_schema_to_use), 200
  File "/opt/lemur/lemur/common/schema.py", line 128, in unwrap_pagination
    marshaled_data["items"] = output_schema.dump(data["items"], many=True).data
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/schema.py", line 513, in dump
    preresult = marshal(
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/marshalling.py", line 114, in serialize
    ret = [self.serialize(d, fields_dict, many=False,
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/marshalling.py", line 114, in <listcomp>
    ret = [self.serialize(d, fields_dict, many=False,
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/marshalling.py", line 135, in serialize
    value = self.call_and_store(
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/marshalling.py", line 63, in call_and_store
    value = getter_func(data)
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/marshalling.py", line 134, in <lambda>
    getter = lambda d: field_obj.serialize(attr_name, d, accessor=accessor)
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/fields.py", line 243, in serialize
    value = self.get_value(attr, obj, accessor=accessor)
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/fields.py", line 186, in get_value
    return accessor_func(check_key, obj, default)
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/schema.py", line 415, in get_attribute
    return utils.get_value(attr, obj, default)
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/utils.py", line 336, in get_value
    return _get_value_for_keys(key.split('.'), obj, default)
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/utils.py", line 341, in _get_value_for_keys
    return _get_value_for_key(keys[0], obj, default)
  File "/opt/venv/lib/python3.8/site-packages/marshmallow/utils.py", line 352, in _get_value_for_key
    attr = getattr(obj, key)
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/attributes.py", line 294, in __get__
    return self.impl.get(instance_state(instance), dict_)
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/attributes.py", line 730, in get
    value = self.callable_(state, passive)
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/strategies.py", line 759, in _load_for_state
    return self._emit_lazyload(
  File "<string>", line 1, in <lambda>
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/strategies.py", line 900, in _emit_lazyload
    q(session)
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/ext/baked.py", line 544, in all
    return list(self)
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 100, in instances
    cursor.close()
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/util/langhelpers.py", line 68, in __exit__
    compat.raise_(
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/util/compat.py", line 182, in raise_
    raise exception
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 80, in instances
    rows = [proc(row) for row in fetch]
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 80, in <listcomp>
    rows = [proc(row) for row in fetch]
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 579, in _instance
    _populate_full(
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 725, in _populate_full
    dict_[key] = getter(row)
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/sql/type_api.py", line 1278, in process
    return process_value(impl_processor(value), dialect)
  File "/opt/lemur/lemur/utils.py", line 122, in process_result_value
    return MultiFernet(self.keys).decrypt(value).decode("utf8")
  File "/opt/venv/lib/python3.8/site-packages/cryptography/fernet.py", line 202, in decrypt
    raise InvalidToken
cryptography.fernet.InvalidToken

Add a docker-compose file with celery

To make the most out of lemur, it's nice to have celery running (so you can use ACME auto-renewal for example).
The current docker-compose file, only starts the lemur, nginx, and psql containers, but it would be nice, to also have a docker-compose file, where the celery beat & workers as well as redis are started as well.

This needs it's own lemur config file, since we need to add the celery & redis configuration, as well as three new pods.

I currently have a setup with a multistage build, where the celery pods, are based on the lemur pod, but without the static files.
As I'm not sure, if it's intended to update the docker-compose version to 3.4, to make use of the multistage build, I'll need to refactor it, to reuse the current lemur file, and just override the start script & command.

docker-compose up throws error

When building the container, docker-compose throws an error with your Dockerfile:

npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /usr/local/src/lemur/npm-debug.log
npm ERR! not ok code 0

root@d81fe552ff59:/usr/local/src/lemur# cat /usr/local/src/lemur/npm-debug.log
1325 verbose tar unpack /root/.npm/isarray/0.0.1/package.tgz
1326 silly lockFile 660d49c6-able-stream-node-modules-isarray tar:///usr/local/src/lemur/node_modules/gulp-replace-task/node_modules/through2/node_modules/readable-stream/node_modules/isarray
1327 verbose lock tar:///usr/local/src/lemur/node_modules/gulp-replace-task/node_modules/through2/node_modules/readable-stream/node_modules/isarray /root/.npm/660d49c6-able-stream-node-modules-isarray.lock
1328 silly lockFile 44b8127c-ot-npm-isarray-0-0-1-package-tgz tar:///root/.npm/isarray/0.0.1/package.tgz
1329 verbose lock tar:///root/.npm/isarray/0.0.1/package.tgz /root/.npm/44b8127c-ot-npm-isarray-0-0-1-package-tgz.lock
1330 verbose tar unpack /root/.npm/core-util-is/1.0.2/package.tgz
1331 silly lockFile 1dd5bc47-stream-node-modules-core-util-is tar:///usr/local/src/lemur/node_modules/gulp-replace-task/node_modules/through2/node_modules/readable-stream/node_modules/core-util-is
1332 verbose lock tar:///usr/local/src/lemur/node_modules/gulp-replace-task/node_modules/through2/node_modules/readable-stream/node_modules/core-util-is /root/.npm/1dd5bc47-stream-node-modules-core-util-is.lock
1333 silly lockFile f66db8e6-m-core-util-is-1-0-2-package-tgz tar:///root/.npm/core-util-is/1.0.2/package.tgz
1334 verbose lock tar:///root/.npm/core-util-is/1.0.2/package.tgz /root/.npm/f66db8e6-m-core-util-is-1-0-2-package-tgz.lock
1335 verbose tar unpack /root/.npm/string_decoder/0.10.31/package.tgz
1336 silly lockFile 941a3851-ream-node-modules-string-decoder tar:///usr/local/src/lemur/node_modules/gulp-replace-task/node_modules/through2/node_modules/readable-stream/node_modules/string_decoder
1337 verbose lock tar:///usr/local/src/lemur/node_modules/gulp-replace-task/node_modules/through2/node_modules/readable-stream/node_modules/string_decoder /root/.npm/941a3851-ream-node-modules-string-decoder.lock
1338 silly lockFile bcea0786-ring-decoder-0-10-31-package-tgz tar:///root/.npm/string_decoder/0.10.31/package.tgz
1339 verbose lock tar:///root/.npm/string_decoder/0.10.31/package.tgz /root/.npm/bcea0786-ring-decoder-0-10-31-package-tgz.lock
1340 verbose tar unpack /root/.npm/inherits/2.0.3/package.tgz
1341 silly lockFile 25525aa8-ble-stream-node-modules-inherits tar:///usr/local/src/lemur/node_modules/gulp-replace-task/node_modules/through2/node_modules/readable-stream/node_modules/inherits
1342 verbose lock tar:///usr/local/src/lemur/node_modules/gulp-replace-task/node_modules/through2/node_modules/readable-stream/node_modules/inherits /root/.npm/25525aa8-ble-stream-node-modules-inherits.lock
1343 silly lockFile df8e3b88-t-npm-inherits-2-0-3-package-tgz tar:///root/.npm/inherits/2.0.3/package.tgz
1344 verbose lock tar:///root/.npm/inherits/2.0.3/package.tgz /root/.npm/df8e3b88-t-npm-inherits-2-0-3-package-tgz.lock
1345 verbose tar unpack /root/tmp/npm-42-zVsVm-QY/1492696340205-0.7103624257724732/tmp.tgz
1346 silly lockFile 9d3a35e9-40205-0-7103624257724732-package tar:///root/tmp/npm-42-zVsVm-QY/1492696340205-0.7103624257724732/package
1347 verbose lock tar:///root/tmp/npm-42-zVsVm-QY/1492696340205-0.7103624257724732/package /root/.npm/9d3a35e9-40205-0-7103624257724732-package.lock
1348 silly lockFile 757a8e2c-40205-0-7103624257724732-tmp-tgz tar:///root/tmp/npm-42-zVsVm-QY/1492696340205-0.7103624257724732/tmp.tgz
1349 verbose lock tar:///root/tmp/npm-42-zVsVm-QY/1492696340205-0.7103624257724732/tmp.tgz /root/.npm/757a8e2c-40205-0-7103624257724732-tmp-tgz.lock
1350 silly gunzTarPerm modes [ '755', '644' ]
1351 silly gunzTarPerm modes [ '755', '644' ]
1352 silly gunzTarPerm modes [ '755', '644' ]
1353 silly gunzTarPerm modes [ '755', '644' ]
1354 silly gunzTarPerm modes [ '755', '644' ]
1355 error tar.unpack error reading /root/tmp/npm-42-zVsVm-QY/1492696340205-0.7103624257724732/tmp.tgz
1356 silly lockFile 9d3a35e9-40205-0-7103624257724732-package tar:///root/tmp/npm-42-zVsVm-QY/1492696340205-0.7103624257724732/package
1357 silly lockFile 9d3a35e9-40205-0-7103624257724732-package tar:///root/tmp/npm-42-zVsVm-QY/1492696340205-0.7103624257724732/package
1358 silly lockFile 757a8e2c-40205-0-7103624257724732-tmp-tgz tar:///root/tmp/npm-42-zVsVm-QY/1492696340205-0.7103624257724732/tmp.tgz
1359 silly lockFile 757a8e2c-40205-0-7103624257724732-tmp-tgz tar:///root/tmp/npm-42-zVsVm-QY/1492696340205-0.7103624257724732/tmp.tgz
1360 silly lockFile 6b880e7f-notifier-node-notifier-4-6-1-tgz https://registry.npmjs.org/node-notifier/-/node-notifier-4.6.1.tgz
1361 silly lockFile 6b880e7f-notifier-node-notifier-4-6-1-tgz https://registry.npmjs.org/node-notifier/-/node-notifier-4.6.1.tgz
1362 silly lockFile bd197a0f-node-notifier-4-6-1 [email protected]
1363 silly lockFile bd197a0f-node-notifier-4-6-1 [email protected]
1364 silly lockFile 9e77e108-node-notifier-4-1-0 node-notifier@^4.1.0
1365 silly lockFile 9e77e108-node-notifier-4-1-0 node-notifier@^4.1.0
1366 silly gunzTarPerm extractEntry templates/helpers/sum.js
1367 silly gunzTarPerm extractEntry templates/json/help-lookup.json
1368 silly gunzTarPerm extractEntry test/data/test_atruler/atruler.c.2.css
1369 silly gunzTarPerm extractEntry test/data/test_atruler/atruler.0.css
1370 verbose about to build /usr/local/src/lemur/node_modules/gulp-notify
1371 info /usr/local/src/lemur/node_modules/gulp-notify unbuild
1372 info preuninstall [email protected]
1373 info uninstall [email protected]
1374 verbose true,/usr/local/src/lemur/node_modules,/usr/local/src/lemur/node_modules unbuild [email protected]
1375 info postuninstall [email protected]
1376 silly gunzTarPerm extractEntry package.json
1377 silly gunzTarPerm extractEntry test/data/test_atruler/atruler.0.p
1378 silly gunzTarPerm extractEntry test/data/test_atruler/atruler.1.css
1379 silly gunzTarPerm extractEntry README.md
1380 silly gunzTarPerm extractEntry index.js
1381 silly gunzTarPerm extractEntry package.json
1382 silly gunzTarPerm extractEntry package.json
1383 silly gunzTarPerm extractEntry package.json
1384 silly gunzTarPerm extractEntry README.md
1385 silly gunzTarPerm extractEntry LICENSE
1386 silly gunzTarPerm extractEntry .npmignore
1387 silly gunzTarPerm extractEntry README.md
1388 silly gunzTarPerm extractEntry README.md
1389 silly gunzTarPerm extractEntry inherits.js
1390 silly gunzTarPerm extractEntry test/data/test_atruler/atruler.1.l
1391 silly gunzTarPerm extractEntry test/data/test_atruler/atruler.1.p
1392 silly gunzTarPerm extractEntry build/build.js
1393 silly gunzTarPerm extractEntry component.json
1394 error Error: ENOENT, lstat '/usr/local/src/lemur/node_modules/gulp-replace-task/node_modules/applause/node_modules/js-yaml/dist/js-yaml.js'
1395 error If you need help, you may report this log at:
1395 error     <http://github.com/isaacs/npm/issues>
1395 error or email it to:
1395 error     <[email protected]>
1396 error System Linux 4.4.0-1013-aws
1397 error command "/usr/bin/nodejs" "/usr/bin/npm" "install" "--unsafe-perm"
1398 error cwd /usr/local/src/lemur
1399 error node -v v0.10.25
1400 error npm -v 1.3.10
1401 error path /usr/local/src/lemur/node_modules/gulp-replace-task/node_modules/applause/node_modules/js-yaml/dist/js-yaml.js
1402 error fstream_path /usr/local/src/lemur/node_modules/gulp-replace-task/node_modules/applause/node_modules/js-yaml/dist/js-yaml.js
1403 error fstream_type File
1404 error fstream_class FileWriter
1405 error code ENOENT
1406 error errno 34
1407 error fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
1407 error fstream_stack Object.oncomplete (fs.js:107:15)
1408 verbose exit [ 34, true ]

The command failing is the following:

make develop

Same issue appears if I try only to make.

docker-compose up fails with Please activate virtualenv first

I'm trying to do docker-compose up for a quick start up but the process keeps failing.

Seems like this new commit, https://github.com/Netflix/lemur/commit/fb494bc32a189316587d40ab2e2d234df4357ace is causing issues.

ahmed@ryu:~/github/netflix/lemur-docker$ docker-compose up
Pulling postgres (postgres:latest)...
latest: Pulling from library/postgres
c73ab1c6897b: Pull complete
e94aaf8397f8: Pull complete
0853c2cf63f7: Pull complete
487961619c6f: Pull complete
b3fe80b87ac6: Pull complete
4ca9a0468275: Pull complete
b08717267268: Pull complete
46e01a893aae: Pull complete
6a59d7eed20d: Pull complete
92ce89955be9: Pull complete
72d094cdd68b: Pull complete
551b1e46cd6f: Pull complete
a3591a6c2a19: Pull complete
Digest: sha256:d5787305ec0a3b9a24d0108cb5fdbb4befbd809f85639bf04aa1941138df9701
Status: Downloaded newer image for postgres:latest
Building lemur-web
Step 1/13 : FROM ubuntu:16.04
16.04: Pulling from library/ubuntu
22dc81ace0ea: Pull complete
1a8b3c87dba3: Pull complete
91390a1c435a: Pull complete
07844b14977e: Pull complete
b78396653dae: Pull complete
Digest: sha256:e348fbbea0e0a0e73ab0370de151e7800684445c509d46195aef73e090a49bd6
Status: Downloaded newer image for ubuntu:16.04
 ---> f975c5035748
Step 2/13 : LABEL maintainer "Netflix Open Source Development <[email protected]>"
 ---> Running in dd076cec9a6e
 ---> 08aaa4717dee
Removing intermediate container dd076cec9a6e
Step 3/13 : RUN apt-get update &&   apt-get install -y curl git build-essential sudo     python3 python3-pip python3-dev     nodejs npm     postgresql postgresql-contrib     libpq-dev libssl-dev libffi-dev libsasl2-dev libldap2-dev &&   update-alternatives --install /usr/bin/python python /usr/bin/python3 1 &&   update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1 &&   update-alternatives --install /usr/bin/node node /usr/bin/nodejs 1 &&   apt-get clean -y &&   rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
 ---> Running in 3a27e8dedc27
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:3 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [77.2 kB]
Get:4 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [593 kB]
Get:5 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [12.7 kB]
Get:6 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [428 kB]
Get:7 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [3492 B]
Get:8 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Get:10 http://archive.ubuntu.com/ubuntu xenial/universe Sources [9802 kB]
Get:11 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1558 kB]
Get:12 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [14.1 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [9827 kB]
Get:14 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [176 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial-updates/universe Sources [250 kB]
Get:16 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [962 kB]
Get:17 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [13.1 kB]
Get:18 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [793 kB]
Get:19 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [18.5 kB]
Get:20 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [5153 B]
Get:21 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [7734 B]
Fetched 25.1 MB in 4s (6090 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  binutils bzip2 ca-certificates comerr-dev cpp cpp-5 cron dh-python
  distro-info-data dpkg-dev fakeroot file g++ g++-5 gcc gcc-5 git-man gyp
  ifupdown iproute2 isc-dhcp-client isc-dhcp-common javascript-common
  krb5-locales krb5-multidev less libalgorithm-diff-perl
  libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan2 libasn1-8-heimdal
  libatm1 libatomic1 libbsd0 libc-dev-bin libc6-dev libcc1-0 libcilkrts5
  libcurl3-gnutls libdns-export162 libdpkg-perl libedit2 liberror-perl
  libexpat1 libexpat1-dev libfakeroot libffi6 libfile-fcntllock-perl
  libgcc-5-dev libgdbm3 libgmp10 libgnutls30 libgomp1 libgssapi-krb5-2
  libgssapi3-heimdal libgssrpc4 libhcrypto4-heimdal libheimbase1-heimdal
  libheimntlm0-heimdal libhogweed4 libhx509-5-heimdal libicu55 libidn11
  libisc-export160 libisl15 libitm1 libjs-inherits libjs-jquery
  libjs-node-uuid libjs-underscore libk5crypto3 libkadm5clnt-mit9
  libkadm5srv-mit9 libkdb5-8 libkeyutils1 libkrb5-26-heimdal libkrb5-3
  libkrb5support0 libldap-2.4-2 liblsan0 libmagic1 libmnl0 libmpc3 libmpdec2
  libmpfr4 libmpx0 libnettle6 libp11-kit0 libperl5.22 libpopt0 libpq5
  libpython-stdlib libpython2.7-minimal libpython2.7-stdlib libpython3-dev
  libpython3-stdlib libpython3.5 libpython3.5-dev libpython3.5-minimal
  libpython3.5-stdlib libquadmath0 libroken18-heimdal librtmp1 libsasl2-2
  libsasl2-modules libsasl2-modules-db libsensors4 libsqlite3-0 libssl-doc
  libssl1.0.0 libstdc++-5-dev libtasn1-6 libtsan0 libubsan0 libuv1 libuv1-dev
  libwind0-heimdal libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6
  libxml2 libxmuu1 libxslt1.1 libxtables11 linux-libc-dev locales logrotate
  lsb-release make manpages manpages-dev mime-support netbase node-abbrev
  node-ansi node-ansi-color-table node-archy node-async node-block-stream
  node-combined-stream node-cookie-jar node-delayed-stream node-forever-agent
  node-form-data node-fstream node-fstream-ignore node-github-url-from-git
  node-glob node-graceful-fs node-gyp node-inherits node-ini
  node-json-stringify-safe node-lockfile node-lru-cache node-mime
  node-minimatch node-mkdirp node-mute-stream node-node-uuid node-nopt
  node-normalize-package-data node-npmlog node-once node-osenv node-qs
  node-read node-read-package-json node-request node-retry node-rimraf
  node-semver node-sha node-sigmund node-slide node-tar node-tunnel-agent
  node-underscore node-which nodejs-dev openssh-client openssl patch perl
  perl-modules-5.22 postgresql-9.5 postgresql-client-9.5
  postgresql-client-common postgresql-common postgresql-contrib-9.5 python
  python-minimal python-pip-whl python-pkg-resources python2.7
  python2.7-minimal python3-minimal python3-pkg-resources python3-setuptools
  python3-wheel python3.5 python3.5-dev python3.5-minimal rename rsync
  sgml-base ssl-cert sysstat tzdata ucf xauth xml-core xz-utils zlib1g-dev
Suggested packages:
  binutils-doc bzip2-doc doc-base cpp-doc gcc-5-locales anacron checksecurity
  exim4 | postfix | mail-transport-agent debian-keyring g++-multilib
  g++-5-multilib gcc-5-doc libstdc++6-5-dbg gcc-multilib autoconf automake
  libtool flex bison gdb gcc-doc gcc-5-multilib libgcc1-dbg libgomp1-dbg
  libitm1-dbg libatomic1-dbg libasan2-dbg liblsan0-dbg libtsan0-dbg
  libubsan0-dbg libcilkrts5-dbg libmpx0-dbg libquadmath0-dbg gettext-base
  git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk
  gitweb git-arch git-cvs git-mediawiki git-svn ppp rdnssd iproute2-doc
  resolvconf avahi-autoipd isc-dhcp-client-ddns apparmor apache2 | lighttpd
  | httpd krb5-doc glibc-doc gnutls-bin krb5-user postgresql-doc-9.5
  libsasl2-modules-otp libsasl2-modules-ldap libsasl2-modules-sql
  libsasl2-modules-gssapi-mit | libsasl2-modules-gssapi-heimdal lm-sensors
  libstdc++-5-doc mailx lsb make-doc man-browser node-hawk node-aws-sign
  node-oauth-sign node-http-signature debhelper ssh-askpass libpam-ssh
  keychain monkeysphere ed diffutils-doc perl-doc libterm-readline-gnu-perl
  | libterm-readline-perl-perl postgresql-doc locales-all libdbd-pg-perl
  python-doc python-tk python-setuptools python2.7-doc binfmt-support
  python3-doc python3-tk python3-venv python-setuptools-doc python3.5-venv
  python3.5-doc openssh-server sgml-base-doc openssl-blacklist isag
The following NEW packages will be installed:
  binutils build-essential bzip2 ca-certificates comerr-dev cpp cpp-5 cron
  curl dh-python distro-info-data dpkg-dev fakeroot file g++ g++-5 gcc gcc-5
  git git-man gyp ifupdown iproute2 isc-dhcp-client isc-dhcp-common
  javascript-common krb5-locales krb5-multidev less libalgorithm-diff-perl
  libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan2 libasn1-8-heimdal
  libatm1 libatomic1 libbsd0 libc-dev-bin libc6-dev libcc1-0 libcilkrts5
  libcurl3-gnutls libdns-export162 libdpkg-perl libedit2 liberror-perl
  libexpat1 libexpat1-dev libfakeroot libffi-dev libffi6
  libfile-fcntllock-perl libgcc-5-dev libgdbm3 libgmp10 libgnutls30 libgomp1
  libgssapi-krb5-2 libgssapi3-heimdal libgssrpc4 libhcrypto4-heimdal
  libheimbase1-heimdal libheimntlm0-heimdal libhogweed4 libhx509-5-heimdal
  libicu55 libidn11 libisc-export160 libisl15 libitm1 libjs-inherits
  libjs-jquery libjs-node-uuid libjs-underscore libk5crypto3 libkadm5clnt-mit9
  libkadm5srv-mit9 libkdb5-8 libkeyutils1 libkrb5-26-heimdal libkrb5-3
  libkrb5support0 libldap-2.4-2 libldap2-dev liblsan0 libmagic1 libmnl0
  libmpc3 libmpdec2 libmpfr4 libmpx0 libnettle6 libp11-kit0 libperl5.22
  libpopt0 libpq-dev libpq5 libpython-stdlib libpython2.7-minimal
  libpython2.7-stdlib libpython3-dev libpython3-stdlib libpython3.5
  libpython3.5-dev libpython3.5-minimal libpython3.5-stdlib libquadmath0
  libroken18-heimdal librtmp1 libsasl2-2 libsasl2-dev libsasl2-modules
  libsasl2-modules-db libsensors4 libsqlite3-0 libssl-dev libssl-doc
  libssl1.0.0 libstdc++-5-dev libtasn1-6 libtsan0 libubsan0 libuv1 libuv1-dev
  libwind0-heimdal libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6
  libxml2 libxmuu1 libxslt1.1 libxtables11 linux-libc-dev locales logrotate
  lsb-release make manpages manpages-dev mime-support netbase node-abbrev
  node-ansi node-ansi-color-table node-archy node-async node-block-stream
  node-combined-stream node-cookie-jar node-delayed-stream node-forever-agent
  node-form-data node-fstream node-fstream-ignore node-github-url-from-git
  node-glob node-graceful-fs node-gyp node-inherits node-ini
  node-json-stringify-safe node-lockfile node-lru-cache node-mime
  node-minimatch node-mkdirp node-mute-stream node-node-uuid node-nopt
  node-normalize-package-data node-npmlog node-once node-osenv node-qs
  node-read node-read-package-json node-request node-retry node-rimraf
  node-semver node-sha node-sigmund node-slide node-tar node-tunnel-agent
  node-underscore node-which nodejs nodejs-dev npm openssh-client openssl
  patch perl perl-modules-5.22 postgresql postgresql-9.5 postgresql-client-9.5
  postgresql-client-common postgresql-common postgresql-contrib
  postgresql-contrib-9.5 python python-minimal python-pip-whl
  python-pkg-resources python2.7 python2.7-minimal python3 python3-dev
  python3-minimal python3-pip python3-pkg-resources python3-setuptools
  python3-wheel python3.5 python3.5-dev python3.5-minimal rename rsync
  sgml-base ssl-cert sudo sysstat tzdata ucf xauth xml-core xz-utils
  zlib1g-dev
0 upgraded, 233 newly installed, 0 to remove and 9 not upgraded.
Need to get 136 MB of archives.
After this operation, 472 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial/main amd64 cron amd64 3.0pl1-128ubuntu2 [68.4 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial/main amd64 libatm1 amd64 1:2.5.1-1.5 [24.2 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial/main amd64 libmnl0 amd64 1.0.3-5 [12.0 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial/main amd64 libpopt0 amd64 1.16-10 [26.0 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libssl1.0.0 amd64 1.0.2g-1ubuntu4.11 [1082 kB]
Get:6 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpython3.5-minimal amd64 3.5.2-2ubuntu0~16.04.4 [523 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libexpat1 amd64 2.1.0-7ubuntu0.16.04.3 [71.2 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 python3.5-minimal amd64 3.5.2-2ubuntu0~16.04.4 [1597 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3-minimal amd64 3.5.1-3 [23.3 kB]
Get:10 http://archive.ubuntu.com/ubuntu xenial/main amd64 mime-support all 3.59ubuntu1 [31.0 kB]
Get:11 http://archive.ubuntu.com/ubuntu xenial/main amd64 libmpdec2 amd64 2.4.2-1 [82.6 kB]
Get:12 http://archive.ubuntu.com/ubuntu xenial/main amd64 libsqlite3-0 amd64 3.11.0-1ubuntu1 [396 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpython3.5-stdlib amd64 3.5.2-2ubuntu0~16.04.4 [2132 kB]
Get:14 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 python3.5 amd64 3.5.2-2ubuntu0~16.04.4 [165 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial/main amd64 libpython3-stdlib amd64 3.5.1-3 [6818 B]
Get:16 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 dh-python all 2.20151103ubuntu1.1 [74.1 kB]
Get:17 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3 amd64 3.5.1-3 [8710 B]
Get:18 http://archive.ubuntu.com/ubuntu xenial/main amd64 libgdbm3 amd64 1.8.3-13.1 [16.9 kB]
Get:19 http://archive.ubuntu.com/ubuntu xenial/main amd64 libxau6 amd64 1:1.0.8-1 [8376 B]
Get:20 http://archive.ubuntu.com/ubuntu xenial/main amd64 libxdmcp6 amd64 1:1.1.2-1.1 [11.0 kB]
Get:21 http://archive.ubuntu.com/ubuntu xenial/main amd64 libxcb1 amd64 1.11.1-1ubuntu1 [40.0 kB]
Get:22 http://archive.ubuntu.com/ubuntu xenial/main amd64 libx11-data all 2:1.6.3-1ubuntu2 [113 kB]
Get:23 http://archive.ubuntu.com/ubuntu xenial/main amd64 libx11-6 amd64 2:1.6.3-1ubuntu2 [571 kB]
Get:24 http://archive.ubuntu.com/ubuntu xenial/main amd64 libxext6 amd64 2:1.3.3-1 [29.4 kB]
Get:25 http://archive.ubuntu.com/ubuntu xenial/main amd64 sgml-base all 1.26+nmu4ubuntu1 [12.5 kB]
Get:26 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 perl-modules-5.22 all 5.22.1-9ubuntu0.2 [2661 kB]
Get:27 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libperl5.22 amd64 5.22.1-9ubuntu0.2 [3391 kB]
Get:28 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 perl amd64 5.22.1-9ubuntu0.2 [237 kB]
Get:29 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpython2.7-minimal amd64 2.7.12-1ubuntu0~16.04.3 [340 kB]
Get:30 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 python2.7-minimal amd64 2.7.12-1ubuntu0~16.04.3 [1261 kB]
Get:31 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 python-minimal amd64 2.7.12-1~16.04 [28.1 kB]
Get:32 http://archive.ubuntu.com/ubuntu xenial/main amd64 libffi6 amd64 3.2.1-4 [17.8 kB]
Get:33 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpython2.7-stdlib amd64 2.7.12-1ubuntu0~16.04.3 [1880 kB]
Get:34 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 python2.7 amd64 2.7.12-1ubuntu0~16.04.3 [224 kB]
Get:35 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpython-stdlib amd64 2.7.12-1~16.04 [7768 B]
Get:36 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 python amd64 2.7.12-1~16.04 [137 kB]
Get:37 http://archive.ubuntu.com/ubuntu xenial/main amd64 libgmp10 amd64 2:6.1.0+dfsg-2 [240 kB]
Get:38 http://archive.ubuntu.com/ubuntu xenial/main amd64 libmpfr4 amd64 3.1.4-1 [191 kB]
Get:39 http://archive.ubuntu.com/ubuntu xenial/main amd64 libmpc3 amd64 1.0.3-1 [39.7 kB]
Get:40 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 tzdata all 2017c-0ubuntu0.16.04 [166 kB]
Get:41 http://archive.ubuntu.com/ubuntu xenial/main amd64 bzip2 amd64 1.0.6-8 [32.7 kB]
Get:42 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 distro-info-data all 0.28ubuntu0.7 [4334 B]
Get:43 http://archive.ubuntu.com/ubuntu xenial/main amd64 libmagic1 amd64 1:5.25-2ubuntu1 [216 kB]
Get:44 http://archive.ubuntu.com/ubuntu xenial/main amd64 file amd64 1:5.25-2ubuntu1 [21.2 kB]
Get:45 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 iproute2 amd64 4.3.0-1ubuntu3.16.04.3 [522 kB]
Get:46 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 ifupdown amd64 0.8.10ubuntu1.2 [54.9 kB]
Get:47 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libisc-export160 amd64 1:9.10.3.dfsg.P4-8ubuntu1.10 [153 kB]
Get:48 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libdns-export162 amd64 1:9.10.3.dfsg.P4-8ubuntu1.10 [666 kB]
Get:49 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 isc-dhcp-client amd64 4.3.3-5ubuntu12.10 [224 kB]
Get:50 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 isc-dhcp-common amd64 4.3.3-5ubuntu12.10 [105 kB]
Get:51 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 less amd64 481-2.1ubuntu0.2 [110 kB]
Get:52 http://archive.ubuntu.com/ubuntu xenial/main amd64 libbsd0 amd64 0.8.2-1 [41.7 kB]
Get:53 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libnettle6 amd64 3.2-1ubuntu0.16.04.1 [93.5 kB]
Get:54 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libhogweed4 amd64 3.2-1ubuntu0.16.04.1 [136 kB]
Get:55 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libidn11 amd64 1.32-3ubuntu1.2 [46.5 kB]
Get:56 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libp11-kit0 amd64 0.23.2-5~ubuntu16.04.1 [105 kB]
Get:57 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libtasn1-6 amd64 4.7-3ubuntu0.16.04.3 [43.5 kB]
Get:58 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgnutls30 amd64 3.4.10-4ubuntu1.4 [548 kB]
Get:59 http://archive.ubuntu.com/ubuntu xenial/main amd64 libxtables11 amd64 1.6.0-2ubuntu3 [27.2 kB]
Get:60 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 locales all 2.23-0ubuntu10 [3213 kB]
Get:61 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 logrotate amd64 3.8.7-2ubuntu2.16.04.2 [37.7 kB]
Get:62 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 lsb-release all 9.20160110ubuntu0.2 [11.8 kB]
Get:63 http://archive.ubuntu.com/ubuntu xenial/main amd64 netbase all 5.3 [12.9 kB]
Get:64 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 sudo amd64 1.8.16-0ubuntu1.5 [390 kB]
Get:65 http://archive.ubuntu.com/ubuntu xenial/main amd64 ucf all 3.0036 [52.9 kB]
Get:66 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 openssl amd64 1.0.2g-1ubuntu4.11 [492 kB]
Get:67 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 ca-certificates all 20170717~16.04.1 [168 kB]
Get:68 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 krb5-locales all 1.13.2+dfsg-5ubuntu2 [13.2 kB]
Get:69 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libroken18-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [41.4 kB]
Get:70 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libasn1-8-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [174 kB]
Get:71 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libkrb5support0 amd64 1.13.2+dfsg-5ubuntu2 [30.8 kB]
Get:72 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libk5crypto3 amd64 1.13.2+dfsg-5ubuntu2 [81.2 kB]
Get:73 http://archive.ubuntu.com/ubuntu xenial/main amd64 libkeyutils1 amd64 1.5.9-8ubuntu1 [9904 B]
Get:74 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libkrb5-3 amd64 1.13.2+dfsg-5ubuntu2 [273 kB]
Get:75 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgssapi-krb5-2 amd64 1.13.2+dfsg-5ubuntu2 [120 kB]
Get:76 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libhcrypto4-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [85.0 kB]
Get:77 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libheimbase1-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [29.3 kB]
Get:78 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libwind0-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [47.8 kB]
Get:79 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libhx509-5-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [107 kB]
Get:80 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libkrb5-26-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [202 kB]
Get:81 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libheimntlm0-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [15.1 kB]
Get:82 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgssapi3-heimdal amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 [96.1 kB]
Get:83 http://archive.ubuntu.com/ubuntu xenial/main amd64 libsasl2-modules-db amd64 2.1.26.dfsg1-14build1 [14.5 kB]
Get:84 http://archive.ubuntu.com/ubuntu xenial/main amd64 libsasl2-2 amd64 2.1.26.dfsg1-14build1 [48.7 kB]
Get:85 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libldap-2.4-2 amd64 2.4.42+dfsg-2ubuntu3.2 [160 kB]
Get:86 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 librtmp1 amd64 2.4+20151223.gitfa8646d-1ubuntu0.1 [54.4 kB]
Get:87 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libcurl3-gnutls amd64 7.47.0-1ubuntu2.7 [185 kB]
Get:88 http://archive.ubuntu.com/ubuntu xenial/main amd64 libedit2 amd64 3.1-20150325-1ubuntu2 [76.5 kB]
Get:89 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libicu55 amd64 55.1-7ubuntu0.4 [7646 kB]
Get:90 http://archive.ubuntu.com/ubuntu xenial/main amd64 libsasl2-modules amd64 2.1.26.dfsg1-14build1 [47.5 kB]
Get:91 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libxml2 amd64 2.9.3+dfsg1-1ubuntu0.5 [697 kB]
Get:92 http://archive.ubuntu.com/ubuntu xenial/main amd64 libxmuu1 amd64 2:1.1.2-2 [9674 B]
Get:93 http://archive.ubuntu.com/ubuntu xenial/main amd64 manpages all 4.04-2 [1087 kB]
Get:94 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 openssh-client amd64 1:7.2p2-4ubuntu2.4 [589 kB]
Get:95 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 rsync amd64 3.1.1-3ubuntu1.2 [329 kB]
Get:96 http://archive.ubuntu.com/ubuntu xenial/main amd64 xauth amd64 1:1.0.9-1ubuntu2 [22.7 kB]
Get:97 http://archive.ubuntu.com/ubuntu xenial/main amd64 xml-core all 0.13+nmu2 [23.3 kB]
Get:98 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 binutils amd64 2.26.1-1ubuntu1~16.04.6 [2311 kB]
Get:99 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libc-dev-bin amd64 2.23-0ubuntu10 [68.7 kB]
Get:100 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-libc-dev amd64 4.4.0-116.140 [823 kB]
Get:101 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libc6-dev amd64 2.23-0ubuntu10 [2079 kB]
Get:102 http://archive.ubuntu.com/ubuntu xenial/main amd64 libisl15 amd64 0.16.1-1 [524 kB]
Get:103 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 cpp-5 amd64 5.4.0-6ubuntu1~16.04.9 [7685 kB]
Get:104 http://archive.ubuntu.com/ubuntu xenial/main amd64 cpp amd64 4:5.3.1-1ubuntu1 [27.7 kB]
Get:105 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libcc1-0 amd64 5.4.0-6ubuntu1~16.04.9 [38.8 kB]
Get:106 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgomp1 amd64 5.4.0-6ubuntu1~16.04.9 [55.0 kB]
Get:107 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libitm1 amd64 5.4.0-6ubuntu1~16.04.9 [27.4 kB]
Get:108 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libatomic1 amd64 5.4.0-6ubuntu1~16.04.9 [8882 B]
Get:109 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libasan2 amd64 5.4.0-6ubuntu1~16.04.9 [264 kB]
Get:110 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 liblsan0 amd64 5.4.0-6ubuntu1~16.04.9 [105 kB]
Get:111 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libtsan0 amd64 5.4.0-6ubuntu1~16.04.9 [244 kB]
Get:112 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libubsan0 amd64 5.4.0-6ubuntu1~16.04.9 [95.2 kB]
Get:113 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libcilkrts5 amd64 5.4.0-6ubuntu1~16.04.9 [40.1 kB]
Get:114 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libmpx0 amd64 5.4.0-6ubuntu1~16.04.9 [9774 B]
Get:115 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libquadmath0 amd64 5.4.0-6ubuntu1~16.04.9 [131 kB]
Get:116 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgcc-5-dev amd64 5.4.0-6ubuntu1~16.04.9 [2242 kB]
Get:117 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 gcc-5 amd64 5.4.0-6ubuntu1~16.04.9 [8650 kB]
Get:118 http://archive.ubuntu.com/ubuntu xenial/main amd64 gcc amd64 4:5.3.1-1ubuntu1 [5244 B]
Get:119 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libstdc++-5-dev amd64 5.4.0-6ubuntu1~16.04.9 [1427 kB]
Get:120 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 g++-5 amd64 5.4.0-6ubuntu1~16.04.9 [8333 kB]
Get:121 http://archive.ubuntu.com/ubuntu xenial/main amd64 g++ amd64 4:5.3.1-1ubuntu1 [1504 B]
Get:122 http://archive.ubuntu.com/ubuntu xenial/main amd64 make amd64 4.1-6 [151 kB]
Get:123 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libdpkg-perl all 1.18.4ubuntu1.4 [195 kB]
Get:124 http://archive.ubuntu.com/ubuntu xenial/main amd64 xz-utils amd64 5.1.1alpha+20120614-2ubuntu2 [78.8 kB]
Get:125 http://archive.ubuntu.com/ubuntu xenial/main amd64 patch amd64 2.7.5-1 [90.4 kB]
Get:126 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 dpkg-dev all 1.18.4ubuntu1.4 [584 kB]
Get:127 http://archive.ubuntu.com/ubuntu xenial/main amd64 build-essential amd64 12.1ubuntu2 [4758 B]
Get:128 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 curl amd64 7.47.0-1ubuntu2.7 [138 kB]
Get:129 http://archive.ubuntu.com/ubuntu xenial/main amd64 libfakeroot amd64 1.20.2-1ubuntu1 [25.5 kB]
Get:130 http://archive.ubuntu.com/ubuntu xenial/main amd64 fakeroot amd64 1.20.2-1ubuntu1 [61.8 kB]
Get:131 http://archive.ubuntu.com/ubuntu xenial/main amd64 liberror-perl all 0.17-1.2 [19.6 kB]
Get:132 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 git-man all 1:2.7.4-0ubuntu1.3 [736 kB]
Get:133 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 git amd64 1:2.7.4-0ubuntu1.3 [3102 kB]
Get:134 http://archive.ubuntu.com/ubuntu xenial/main amd64 python-pkg-resources all 20.7.0-1 [108 kB]
Get:135 http://archive.ubuntu.com/ubuntu xenial/universe amd64 gyp all 0.1+20150913git1f374df9-1ubuntu1 [265 kB]
Get:136 http://archive.ubuntu.com/ubuntu xenial/main amd64 javascript-common all 11 [6066 B]
Get:137 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgssrpc4 amd64 1.13.2+dfsg-5ubuntu2 [54.5 kB]
Get:138 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libkdb5-8 amd64 1.13.2+dfsg-5ubuntu2 [37.1 kB]
Get:139 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libkadm5srv-mit9 amd64 1.13.2+dfsg-5ubuntu2 [51.3 kB]
Get:140 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libkadm5clnt-mit9 amd64 1.13.2+dfsg-5ubuntu2 [36.7 kB]
Get:141 http://archive.ubuntu.com/ubuntu xenial/main amd64 comerr-dev amd64 2.1-1.42.13-1ubuntu1 [38.2 kB]
Get:142 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 krb5-multidev amd64 1.13.2+dfsg-5ubuntu2 [113 kB]
Get:143 http://archive.ubuntu.com/ubuntu xenial/main amd64 libalgorithm-diff-perl all 1.19.03-1 [47.6 kB]
Get:144 http://archive.ubuntu.com/ubuntu xenial/main amd64 libalgorithm-diff-xs-perl amd64 0.04-4build1 [11.0 kB]
Get:145 http://archive.ubuntu.com/ubuntu xenial/main amd64 libalgorithm-merge-perl all 0.08-3 [12.0 kB]
Get:146 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libexpat1-dev amd64 2.1.0-7ubuntu0.16.04.3 [115 kB]
Get:147 http://archive.ubuntu.com/ubuntu xenial/main amd64 libfile-fcntllock-perl amd64 0.22-3 [32.0 kB]
Get:148 http://archive.ubuntu.com/ubuntu xenial/main amd64 libjs-jquery all 1.11.3+dfsg-4 [161 kB]
Get:149 http://archive.ubuntu.com/ubuntu xenial/universe amd64 libjs-node-uuid all 1.4.0-1 [11.1 kB]
Get:150 http://archive.ubuntu.com/ubuntu xenial/main amd64 libjs-underscore all 1.7.0~dfsg-1ubuntu1 [46.7 kB]
Get:151 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpq5 amd64 9.5.12-0ubuntu0.16.04 [79.0 kB]
Get:152 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 zlib1g-dev amd64 1:1.2.8.dfsg-2ubuntu4.1 [168 kB]
Get:153 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libssl-dev amd64 1.0.2g-1ubuntu4.11 [1345 kB]
Get:154 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpq-dev amd64 9.5.12-0ubuntu0.16.04 [154 kB]
Get:155 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpython3.5 amd64 3.5.2-2ubuntu0~16.04.4 [1360 kB]
Get:156 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpython3.5-dev amd64 3.5.2-2ubuntu0~16.04.4 [37.3 MB]
Get:157 http://archive.ubuntu.com/ubuntu xenial/main amd64 libpython3-dev amd64 3.5.1-3 [6926 B]
Get:158 http://archive.ubuntu.com/ubuntu xenial/main amd64 libsasl2-dev amd64 2.1.26.dfsg1-14build1 [254 kB]
Get:159 http://archive.ubuntu.com/ubuntu xenial/main amd64 libsensors4 amd64 1:3.4.0-2 [28.4 kB]
Get:160 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libssl-doc all 1.0.2g-1ubuntu4.11 [1079 kB]
Get:161 http://archive.ubuntu.com/ubuntu xenial/universe amd64 libuv1 amd64 1.8.0-1 [57.4 kB]
Get:162 http://archive.ubuntu.com/ubuntu xenial/universe amd64 libuv1-dev amd64 1.8.0-1 [74.7 kB]
Get:163 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libxslt1.1 amd64 1.1.28-2.1ubuntu0.1 [145 kB]
Get:164 http://archive.ubuntu.com/ubuntu xenial/main amd64 manpages-dev all 4.04-2 [2048 kB]
Get:165 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 nodejs amd64 4.2.6~dfsg-1ubuntu4.1 [3161 kB]
Get:166 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-async all 0.8.0-1 [22.2 kB]
Get:167 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-node-uuid all 1.4.0-1 [2530 B]
Get:168 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-underscore all 1.7.0~dfsg-1ubuntu1 [3780 B]
Get:169 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 postgresql-client-common all 173ubuntu0.1 [28.4 kB]
Get:170 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 postgresql-client-9.5 amd64 9.5.12-0ubuntu0.16.04 [872 kB]
Get:171 http://archive.ubuntu.com/ubuntu xenial/main amd64 ssl-cert all 1.0.37 [16.9 kB]
Get:172 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 postgresql-common all 173ubuntu0.1 [154 kB]
Get:173 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 postgresql-9.5 amd64 9.5.12-0ubuntu0.16.04 [3010 kB]
Get:174 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 postgresql all 9.5+173ubuntu0.1 [5450 B]
Get:175 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 postgresql-contrib-9.5 amd64 9.5.12-0ubuntu0.16.04 [448 kB]
Get:176 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 postgresql-contrib all 9.5+173ubuntu0.1 [5456 B]
Get:177 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 python-pip-whl all 8.1.1-2ubuntu0.4 [1110 kB]
Get:178 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 python3.5-dev amd64 3.5.2-2ubuntu0~16.04.4 [413 kB]
Get:179 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3-dev amd64 3.5.1-3 [1186 B]
Get:180 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 python3-pip all 8.1.1-2ubuntu0.4 [109 kB]
Get:181 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3-pkg-resources all 20.7.0-1 [79.0 kB]
Get:182 http://archive.ubuntu.com/ubuntu xenial/main amd64 python3-setuptools all 20.7.0-1 [88.0 kB]
Get:183 http://archive.ubuntu.com/ubuntu xenial/universe amd64 python3-wheel all 0.29.0-1 [48.1 kB]
Get:184 http://archive.ubuntu.com/ubuntu xenial/main amd64 rename all 0.20-4 [12.0 kB]
Get:185 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 sysstat amd64 11.2.0-1ubuntu0.2 [243 kB]
Get:186 http://archive.ubuntu.com/ubuntu xenial/main amd64 libffi-dev amd64 3.2.1-4 [161 kB]
Get:187 http://archive.ubuntu.com/ubuntu xenial/universe amd64 libjs-inherits all 2.0.1-3 [2794 B]
Get:188 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libldap2-dev amd64 2.4.42+dfsg-2ubuntu3.2 [263 kB]
Get:189 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-abbrev all 1.0.5-2 [3592 B]
Get:190 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-ansi all 0.3.0-2 [8590 B]
Get:191 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-ansi-color-table all 1.0.0-1 [4478 B]
Get:192 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-archy all 0.0.2-1 [3660 B]
Get:193 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-inherits all 2.0.1-3 [3060 B]
Get:194 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-block-stream all 0.0.7-1 [4832 B]
Get:195 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-delayed-stream all 0.0.5-1 [4750 B]
Get:196 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-combined-stream all 0.0.5-1 [4958 B]
Get:197 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-cookie-jar all 0.3.1-1 [3746 B]
Get:198 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-forever-agent all 0.5.1-1 [3194 B]
Get:199 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-mime all 1.3.4-1 [11.9 kB]
Get:200 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-form-data all 0.1.0-1 [6412 B]
Get:201 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-rimraf all 2.2.8-1 [5702 B]
Get:202 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-mkdirp all 0.5.0-1 [4690 B]
Get:203 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-graceful-fs all 3.0.2-1 [7102 B]
Get:204 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-fstream all 0.1.24-1 [19.5 kB]
Get:205 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-lru-cache all 2.3.1-1 [5674 B]
Get:206 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-sigmund all 1.0.0-1 [3818 B]
Get:207 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-minimatch all 1.0.0-1 [14.0 kB]
Get:208 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-fstream-ignore all 0.0.6-2 [5586 B]
Get:209 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-github-url-from-git all 1.1.1-1 [3138 B]
Get:210 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-once all 1.1.1-1 [2608 B]
Get:211 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-glob all 4.0.5-1 [13.2 kB]
Get:212 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 nodejs-dev amd64 4.2.6~dfsg-1ubuntu4.1 [265 kB]
Get:213 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-nopt all 3.0.1-1 [9544 B]
Get:214 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-npmlog all 0.0.4-1 [5844 B]
Get:215 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-osenv all 0.1.0-1 [3772 B]
Get:216 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-tunnel-agent all 0.3.1-1 [4018 B]
Get:217 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-json-stringify-safe all 5.0.0-1 [3544 B]
Get:218 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-qs all 2.2.4-1 [7574 B]
Get:219 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-request all 2.26.1-1 [14.5 kB]
Get:220 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-semver all 2.1.0-2 [16.2 kB]
Get:221 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-tar all 1.0.3-2 [17.5 kB]
Get:222 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-which all 1.0.5-2 [3678 B]
Get:223 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-gyp all 3.0.3-2ubuntu1 [23.2 kB]
Get:224 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-ini all 1.1.0-1 [4770 B]
Get:225 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-lockfile all 0.4.1-1 [5450 B]
Get:226 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-mute-stream all 0.0.4-1 [4096 B]
Get:227 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-normalize-package-data all 0.2.2-1 [9286 B]
Get:228 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-read all 1.0.5-1 [4314 B]
Get:229 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-read-package-json all 1.2.4-1 [7780 B]
Get:230 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-retry all 0.6.0-1 [6172 B]
Get:231 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-sha all 1.2.3-1 [4272 B]
Get:232 http://archive.ubuntu.com/ubuntu xenial/universe amd64 node-slide all 1.1.4-1 [6118 B]
Get:233 http://archive.ubuntu.com/ubuntu xenial/universe amd64 npm all 3.5.2-0ubuntu4 [1586 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 136 MB in 27s (4951 kB/s)
Selecting previously unselected package cron.
(Reading database ... 4768 files and directories currently installed.)
Preparing to unpack .../cron_3.0pl1-128ubuntu2_amd64.deb ...
Unpacking cron (3.0pl1-128ubuntu2) ...
Selecting previously unselected package libatm1:amd64.
Preparing to unpack .../libatm1_1%3a2.5.1-1.5_amd64.deb ...
Unpacking libatm1:amd64 (1:2.5.1-1.5) ...
Selecting previously unselected package libmnl0:amd64.
Preparing to unpack .../libmnl0_1.0.3-5_amd64.deb ...
Unpacking libmnl0:amd64 (1.0.3-5) ...
Selecting previously unselected package libpopt0:amd64.
Preparing to unpack .../libpopt0_1.16-10_amd64.deb ...
Unpacking libpopt0:amd64 (1.16-10) ...
Selecting previously unselected package libssl1.0.0:amd64.
Preparing to unpack .../libssl1.0.0_1.0.2g-1ubuntu4.11_amd64.deb ...
Unpacking libssl1.0.0:amd64 (1.0.2g-1ubuntu4.11) ...
Selecting previously unselected package libpython3.5-minimal:amd64.
Preparing to unpack .../libpython3.5-minimal_3.5.2-2ubuntu0~16.04.4_amd64.deb ...
Unpacking libpython3.5-minimal:amd64 (3.5.2-2ubuntu0~16.04.4) ...
Selecting previously unselected package libexpat1:amd64.
Preparing to unpack .../libexpat1_2.1.0-7ubuntu0.16.04.3_amd64.deb ...
Unpacking libexpat1:amd64 (2.1.0-7ubuntu0.16.04.3) ...
Selecting previously unselected package python3.5-minimal.
Preparing to unpack .../python3.5-minimal_3.5.2-2ubuntu0~16.04.4_amd64.deb ...
Unpacking python3.5-minimal (3.5.2-2ubuntu0~16.04.4) ...
Selecting previously unselected package python3-minimal.
Preparing to unpack .../python3-minimal_3.5.1-3_amd64.deb ...
Unpacking python3-minimal (3.5.1-3) ...
Selecting previously unselected package mime-support.
Preparing to unpack .../mime-support_3.59ubuntu1_all.deb ...
Unpacking mime-support (3.59ubuntu1) ...
Selecting previously unselected package libmpdec2:amd64.
Preparing to unpack .../libmpdec2_2.4.2-1_amd64.deb ...
Unpacking libmpdec2:amd64 (2.4.2-1) ...
Selecting previously unselected package libsqlite3-0:amd64.
Preparing to unpack .../libsqlite3-0_3.11.0-1ubuntu1_amd64.deb ...
Unpacking libsqlite3-0:amd64 (3.11.0-1ubuntu1) ...
Selecting previously unselected package libpython3.5-stdlib:amd64.
Preparing to unpack .../libpython3.5-stdlib_3.5.2-2ubuntu0~16.04.4_amd64.deb ...
Unpacking libpython3.5-stdlib:amd64 (3.5.2-2ubuntu0~16.04.4) ...
Selecting previously unselected package python3.5.
Preparing to unpack .../python3.5_3.5.2-2ubuntu0~16.04.4_amd64.deb ...
Unpacking python3.5 (3.5.2-2ubuntu0~16.04.4) ...
Selecting previously unselected package libpython3-stdlib:amd64.
Preparing to unpack .../libpython3-stdlib_3.5.1-3_amd64.deb ...
Unpacking libpython3-stdlib:amd64 (3.5.1-3) ...
Selecting previously unselected package dh-python.
Preparing to unpack .../dh-python_2.20151103ubuntu1.1_all.deb ...
Unpacking dh-python (2.20151103ubuntu1.1) ...
Processing triggers for systemd (229-4ubuntu21.1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Setting up libssl1.0.0:amd64 (1.0.2g-1ubuntu4.11) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Setting up libpython3.5-minimal:amd64 (3.5.2-2ubuntu0~16.04.4) ...
Setting up libexpat1:amd64 (2.1.0-7ubuntu0.16.04.3) ...
Setting up python3.5-minimal (3.5.2-2ubuntu0~16.04.4) ...
Setting up python3-minimal (3.5.1-3) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Selecting previously unselected package python3.
(Reading database ... 5798 files and directories currently installed.)
Preparing to unpack .../python3_3.5.1-3_amd64.deb ...
Unpacking python3 (3.5.1-3) ...
Selecting previously unselected package libgdbm3:amd64.
Preparing to unpack .../libgdbm3_1.8.3-13.1_amd64.deb ...
Unpacking libgdbm3:amd64 (1.8.3-13.1) ...
Selecting previously unselected package libxau6:amd64.
Preparing to unpack .../libxau6_1%3a1.0.8-1_amd64.deb ...
Unpacking libxau6:amd64 (1:1.0.8-1) ...
Selecting previously unselected package libxdmcp6:amd64.
Preparing to unpack .../libxdmcp6_1%3a1.1.2-1.1_amd64.deb ...
Unpacking libxdmcp6:amd64 (1:1.1.2-1.1) ...
Selecting previously unselected package libxcb1:amd64.
Preparing to unpack .../libxcb1_1.11.1-1ubuntu1_amd64.deb ...
Unpacking libxcb1:amd64 (1.11.1-1ubuntu1) ...
Selecting previously unselected package libx11-data.
Preparing to unpack .../libx11-data_2%3a1.6.3-1ubuntu2_all.deb ...
Unpacking libx11-data (2:1.6.3-1ubuntu2) ...
Selecting previously unselected package libx11-6:amd64.
Preparing to unpack .../libx11-6_2%3a1.6.3-1ubuntu2_amd64.deb ...
Unpacking libx11-6:amd64 (2:1.6.3-1ubuntu2) ...
Selecting previously unselected package libxext6:amd64.
Preparing to unpack .../libxext6_2%3a1.3.3-1_amd64.deb ...
Unpacking libxext6:amd64 (2:1.3.3-1) ...
Selecting previously unselected package sgml-base.
Preparing to unpack .../sgml-base_1.26+nmu4ubuntu1_all.deb ...
Unpacking sgml-base (1.26+nmu4ubuntu1) ...
Selecting previously unselected package perl-modules-5.22.
Preparing to unpack .../perl-modules-5.22_5.22.1-9ubuntu0.2_all.deb ...
Unpacking perl-modules-5.22 (5.22.1-9ubuntu0.2) ...
Selecting previously unselected package libperl5.22:amd64.
Preparing to unpack .../libperl5.22_5.22.1-9ubuntu0.2_amd64.deb ...
Unpacking libperl5.22:amd64 (5.22.1-9ubuntu0.2) ...
Selecting previously unselected package perl.
Preparing to unpack .../perl_5.22.1-9ubuntu0.2_amd64.deb ...
Unpacking perl (5.22.1-9ubuntu0.2) ...
Selecting previously unselected package libpython2.7-minimal:amd64.
Preparing to unpack .../libpython2.7-minimal_2.7.12-1ubuntu0~16.04.3_amd64.deb ...
Unpacking libpython2.7-minimal:amd64 (2.7.12-1ubuntu0~16.04.3) ...
Selecting previously unselected package python2.7-minimal.
Preparing to unpack .../python2.7-minimal_2.7.12-1ubuntu0~16.04.3_amd64.deb ...
Unpacking python2.7-minimal (2.7.12-1ubuntu0~16.04.3) ...
Selecting previously unselected package python-minimal.
Preparing to unpack .../python-minimal_2.7.12-1~16.04_amd64.deb ...
Unpacking python-minimal (2.7.12-1~16.04) ...
Selecting previously unselected package libffi6:amd64.
Preparing to unpack .../libffi6_3.2.1-4_amd64.deb ...
Unpacking libffi6:amd64 (3.2.1-4) ...
Selecting previously unselected package libpython2.7-stdlib:amd64.
Preparing to unpack .../libpython2.7-stdlib_2.7.12-1ubuntu0~16.04.3_amd64.deb ...
Unpacking libpython2.7-stdlib:amd64 (2.7.12-1ubuntu0~16.04.3) ...
Selecting previously unselected package python2.7.
Preparing to unpack .../python2.7_2.7.12-1ubuntu0~16.04.3_amd64.deb ...
Unpacking python2.7 (2.7.12-1ubuntu0~16.04.3) ...
Selecting previously unselected package libpython-stdlib:amd64.
Preparing to unpack .../libpython-stdlib_2.7.12-1~16.04_amd64.deb ...
Unpacking libpython-stdlib:amd64 (2.7.12-1~16.04) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Setting up libpython2.7-minimal:amd64 (2.7.12-1ubuntu0~16.04.3) ...
Setting up python2.7-minimal (2.7.12-1ubuntu0~16.04.3) ...
Linking and byte-compiling packages for runtime python2.7...
Setting up python-minimal (2.7.12-1~16.04) ...
Selecting previously unselected package python.
(Reading database ... 8655 files and directories currently installed.)
Preparing to unpack .../python_2.7.12-1~16.04_amd64.deb ...
Unpacking python (2.7.12-1~16.04) ...
Selecting previously unselected package libgmp10:amd64.
Preparing to unpack .../libgmp10_2%3a6.1.0+dfsg-2_amd64.deb ...
Unpacking libgmp10:amd64 (2:6.1.0+dfsg-2) ...
Selecting previously unselected package libmpfr4:amd64.
Preparing to unpack .../libmpfr4_3.1.4-1_amd64.deb ...
Unpacking libmpfr4:amd64 (3.1.4-1) ...
Selecting previously unselected package libmpc3:amd64.
Preparing to unpack .../libmpc3_1.0.3-1_amd64.deb ...
Unpacking libmpc3:amd64 (1.0.3-1) ...
Selecting previously unselected package tzdata.
Preparing to unpack .../tzdata_2017c-0ubuntu0.16.04_all.deb ...
Unpacking tzdata (2017c-0ubuntu0.16.04) ...
Selecting previously unselected package bzip2.
Preparing to unpack .../bzip2_1.0.6-8_amd64.deb ...
Unpacking bzip2 (1.0.6-8) ...
Selecting previously unselected package distro-info-data.
Preparing to unpack .../distro-info-data_0.28ubuntu0.7_all.deb ...
Unpacking distro-info-data (0.28ubuntu0.7) ...
Selecting previously unselected package libmagic1:amd64.
Preparing to unpack .../libmagic1_1%3a5.25-2ubuntu1_amd64.deb ...
Unpacking libmagic1:amd64 (1:5.25-2ubuntu1) ...
Selecting previously unselected package file.
Preparing to unpack .../file_1%3a5.25-2ubuntu1_amd64.deb ...
Unpacking file (1:5.25-2ubuntu1) ...
Selecting previously unselected package iproute2.
Preparing to unpack .../iproute2_4.3.0-1ubuntu3.16.04.3_amd64.deb ...
Unpacking iproute2 (4.3.0-1ubuntu3.16.04.3) ...
Selecting previously unselected package ifupdown.
Preparing to unpack .../ifupdown_0.8.10ubuntu1.2_amd64.deb ...
Unpacking ifupdown (0.8.10ubuntu1.2) ...
Selecting previously unselected package libisc-export160.
Preparing to unpack .../libisc-export160_1%3a9.10.3.dfsg.P4-8ubuntu1.10_amd64.deb ...
Unpacking libisc-export160 (1:9.10.3.dfsg.P4-8ubuntu1.10) ...
Selecting previously unselected package libdns-export162.
Preparing to unpack .../libdns-export162_1%3a9.10.3.dfsg.P4-8ubuntu1.10_amd64.deb ...
Unpacking libdns-export162 (1:9.10.3.dfsg.P4-8ubuntu1.10) ...
Selecting previously unselected package isc-dhcp-client.
Preparing to unpack .../isc-dhcp-client_4.3.3-5ubuntu12.10_amd64.deb ...
Unpacking isc-dhcp-client (4.3.3-5ubuntu12.10) ...
Selecting previously unselected package isc-dhcp-common.
Preparing to unpack .../isc-dhcp-common_4.3.3-5ubuntu12.10_amd64.deb ...
Unpacking isc-dhcp-common (4.3.3-5ubuntu12.10) ...
Selecting previously unselected package less.
Preparing to unpack .../less_481-2.1ubuntu0.2_amd64.deb ...
Unpacking less (481-2.1ubuntu0.2) ...
Selecting previously unselected package libbsd0:amd64.
Preparing to unpack .../libbsd0_0.8.2-1_amd64.deb ...
Unpacking libbsd0:amd64 (0.8.2-1) ...
Selecting previously unselected package libnettle6:amd64.
Preparing to unpack .../libnettle6_3.2-1ubuntu0.16.04.1_amd64.deb ...
Unpacking libnettle6:amd64 (3.2-1ubuntu0.16.04.1) ...
Selecting previously unselected package libhogweed4:amd64.
Preparing to unpack .../libhogweed4_3.2-1ubuntu0.16.04.1_amd64.deb ...
Unpacking libhogweed4:amd64 (3.2-1ubuntu0.16.04.1) ...
Selecting previously unselected package libidn11:amd64.
Preparing to unpack .../libidn11_1.32-3ubuntu1.2_amd64.deb ...
Unpacking libidn11:amd64 (1.32-3ubuntu1.2) ...
Selecting previously unselected package libp11-kit0:amd64.
Preparing to unpack .../libp11-kit0_0.23.2-5~ubuntu16.04.1_amd64.deb ...
Unpacking libp11-kit0:amd64 (0.23.2-5~ubuntu16.04.1) ...
Selecting previously unselected package libtasn1-6:amd64.
Preparing to unpack .../libtasn1-6_4.7-3ubuntu0.16.04.3_amd64.deb ...
Unpacking libtasn1-6:amd64 (4.7-3ubuntu0.16.04.3) ...
Selecting previously unselected package libgnutls30:amd64.
Preparing to unpack .../libgnutls30_3.4.10-4ubuntu1.4_amd64.deb ...
Unpacking libgnutls30:amd64 (3.4.10-4ubuntu1.4) ...
Selecting previously unselected package libxtables11:amd64.
Preparing to unpack .../libxtables11_1.6.0-2ubuntu3_amd64.deb ...
Unpacking libxtables11:amd64 (1.6.0-2ubuntu3) ...
Selecting previously unselected package locales.
Preparing to unpack .../locales_2.23-0ubuntu10_all.deb ...
Unpacking locales (2.23-0ubuntu10) ...
Selecting previously unselected package logrotate.
Preparing to unpack .../logrotate_3.8.7-2ubuntu2.16.04.2_amd64.deb ...
Unpacking logrotate (3.8.7-2ubuntu2.16.04.2) ...
Selecting previously unselected package lsb-release.
Preparing to unpack .../lsb-release_9.20160110ubuntu0.2_all.deb ...
Unpacking lsb-release (9.20160110ubuntu0.2) ...
Selecting previously unselected package netbase.
Preparing to unpack .../archives/netbase_5.3_all.deb ...
Unpacking netbase (5.3) ...
Selecting previously unselected package sudo.
Preparing to unpack .../sudo_1.8.16-0ubuntu1.5_amd64.deb ...
Unpacking sudo (1.8.16-0ubuntu1.5) ...
Selecting previously unselected package ucf.
Preparing to unpack .../archives/ucf_3.0036_all.deb ...
Moving old data out of the way
Unpacking ucf (3.0036) ...
Selecting previously unselected package openssl.
Preparing to unpack .../openssl_1.0.2g-1ubuntu4.11_amd64.deb ...
Unpacking openssl (1.0.2g-1ubuntu4.11) ...
Selecting previously unselected package ca-certificates.
Preparing to unpack .../ca-certificates_20170717~16.04.1_all.deb ...
Unpacking ca-certificates (20170717~16.04.1) ...
Selecting previously unselected package krb5-locales.
Preparing to unpack .../krb5-locales_1.13.2+dfsg-5ubuntu2_all.deb ...
Unpacking krb5-locales (1.13.2+dfsg-5ubuntu2) ...
Selecting previously unselected package libroken18-heimdal:amd64.
Preparing to unpack .../libroken18-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libroken18-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libasn1-8-heimdal:amd64.
Preparing to unpack .../libasn1-8-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libasn1-8-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libkrb5support0:amd64.
Preparing to unpack .../libkrb5support0_1.13.2+dfsg-5ubuntu2_amd64.deb ...
Unpacking libkrb5support0:amd64 (1.13.2+dfsg-5ubuntu2) ...
Selecting previously unselected package libk5crypto3:amd64.
Preparing to unpack .../libk5crypto3_1.13.2+dfsg-5ubuntu2_amd64.deb ...
Unpacking libk5crypto3:amd64 (1.13.2+dfsg-5ubuntu2) ...
Selecting previously unselected package libkeyutils1:amd64.
Preparing to unpack .../libkeyutils1_1.5.9-8ubuntu1_amd64.deb ...
Unpacking libkeyutils1:amd64 (1.5.9-8ubuntu1) ...
Selecting previously unselected package libkrb5-3:amd64.
Preparing to unpack .../libkrb5-3_1.13.2+dfsg-5ubuntu2_amd64.deb ...
Unpacking libkrb5-3:amd64 (1.13.2+dfsg-5ubuntu2) ...
Selecting previously unselected package libgssapi-krb5-2:amd64.
Preparing to unpack .../libgssapi-krb5-2_1.13.2+dfsg-5ubuntu2_amd64.deb ...
Unpacking libgssapi-krb5-2:amd64 (1.13.2+dfsg-5ubuntu2) ...
Selecting previously unselected package libhcrypto4-heimdal:amd64.
Preparing to unpack .../libhcrypto4-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libhcrypto4-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libheimbase1-heimdal:amd64.
Preparing to unpack .../libheimbase1-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libheimbase1-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libwind0-heimdal:amd64.
Preparing to unpack .../libwind0-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libwind0-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libhx509-5-heimdal:amd64.
Preparing to unpack .../libhx509-5-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libhx509-5-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libkrb5-26-heimdal:amd64.
Preparing to unpack .../libkrb5-26-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libkrb5-26-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libheimntlm0-heimdal:amd64.
Preparing to unpack .../libheimntlm0-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libheimntlm0-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libgssapi3-heimdal:amd64.
Preparing to unpack .../libgssapi3-heimdal_1.7~git20150920+dfsg-4ubuntu1.16.04.1_amd64.deb ...
Unpacking libgssapi3-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Selecting previously unselected package libsasl2-modules-db:amd64.
Preparing to unpack .../libsasl2-modules-db_2.1.26.dfsg1-14build1_amd64.deb ...
Unpacking libsasl2-modules-db:amd64 (2.1.26.dfsg1-14build1) ...
Selecting previously unselected package libsasl2-2:amd64.
Preparing to unpack .../libsasl2-2_2.1.26.dfsg1-14build1_amd64.deb ...
Unpacking libsasl2-2:amd64 (2.1.26.dfsg1-14build1) ...
Selecting previously unselected package libldap-2.4-2:amd64.
Preparing to unpack .../libldap-2.4-2_2.4.42+dfsg-2ubuntu3.2_amd64.deb ...
Unpacking libldap-2.4-2:amd64 (2.4.42+dfsg-2ubuntu3.2) ...
Selecting previously unselected package librtmp1:amd64.
Preparing to unpack .../librtmp1_2.4+20151223.gitfa8646d-1ubuntu0.1_amd64.deb ...
Unpacking librtmp1:amd64 (2.4+20151223.gitfa8646d-1ubuntu0.1) ...
Selecting previously unselected package libcurl3-gnutls:amd64.
Preparing to unpack .../libcurl3-gnutls_7.47.0-1ubuntu2.7_amd64.deb ...
Unpacking libcurl3-gnutls:amd64 (7.47.0-1ubuntu2.7) ...
Selecting previously unselected package libedit2:amd64.
Preparing to unpack .../libedit2_3.1-20150325-1ubuntu2_amd64.deb ...
Unpacking libedit2:amd64 (3.1-20150325-1ubuntu2) ...
Selecting previously unselected package libicu55:amd64.
Preparing to unpack .../libicu55_55.1-7ubuntu0.4_amd64.deb ...
Unpacking libicu55:amd64 (55.1-7ubuntu0.4) ...
Selecting previously unselected package libsasl2-modules:amd64.
Preparing to unpack .../libsasl2-modules_2.1.26.dfsg1-14build1_amd64.deb ...
Unpacking libsasl2-modules:amd64 (2.1.26.dfsg1-14build1) ...
Selecting previously unselected package libxml2:amd64.
Preparing to unpack .../libxml2_2.9.3+dfsg1-1ubuntu0.5_amd64.deb ...
Unpacking libxml2:amd64 (2.9.3+dfsg1-1ubuntu0.5) ...
Selecting previously unselected package libxmuu1:amd64.
Preparing to unpack .../libxmuu1_2%3a1.1.2-2_amd64.deb ...
Unpacking libxmuu1:amd64 (2:1.1.2-2) ...
Selecting previously unselected package manpages.
Preparing to unpack .../manpages_4.04-2_all.deb ...
Unpacking manpages (4.04-2) ...
Selecting previously unselected package openssh-client.
Preparing to unpack .../openssh-client_1%3a7.2p2-4ubuntu2.4_amd64.deb ...
Unpacking openssh-client (1:7.2p2-4ubuntu2.4) ...
Selecting previously unselected package rsync.
Preparing to unpack .../rsync_3.1.1-3ubuntu1.2_amd64.deb ...
Unpacking rsync (3.1.1-3ubuntu1.2) ...
Selecting previously unselected package xauth.
Preparing to unpack .../xauth_1%3a1.0.9-1ubuntu2_amd64.deb ...
Unpacking xauth (1:1.0.9-1ubuntu2) ...
Selecting previously unselected package xml-core.
Preparing to unpack .../xml-core_0.13+nmu2_all.deb ...
Unpacking xml-core (0.13+nmu2) ...
Selecting previously unselected package binutils.
Preparing to unpack .../binutils_2.26.1-1ubuntu1~16.04.6_amd64.deb ...
Unpacking binutils (2.26.1-1ubuntu1~16.04.6) ...
Selecting previously unselected package libc-dev-bin.
Preparing to unpack .../libc-dev-bin_2.23-0ubuntu10_amd64.deb ...
Unpacking libc-dev-bin (2.23-0ubuntu10) ...
Selecting previously unselected package linux-libc-dev:amd64.
Preparing to unpack .../linux-libc-dev_4.4.0-116.140_amd64.deb ...
Unpacking linux-libc-dev:amd64 (4.4.0-116.140) ...
Selecting previously unselected package libc6-dev:amd64.
Preparing to unpack .../libc6-dev_2.23-0ubuntu10_amd64.deb ...
Unpacking libc6-dev:amd64 (2.23-0ubuntu10) ...
Selecting previously unselected package libisl15:amd64.
Preparing to unpack .../libisl15_0.16.1-1_amd64.deb ...
Unpacking libisl15:amd64 (0.16.1-1) ...
Selecting previously unselected package cpp-5.
Preparing to unpack .../cpp-5_5.4.0-6ubuntu1~16.04.9_amd64.deb ...
Unpacking cpp-5 (5.4.0-6ubuntu1~16.04.9) ...
Selecting previously unselected package cpp.
Preparing to unpack .../cpp_4%3a5.3.1-1ubuntu1_amd64.deb ...
Unpacking cpp (4:5.3.1-1ubuntu1) ...
Selecting previously unselected package libcc1-0:amd64.
Preparing to unpack .../libcc1-0_5.4.0-6ubuntu1~16.04.9_amd64.deb ...
Unpacking libcc1-0:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Selecting previously unselected package libgomp1:amd64.
Preparing to unpack .../libgomp1_5.4.0-6ubuntu1~16.04.9_amd64.deb ...
Unpacking libgomp1:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Selecting previously unselected package libitm1:amd64.
Preparing to unpack .../libitm1_5.4.0-6ubuntu1~16.04.9_amd64.deb ...
Unpacking libitm1:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Selecting previously unselected package libatomic1:amd64.
Preparing to unpack .../libatomic1_5.4.0-6ubuntu1~16.04.9_amd64.deb ...
Unpacking libatomic1:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Selecting previously unselected package libasan2:amd64.
Preparing to unpack .../libasan2_5.4.0-6ubuntu1~16.04.9_amd64.deb ...
Unpacking libasan2:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Selecting previously unselected package liblsan0:amd64.
Preparing to unpack .../liblsan0_5.4.0-6ubuntu1~16.04.9_amd64.deb ...
Unpacking liblsan0:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Selecting previously unselected package libtsan0:amd64.
Preparing to unpack .../libtsan0_5.4.0-6ubuntu1~16.04.9_amd64.deb ...
Unpacking libtsan0:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Selecting previously unselected package libubsan0:amd64.
Preparing to unpack .../libubsan0_5.4.0-6ubuntu1~16.04.9_amd64.deb ...
Unpacking libubsan0:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Selecting previously unselected package libcilkrts5:amd64.
Preparing to unpack .../libcilkrts5_5.4.0-6ubuntu1~16.04.9_amd64.deb ...
Unpacking libcilkrts5:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Selecting previously unselected package libmpx0:amd64.
Preparing to unpack .../libmpx0_5.4.0-6ubuntu1~16.04.9_amd64.deb ...
Unpacking libmpx0:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Selecting previously unselected package libquadmath0:amd64.
Preparing to unpack .../libquadmath0_5.4.0-6ubuntu1~16.04.9_amd64.deb ...
Unpacking libquadmath0:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Selecting previously unselected package libgcc-5-dev:amd64.
Preparing to unpack .../libgcc-5-dev_5.4.0-6ubuntu1~16.04.9_amd64.deb ...
Unpacking libgcc-5-dev:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Selecting previously unselected package gcc-5.
Preparing to unpack .../gcc-5_5.4.0-6ubuntu1~16.04.9_amd64.deb ...
Unpacking gcc-5 (5.4.0-6ubuntu1~16.04.9) ...
Selecting previously unselected package gcc.
Preparing to unpack .../gcc_4%3a5.3.1-1ubuntu1_amd64.deb ...
Unpacking gcc (4:5.3.1-1ubuntu1) ...
Selecting previously unselected package libstdc++-5-dev:amd64.
Preparing to unpack .../libstdc++-5-dev_5.4.0-6ubuntu1~16.04.9_amd64.deb ...
Unpacking libstdc++-5-dev:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Selecting previously unselected package g++-5.
Preparing to unpack .../g++-5_5.4.0-6ubuntu1~16.04.9_amd64.deb ...
Unpacking g++-5 (5.4.0-6ubuntu1~16.04.9) ...
Selecting previously unselected package g++.
Preparing to unpack .../g++_4%3a5.3.1-1ubuntu1_amd64.deb ...
Unpacking g++ (4:5.3.1-1ubuntu1) ...
Selecting previously unselected package make.
Preparing to unpack .../archives/make_4.1-6_amd64.deb ...
Unpacking make (4.1-6) ...
Selecting previously unselected package libdpkg-perl.
Preparing to unpack .../libdpkg-perl_1.18.4ubuntu1.4_all.deb ...
Unpacking libdpkg-perl (1.18.4ubuntu1.4) ...
Selecting previously unselected package xz-utils.
Preparing to unpack .../xz-utils_5.1.1alpha+20120614-2ubuntu2_amd64.deb ...
Unpacking xz-utils (5.1.1alpha+20120614-2ubuntu2) ...
Selecting previously unselected package patch.
Preparing to unpack .../patch_2.7.5-1_amd64.deb ...
Unpacking patch (2.7.5-1) ...
Selecting previously unselected package dpkg-dev.
Preparing to unpack .../dpkg-dev_1.18.4ubuntu1.4_all.deb ...
Unpacking dpkg-dev (1.18.4ubuntu1.4) ...
Selecting previously unselected package build-essential.
Preparing to unpack .../build-essential_12.1ubuntu2_amd64.deb ...
Unpacking build-essential (12.1ubuntu2) ...
Selecting previously unselected package curl.
Preparing to unpack .../curl_7.47.0-1ubuntu2.7_amd64.deb ...
Unpacking curl (7.47.0-1ubuntu2.7) ...
Selecting previously unselected package libfakeroot:amd64.
Preparing to unpack .../libfakeroot_1.20.2-1ubuntu1_amd64.deb ...
Unpacking libfakeroot:amd64 (1.20.2-1ubuntu1) ...
Selecting previously unselected package fakeroot.
Preparing to unpack .../fakeroot_1.20.2-1ubuntu1_amd64.deb ...
Unpacking fakeroot (1.20.2-1ubuntu1) ...
Selecting previously unselected package liberror-perl.
Preparing to unpack .../liberror-perl_0.17-1.2_all.deb ...
Unpacking liberror-perl (0.17-1.2) ...
Selecting previously unselected package git-man.
Preparing to unpack .../git-man_1%3a2.7.4-0ubuntu1.3_all.deb ...
Unpacking git-man (1:2.7.4-0ubuntu1.3) ...
Selecting previously unselected package git.
Preparing to unpack .../git_1%3a2.7.4-0ubuntu1.3_amd64.deb ...
Unpacking git (1:2.7.4-0ubuntu1.3) ...
Selecting previously unselected package python-pkg-resources.
Preparing to unpack .../python-pkg-resources_20.7.0-1_all.deb ...
Unpacking python-pkg-resources (20.7.0-1) ...
Selecting previously unselected package gyp.
Preparing to unpack .../gyp_0.1+20150913git1f374df9-1ubuntu1_all.deb ...
Unpacking gyp (0.1+20150913git1f374df9-1ubuntu1) ...
Selecting previously unselected package javascript-common.
Preparing to unpack .../javascript-common_11_all.deb ...
Unpacking javascript-common (11) ...
Selecting previously unselected package libgssrpc4:amd64.
Preparing to unpack .../libgssrpc4_1.13.2+dfsg-5ubuntu2_amd64.deb ...
Unpacking libgssrpc4:amd64 (1.13.2+dfsg-5ubuntu2) ...
Selecting previously unselected package libkdb5-8:amd64.
Preparing to unpack .../libkdb5-8_1.13.2+dfsg-5ubuntu2_amd64.deb ...
Unpacking libkdb5-8:amd64 (1.13.2+dfsg-5ubuntu2) ...
Selecting previously unselected package libkadm5srv-mit9:amd64.
Preparing to unpack .../libkadm5srv-mit9_1.13.2+dfsg-5ubuntu2_amd64.deb ...
Unpacking libkadm5srv-mit9:amd64 (1.13.2+dfsg-5ubuntu2) ...
Selecting previously unselected package libkadm5clnt-mit9:amd64.
Preparing to unpack .../libkadm5clnt-mit9_1.13.2+dfsg-5ubuntu2_amd64.deb ...
Unpacking libkadm5clnt-mit9:amd64 (1.13.2+dfsg-5ubuntu2) ...
Selecting previously unselected package comerr-dev.
Preparing to unpack .../comerr-dev_2.1-1.42.13-1ubuntu1_amd64.deb ...
Unpacking comerr-dev (2.1-1.42.13-1ubuntu1) ...
Selecting previously unselected package krb5-multidev.
Preparing to unpack .../krb5-multidev_1.13.2+dfsg-5ubuntu2_amd64.deb ...
Unpacking krb5-multidev (1.13.2+dfsg-5ubuntu2) ...
Selecting previously unselected package libalgorithm-diff-perl.
Preparing to unpack .../libalgorithm-diff-perl_1.19.03-1_all.deb ...
Unpacking libalgorithm-diff-perl (1.19.03-1) ...
Selecting previously unselected package libalgorithm-diff-xs-perl.
Preparing to unpack .../libalgorithm-diff-xs-perl_0.04-4build1_amd64.deb ...
Unpacking libalgorithm-diff-xs-perl (0.04-4build1) ...
Selecting previously unselected package libalgorithm-merge-perl.
Preparing to unpack .../libalgorithm-merge-perl_0.08-3_all.deb ...
Unpacking libalgorithm-merge-perl (0.08-3) ...
Selecting previously unselected package libexpat1-dev:amd64.
Preparing to unpack .../libexpat1-dev_2.1.0-7ubuntu0.16.04.3_amd64.deb ...
Unpacking libexpat1-dev:amd64 (2.1.0-7ubuntu0.16.04.3) ...
Selecting previously unselected package libfile-fcntllock-perl.
Preparing to unpack .../libfile-fcntllock-perl_0.22-3_amd64.deb ...
Unpacking libfile-fcntllock-perl (0.22-3) ...
Selecting previously unselected package libjs-jquery.
Preparing to unpack .../libjs-jquery_1.11.3+dfsg-4_all.deb ...
Unpacking libjs-jquery (1.11.3+dfsg-4) ...
Selecting previously unselected package libjs-node-uuid.
Preparing to unpack .../libjs-node-uuid_1.4.0-1_all.deb ...
Unpacking libjs-node-uuid (1.4.0-1) ...
Selecting previously unselected package libjs-underscore.
Preparing to unpack .../libjs-underscore_1.7.0~dfsg-1ubuntu1_all.deb ...
Unpacking libjs-underscore (1.7.0~dfsg-1ubuntu1) ...
Selecting previously unselected package libpq5:amd64.
Preparing to unpack .../libpq5_9.5.12-0ubuntu0.16.04_amd64.deb ...
Unpacking libpq5:amd64 (9.5.12-0ubuntu0.16.04) ...
Selecting previously unselected package zlib1g-dev:amd64.
Preparing to unpack .../zlib1g-dev_1%3a1.2.8.dfsg-2ubuntu4.1_amd64.deb ...
Unpacking zlib1g-dev:amd64 (1:1.2.8.dfsg-2ubuntu4.1) ...
Selecting previously unselected package libssl-dev:amd64.
Preparing to unpack .../libssl-dev_1.0.2g-1ubuntu4.11_amd64.deb ...
Unpacking libssl-dev:amd64 (1.0.2g-1ubuntu4.11) ...
Selecting previously unselected package libpq-dev.
Preparing to unpack .../libpq-dev_9.5.12-0ubuntu0.16.04_amd64.deb ...
Unpacking libpq-dev (9.5.12-0ubuntu0.16.04) ...
Selecting previously unselected package libpython3.5:amd64.
Preparing to unpack .../libpython3.5_3.5.2-2ubuntu0~16.04.4_amd64.deb ...
Unpacking libpython3.5:amd64 (3.5.2-2ubuntu0~16.04.4) ...
Selecting previously unselected package libpython3.5-dev:amd64.
Preparing to unpack .../libpython3.5-dev_3.5.2-2ubuntu0~16.04.4_amd64.deb ...
Unpacking libpython3.5-dev:amd64 (3.5.2-2ubuntu0~16.04.4) ...
Selecting previously unselected package libpython3-dev:amd64.
Preparing to unpack .../libpython3-dev_3.5.1-3_amd64.deb ...
Unpacking libpython3-dev:amd64 (3.5.1-3) ...
Selecting previously unselected package libsasl2-dev.
Preparing to unpack .../libsasl2-dev_2.1.26.dfsg1-14build1_amd64.deb ...
Unpacking libsasl2-dev (2.1.26.dfsg1-14build1) ...
Selecting previously unselected package libsensors4:amd64.
Preparing to unpack .../libsensors4_1%3a3.4.0-2_amd64.deb ...
Unpacking libsensors4:amd64 (1:3.4.0-2) ...
Selecting previously unselected package libssl-doc.
Preparing to unpack .../libssl-doc_1.0.2g-1ubuntu4.11_all.deb ...
Unpacking libssl-doc (1.0.2g-1ubuntu4.11) ...
Selecting previously unselected package libuv1:amd64.
Preparing to unpack .../libuv1_1.8.0-1_amd64.deb ...
Unpacking libuv1:amd64 (1.8.0-1) ...
Selecting previously unselected package libuv1-dev:amd64.
Preparing to unpack .../libuv1-dev_1.8.0-1_amd64.deb ...
Unpacking libuv1-dev:amd64 (1.8.0-1) ...
Selecting previously unselected package libxslt1.1:amd64.
Preparing to unpack .../libxslt1.1_1.1.28-2.1ubuntu0.1_amd64.deb ...
Unpacking libxslt1.1:amd64 (1.1.28-2.1ubuntu0.1) ...
Selecting previously unselected package manpages-dev.
Preparing to unpack .../manpages-dev_4.04-2_all.deb ...
Unpacking manpages-dev (4.04-2) ...
Selecting previously unselected package nodejs.
Preparing to unpack .../nodejs_4.2.6~dfsg-1ubuntu4.1_amd64.deb ...
Unpacking nodejs (4.2.6~dfsg-1ubuntu4.1) ...
Selecting previously unselected package node-async.
Preparing to unpack .../node-async_0.8.0-1_all.deb ...
Unpacking node-async (0.8.0-1) ...
Selecting previously unselected package node-node-uuid.
Preparing to unpack .../node-node-uuid_1.4.0-1_all.deb ...
Unpacking node-node-uuid (1.4.0-1) ...
Selecting previously unselected package node-underscore.
Preparing to unpack .../node-underscore_1.7.0~dfsg-1ubuntu1_all.deb ...
Unpacking node-underscore (1.7.0~dfsg-1ubuntu1) ...
Selecting previously unselected package postgresql-client-common.
Preparing to unpack .../postgresql-client-common_173ubuntu0.1_all.deb ...
Unpacking postgresql-client-common (173ubuntu0.1) ...
Selecting previously unselected package postgresql-client-9.5.
Preparing to unpack .../postgresql-client-9.5_9.5.12-0ubuntu0.16.04_amd64.deb ...
Unpacking postgresql-client-9.5 (9.5.12-0ubuntu0.16.04) ...
Selecting previously unselected package ssl-cert.
Preparing to unpack .../ssl-cert_1.0.37_all.deb ...
Unpacking ssl-cert (1.0.37) ...
Selecting previously unselected package postgresql-common.
Preparing to unpack .../postgresql-common_173ubuntu0.1_all.deb ...
Adding 'diversion of /usr/bin/pg_config to /usr/bin/pg_config.libpq-dev by postgresql-common'
Unpacking postgresql-common (173ubuntu0.1) ...
Selecting previously unselected package postgresql-9.5.
Preparing to unpack .../postgresql-9.5_9.5.12-0ubuntu0.16.04_amd64.deb ...
Unpacking postgresql-9.5 (9.5.12-0ubuntu0.16.04) ...
Selecting previously unselected package postgresql.
Preparing to unpack .../postgresql_9.5+173ubuntu0.1_all.deb ...
Unpacking postgresql (9.5+173ubuntu0.1) ...
Selecting previously unselected package postgresql-contrib-9.5.
Preparing to unpack .../postgresql-contrib-9.5_9.5.12-0ubuntu0.16.04_amd64.deb ...
Unpacking postgresql-contrib-9.5 (9.5.12-0ubuntu0.16.04) ...
Selecting previously unselected package postgresql-contrib.
Preparing to unpack .../postgresql-contrib_9.5+173ubuntu0.1_all.deb ...
Unpacking postgresql-contrib (9.5+173ubuntu0.1) ...
Selecting previously unselected package python-pip-whl.
Preparing to unpack .../python-pip-whl_8.1.1-2ubuntu0.4_all.deb ...
Unpacking python-pip-whl (8.1.1-2ubuntu0.4) ...
Selecting previously unselected package python3.5-dev.
Preparing to unpack .../python3.5-dev_3.5.2-2ubuntu0~16.04.4_amd64.deb ...
Unpacking python3.5-dev (3.5.2-2ubuntu0~16.04.4) ...
Selecting previously unselected package python3-dev.
Preparing to unpack .../python3-dev_3.5.1-3_amd64.deb ...
Unpacking python3-dev (3.5.1-3) ...
Selecting previously unselected package python3-pip.
Preparing to unpack .../python3-pip_8.1.1-2ubuntu0.4_all.deb ...
Unpacking python3-pip (8.1.1-2ubuntu0.4) ...
Selecting previously unselected package python3-pkg-resources.
Preparing to unpack .../python3-pkg-resources_20.7.0-1_all.deb ...
Unpacking python3-pkg-resources (20.7.0-1) ...
Selecting previously unselected package python3-setuptools.
Preparing to unpack .../python3-setuptools_20.7.0-1_all.deb ...
Unpacking python3-setuptools (20.7.0-1) ...
Selecting previously unselected package python3-wheel.
Preparing to unpack .../python3-wheel_0.29.0-1_all.deb ...
Unpacking python3-wheel (0.29.0-1) ...
Selecting previously unselected package rename.
Preparing to unpack .../archives/rename_0.20-4_all.deb ...
Unpacking rename (0.20-4) ...
Selecting previously unselected package sysstat.
Preparing to unpack .../sysstat_11.2.0-1ubuntu0.2_amd64.deb ...
Unpacking sysstat (11.2.0-1ubuntu0.2) ...
Selecting previously unselected package libffi-dev:amd64.
Preparing to unpack .../libffi-dev_3.2.1-4_amd64.deb ...
Unpacking libffi-dev:amd64 (3.2.1-4) ...
Selecting previously unselected package libjs-inherits.
Preparing to unpack .../libjs-inherits_2.0.1-3_all.deb ...
Unpacking libjs-inherits (2.0.1-3) ...
Selecting previously unselected package libldap2-dev:amd64.
Preparing to unpack .../libldap2-dev_2.4.42+dfsg-2ubuntu3.2_amd64.deb ...
Unpacking libldap2-dev:amd64 (2.4.42+dfsg-2ubuntu3.2) ...
Selecting previously unselected package node-abbrev.
Preparing to unpack .../node-abbrev_1.0.5-2_all.deb ...
Unpacking node-abbrev (1.0.5-2) ...
Selecting previously unselected package node-ansi.
Preparing to unpack .../node-ansi_0.3.0-2_all.deb ...
Unpacking node-ansi (0.3.0-2) ...
Selecting previously unselected package node-ansi-color-table.
Preparing to unpack .../node-ansi-color-table_1.0.0-1_all.deb ...
Unpacking node-ansi-color-table (1.0.0-1) ...
Selecting previously unselected package node-archy.
Preparing to unpack .../node-archy_0.0.2-1_all.deb ...
Unpacking node-archy (0.0.2-1) ...
Selecting previously unselected package node-inherits.
Preparing to unpack .../node-inherits_2.0.1-3_all.deb ...
Unpacking node-inherits (2.0.1-3) ...
Selecting previously unselected package node-block-stream.
Preparing to unpack .../node-block-stream_0.0.7-1_all.deb ...
Unpacking node-block-stream (0.0.7-1) ...
Selecting previously unselected package node-delayed-stream.
Preparing to unpack .../node-delayed-stream_0.0.5-1_all.deb ...
Unpacking node-delayed-stream (0.0.5-1) ...
Selecting previously unselected package node-combined-stream.
Preparing to unpack .../node-combined-stream_0.0.5-1_all.deb ...
Unpacking node-combined-stream (0.0.5-1) ...
Selecting previously unselected package node-cookie-jar.
Preparing to unpack .../node-cookie-jar_0.3.1-1_all.deb ...
Unpacking node-cookie-jar (0.3.1-1) ...
Selecting previously unselected package node-forever-agent.
Preparing to unpack .../node-forever-agent_0.5.1-1_all.deb ...
Unpacking node-forever-agent (0.5.1-1) ...
Selecting previously unselected package node-mime.
Preparing to unpack .../node-mime_1.3.4-1_all.deb ...
Unpacking node-mime (1.3.4-1) ...
Selecting previously unselected package node-form-data.
Preparing to unpack .../node-form-data_0.1.0-1_all.deb ...
Unpacking node-form-data (0.1.0-1) ...
Selecting previously unselected package node-rimraf.
Preparing to unpack .../node-rimraf_2.2.8-1_all.deb ...
Unpacking node-rimraf (2.2.8-1) ...
Selecting previously unselected package node-mkdirp.
Preparing to unpack .../node-mkdirp_0.5.0-1_all.deb ...
Unpacking node-mkdirp (0.5.0-1) ...
Selecting previously unselected package node-graceful-fs.
Preparing to unpack .../node-graceful-fs_3.0.2-1_all.deb ...
Unpacking node-graceful-fs (3.0.2-1) ...
Selecting previously unselected package node-fstream.
Preparing to unpack .../node-fstream_0.1.24-1_all.deb ...
Unpacking node-fstream (0.1.24-1) ...
Selecting previously unselected package node-lru-cache.
Preparing to unpack .../node-lru-cache_2.3.1-1_all.deb ...
Unpacking node-lru-cache (2.3.1-1) ...
Selecting previously unselected package node-sigmund.
Preparing to unpack .../node-sigmund_1.0.0-1_all.deb ...
Unpacking node-sigmund (1.0.0-1) ...
Selecting previously unselected package node-minimatch.
Preparing to unpack .../node-minimatch_1.0.0-1_all.deb ...
Unpacking node-minimatch (1.0.0-1) ...
Selecting previously unselected package node-fstream-ignore.
Preparing to unpack .../node-fstream-ignore_0.0.6-2_all.deb ...
Unpacking node-fstream-ignore (0.0.6-2) ...
Selecting previously unselected package node-github-url-from-git.
Preparing to unpack .../node-github-url-from-git_1.1.1-1_all.deb ...
Unpacking node-github-url-from-git (1.1.1-1) ...
Selecting previously unselected package node-once.
Preparing to unpack .../node-once_1.1.1-1_all.deb ...
Unpacking node-once (1.1.1-1) ...
Selecting previously unselected package node-glob.
Preparing to unpack .../node-glob_4.0.5-1_all.deb ...
Unpacking node-glob (4.0.5-1) ...
Selecting previously unselected package nodejs-dev.
Preparing to unpack .../nodejs-dev_4.2.6~dfsg-1ubuntu4.1_amd64.deb ...
Unpacking nodejs-dev (4.2.6~dfsg-1ubuntu4.1) ...
Selecting previously unselected package node-nopt.
Preparing to unpack .../node-nopt_3.0.1-1_all.deb ...
Unpacking node-nopt (3.0.1-1) ...
Selecting previously unselected package node-npmlog.
Preparing to unpack .../node-npmlog_0.0.4-1_all.deb ...
Unpacking node-npmlog (0.0.4-1) ...
Selecting previously unselected package node-osenv.
Preparing to unpack .../node-osenv_0.1.0-1_all.deb ...
Unpacking node-osenv (0.1.0-1) ...
Selecting previously unselected package node-tunnel-agent.
Preparing to unpack .../node-tunnel-agent_0.3.1-1_all.deb ...
Unpacking node-tunnel-agent (0.3.1-1) ...
Selecting previously unselected package node-json-stringify-safe.
Preparing to unpack .../node-json-stringify-safe_5.0.0-1_all.deb ...
Unpacking node-json-stringify-safe (5.0.0-1) ...
Selecting previously unselected package node-qs.
Preparing to unpack .../node-qs_2.2.4-1_all.deb ...
Unpacking node-qs (2.2.4-1) ...
Selecting previously unselected package node-request.
Preparing to unpack .../node-request_2.26.1-1_all.deb ...
Unpacking node-request (2.26.1-1) ...
Selecting previously unselected package node-semver.
Preparing to unpack .../node-semver_2.1.0-2_all.deb ...
Unpacking node-semver (2.1.0-2) ...
Selecting previously unselected package node-tar.
Preparing to unpack .../node-tar_1.0.3-2_all.deb ...
Unpacking node-tar (1.0.3-2) ...
Selecting previously unselected package node-which.
Preparing to unpack .../node-which_1.0.5-2_all.deb ...
Unpacking node-which (1.0.5-2) ...
Selecting previously unselected package node-gyp.
Preparing to unpack .../node-gyp_3.0.3-2ubuntu1_all.deb ...
Unpacking node-gyp (3.0.3-2ubuntu1) ...
Selecting previously unselected package node-ini.
Preparing to unpack .../node-ini_1.1.0-1_all.deb ...
Unpacking node-ini (1.1.0-1) ...
Selecting previously unselected package node-lockfile.
Preparing to unpack .../node-lockfile_0.4.1-1_all.deb ...
Unpacking node-lockfile (0.4.1-1) ...
Selecting previously unselected package node-mute-stream.
Preparing to unpack .../node-mute-stream_0.0.4-1_all.deb ...
Unpacking node-mute-stream (0.0.4-1) ...
Selecting previously unselected package node-normalize-package-data.
Preparing to unpack .../node-normalize-package-data_0.2.2-1_all.deb ...
Unpacking node-normalize-package-data (0.2.2-1) ...
Selecting previously unselected package node-read.
Preparing to unpack .../node-read_1.0.5-1_all.deb ...
Unpacking node-read (1.0.5-1) ...
Selecting previously unselected package node-read-package-json.
Preparing to unpack .../node-read-package-json_1.2.4-1_all.deb ...
Unpacking node-read-package-json (1.2.4-1) ...
Selecting previously unselected package node-retry.
Preparing to unpack .../node-retry_0.6.0-1_all.deb ...
Unpacking node-retry (0.6.0-1) ...
Selecting previously unselected package node-sha.
Preparing to unpack .../node-sha_1.2.3-1_all.deb ...
Unpacking node-sha (1.2.3-1) ...
Selecting previously unselected package node-slide.
Preparing to unpack .../node-slide_1.1.4-1_all.deb ...
Unpacking node-slide (1.1.4-1) ...
Selecting previously unselected package npm.
Preparing to unpack .../npm_3.5.2-0ubuntu4_all.deb ...
Unpacking npm (3.5.2-0ubuntu4) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for systemd (229-4ubuntu21.1) ...
Setting up cron (3.0pl1-128ubuntu2) ...
Adding group `crontab' (GID 106) ...
Done.
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
update-rc.d: warning: stop runlevel arguments (1) do not match cron Default-Stop values (none)
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
Setting up libatm1:amd64 (1:2.5.1-1.5) ...
Setting up libmnl0:amd64 (1.0.3-5) ...
Setting up libpopt0:amd64 (1.16-10) ...
Setting up mime-support (3.59ubuntu1) ...
Setting up libmpdec2:amd64 (2.4.2-1) ...
Setting up libsqlite3-0:amd64 (3.11.0-1ubuntu1) ...
Setting up libpython3.5-stdlib:amd64 (3.5.2-2ubuntu0~16.04.4) ...
Setting up python3.5 (3.5.2-2ubuntu0~16.04.4) ...
Setting up libpython3-stdlib:amd64 (3.5.1-3) ...
Setting up libgdbm3:amd64 (1.8.3-13.1) ...
Setting up libxau6:amd64 (1:1.0.8-1) ...
Setting up libxdmcp6:amd64 (1:1.1.2-1.1) ...
Setting up libxcb1:amd64 (1.11.1-1ubuntu1) ...
Setting up libx11-data (2:1.6.3-1ubuntu2) ...
Setting up libx11-6:amd64 (2:1.6.3-1ubuntu2) ...
Setting up libxext6:amd64 (2:1.3.3-1) ...
Setting up sgml-base (1.26+nmu4ubuntu1) ...
Setting up perl-modules-5.22 (5.22.1-9ubuntu0.2) ...
Setting up libperl5.22:amd64 (5.22.1-9ubuntu0.2) ...
Setting up perl (5.22.1-9ubuntu0.2) ...
update-alternatives: using /usr/bin/prename to provide /usr/bin/rename (rename) in auto mode
Setting up libffi6:amd64 (3.2.1-4) ...
Setting up libpython2.7-stdlib:amd64 (2.7.12-1ubuntu0~16.04.3) ...
Setting up python2.7 (2.7.12-1ubuntu0~16.04.3) ...
Setting up libpython-stdlib:amd64 (2.7.12-1~16.04) ...
Setting up python (2.7.12-1~16.04) ...
Setting up libgmp10:amd64 (2:6.1.0+dfsg-2) ...
Setting up libmpfr4:amd64 (3.1.4-1) ...
Setting up libmpc3:amd64 (1.0.3-1) ...
Setting up tzdata (2017c-0ubuntu0.16.04) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline

Current default time zone: 'Etc/UTC'
Local time is now:      Mon Apr  2 23:47:55 UTC 2018.
Universal Time is now:  Mon Apr  2 23:47:55 UTC 2018.
Run 'dpkg-reconfigure tzdata' if you wish to change it.

Setting up bzip2 (1.0.6-8) ...
Setting up distro-info-data (0.28ubuntu0.7) ...
Setting up libmagic1:amd64 (1:5.25-2ubuntu1) ...
Setting up file (1:5.25-2ubuntu1) ...
Setting up iproute2 (4.3.0-1ubuntu3.16.04.3) ...
Setting up ifupdown (0.8.10ubuntu1.2) ...
Creating /etc/network/interfaces.
Setting up libisc-export160 (1:9.10.3.dfsg.P4-8ubuntu1.10) ...
Setting up libdns-export162 (1:9.10.3.dfsg.P4-8ubuntu1.10) ...
Setting up isc-dhcp-client (4.3.3-5ubuntu12.10) ...
Setting up isc-dhcp-common (4.3.3-5ubuntu12.10) ...
Setting up less (481-2.1ubuntu0.2) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Setting up libbsd0:amd64 (0.8.2-1) ...
Setting up libnettle6:amd64 (3.2-1ubuntu0.16.04.1) ...
Setting up libhogweed4:amd64 (3.2-1ubuntu0.16.04.1) ...
Setting up libidn11:amd64 (1.32-3ubuntu1.2) ...
Setting up libp11-kit0:amd64 (0.23.2-5~ubuntu16.04.1) ...
Setting up libtasn1-6:amd64 (4.7-3ubuntu0.16.04.3) ...
Setting up libgnutls30:amd64 (3.4.10-4ubuntu1.4) ...
Setting up libxtables11:amd64 (1.6.0-2ubuntu3) ...
Setting up locales (2.23-0ubuntu10) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Generating locales (this might take a while)...
Generation complete.
Setting up logrotate (3.8.7-2ubuntu2.16.04.2) ...
Setting up netbase (5.3) ...
Setting up sudo (1.8.16-0ubuntu1.5) ...
Setting up ucf (3.0036) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Setting up openssl (1.0.2g-1ubuntu4.11) ...
Setting up ca-certificates (20170717~16.04.1) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Setting up krb5-locales (1.13.2+dfsg-5ubuntu2) ...
Setting up libroken18-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libasn1-8-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libkrb5support0:amd64 (1.13.2+dfsg-5ubuntu2) ...
Setting up libk5crypto3:amd64 (1.13.2+dfsg-5ubuntu2) ...
Setting up libkeyutils1:amd64 (1.5.9-8ubuntu1) ...
Setting up libkrb5-3:amd64 (1.13.2+dfsg-5ubuntu2) ...
Setting up libgssapi-krb5-2:amd64 (1.13.2+dfsg-5ubuntu2) ...
Setting up libhcrypto4-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libheimbase1-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libwind0-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libhx509-5-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libkrb5-26-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libheimntlm0-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libgssapi3-heimdal:amd64 (1.7~git20150920+dfsg-4ubuntu1.16.04.1) ...
Setting up libsasl2-modules-db:amd64 (2.1.26.dfsg1-14build1) ...
Setting up libsasl2-2:amd64 (2.1.26.dfsg1-14build1) ...
Setting up libldap-2.4-2:amd64 (2.4.42+dfsg-2ubuntu3.2) ...
Setting up librtmp1:amd64 (2.4+20151223.gitfa8646d-1ubuntu0.1) ...
Setting up libcurl3-gnutls:amd64 (7.47.0-1ubuntu2.7) ...
Setting up libedit2:amd64 (3.1-20150325-1ubuntu2) ...
Setting up libicu55:amd64 (55.1-7ubuntu0.4) ...
Setting up libsasl2-modules:amd64 (2.1.26.dfsg1-14build1) ...
Setting up libxml2:amd64 (2.9.3+dfsg1-1ubuntu0.5) ...
Setting up libxmuu1:amd64 (2:1.1.2-2) ...
Setting up manpages (4.04-2) ...
Setting up openssh-client (1:7.2p2-4ubuntu2.4) ...
Setting up rsync (3.1.1-3ubuntu1.2) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of restart.
Setting up xauth (1:1.0.9-1ubuntu2) ...
Setting up xml-core (0.13+nmu2) ...
Setting up binutils (2.26.1-1ubuntu1~16.04.6) ...
Setting up libc-dev-bin (2.23-0ubuntu10) ...
Setting up linux-libc-dev:amd64 (4.4.0-116.140) ...
Setting up libc6-dev:amd64 (2.23-0ubuntu10) ...
Setting up libisl15:amd64 (0.16.1-1) ...
Setting up cpp-5 (5.4.0-6ubuntu1~16.04.9) ...
Setting up cpp (4:5.3.1-1ubuntu1) ...
Setting up libcc1-0:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Setting up libgomp1:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Setting up libitm1:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Setting up libatomic1:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Setting up libasan2:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Setting up liblsan0:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Setting up libtsan0:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Setting up libubsan0:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Setting up libcilkrts5:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Setting up libmpx0:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Setting up libquadmath0:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Setting up libgcc-5-dev:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Setting up gcc-5 (5.4.0-6ubuntu1~16.04.9) ...
Setting up gcc (4:5.3.1-1ubuntu1) ...
Setting up libstdc++-5-dev:amd64 (5.4.0-6ubuntu1~16.04.9) ...
Setting up g++-5 (5.4.0-6ubuntu1~16.04.9) ...
Setting up g++ (4:5.3.1-1ubuntu1) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
Setting up make (4.1-6) ...
Setting up libdpkg-perl (1.18.4ubuntu1.4) ...
Setting up xz-utils (5.1.1alpha+20120614-2ubuntu2) ...
update-alternatives: using /usr/bin/xz to provide /usr/bin/lzma (lzma) in auto mode
Setting up patch (2.7.5-1) ...
Setting up dpkg-dev (1.18.4ubuntu1.4) ...
Setting up build-essential (12.1ubuntu2) ...
Setting up curl (7.47.0-1ubuntu2.7) ...
Setting up libfakeroot:amd64 (1.20.2-1ubuntu1) ...
Setting up fakeroot (1.20.2-1ubuntu1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode
Setting up liberror-perl (0.17-1.2) ...
Setting up git-man (1:2.7.4-0ubuntu1.3) ...
Setting up git (1:2.7.4-0ubuntu1.3) ...
Setting up python-pkg-resources (20.7.0-1) ...
Setting up gyp (0.1+20150913git1f374df9-1ubuntu1) ...
Setting up javascript-common (11) ...
Setting up libgssrpc4:amd64 (1.13.2+dfsg-5ubuntu2) ...
Setting up libkdb5-8:amd64 (1.13.2+dfsg-5ubuntu2) ...
Setting up libkadm5srv-mit9:amd64 (1.13.2+dfsg-5ubuntu2) ...
Setting up libkadm5clnt-mit9:amd64 (1.13.2+dfsg-5ubuntu2) ...
Setting up comerr-dev (2.1-1.42.13-1ubuntu1) ...
Setting up krb5-multidev (1.13.2+dfsg-5ubuntu2) ...
Setting up libalgorithm-diff-perl (1.19.03-1) ...
Setting up libalgorithm-diff-xs-perl (0.04-4build1) ...
Setting up libalgorithm-merge-perl (0.08-3) ...
Setting up libexpat1-dev:amd64 (2.1.0-7ubuntu0.16.04.3) ...
Setting up libfile-fcntllock-perl (0.22-3) ...
Setting up libjs-jquery (1.11.3+dfsg-4) ...
Setting up libjs-node-uuid (1.4.0-1) ...
Setting up libjs-underscore (1.7.0~dfsg-1ubuntu1) ...
Setting up libpq5:amd64 (9.5.12-0ubuntu0.16.04) ...
Setting up zlib1g-dev:amd64 (1:1.2.8.dfsg-2ubuntu4.1) ...
Setting up libssl-dev:amd64 (1.0.2g-1ubuntu4.11) ...
Setting up libpq-dev (9.5.12-0ubuntu0.16.04) ...
Setting up libpython3.5:amd64 (3.5.2-2ubuntu0~16.04.4) ...
Setting up libpython3.5-dev:amd64 (3.5.2-2ubuntu0~16.04.4) ...
Setting up libpython3-dev:amd64 (3.5.1-3) ...
Setting up libsasl2-dev (2.1.26.dfsg1-14build1) ...
Setting up libsensors4:amd64 (1:3.4.0-2) ...
Setting up libssl-doc (1.0.2g-1ubuntu4.11) ...
Setting up libuv1:amd64 (1.8.0-1) ...
Setting up libuv1-dev:amd64 (1.8.0-1) ...
Setting up libxslt1.1:amd64 (1.1.28-2.1ubuntu0.1) ...
Setting up manpages-dev (4.04-2) ...
Setting up nodejs (4.2.6~dfsg-1ubuntu4.1) ...
update-alternatives: using /usr/bin/nodejs to provide /usr/bin/js (js) in auto mode
Setting up node-async (0.8.0-1) ...
Setting up node-node-uuid (1.4.0-1) ...
Setting up node-underscore (1.7.0~dfsg-1ubuntu1) ...
Setting up postgresql-client-common (173ubuntu0.1) ...
Setting up postgresql-client-9.5 (9.5.12-0ubuntu0.16.04) ...
update-alternatives: using /usr/share/postgresql/9.5/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode
Setting up ssl-cert (1.0.37) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Setting up postgresql-common (173ubuntu0.1) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Adding user postgres to group ssl-cert

Creating config file /etc/postgresql-common/createcluster.conf with new version

Creating config file /etc/logrotate.d/postgresql-common with new version
Building PostgreSQL dictionaries from installed myspell/hunspell packages...
Removing obsolete dictionary files:
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
Setting up postgresql-9.5 (9.5.12-0ubuntu0.16.04) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(?<!\\)\${ <-- HERE ([^}]+)}/ at /usr/sbin/pam_getenv line 78.
Creating new cluster 9.5/main ...
  config /etc/postgresql/9.5/main
  data   /var/lib/postgresql/9.5/main
  locale C
  socket /var/run/postgresql
  port   5432
update-alternatives: using /usr/share/postgresql/9.5/man/man1/postmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
Setting up postgresql (9.5+173ubuntu0.1) ...
Setting up postgresql-contrib-9.5 (9.5.12-0ubuntu0.16.04) ...
Setting up postgresql-contrib (9.5+173ubuntu0.1) ...
Setting up python-pip-whl (8.1.1-2ubuntu0.4) ...
Setting up python3.5-dev (3.5.2-2ubuntu0~16.04.4) ...
Setting up rename (0.20-4) ...
update-alternatives: using /usr/bin/file-rename to provide /usr/bin/rename (rename) in auto mode
Setting up sysstat (11.2.0-1ubuntu0.2) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline

Creating config file /etc/default/sysstat with new version
update-alternatives: using /usr/bin/sar.sysstat to provide /usr/bin/sar (sar) in auto mode
Setting up libffi-dev:amd64 (3.2.1-4) ...
Setting up libjs-inherits (2.0.1-3) ...
Setting up libldap2-dev:amd64 (2.4.42+dfsg-2ubuntu3.2) ...
Setting up node-abbrev (1.0.5-2) ...
Setting up node-ansi (0.3.0-2) ...
Setting up node-ansi-color-table (1.0.0-1) ...
Setting up node-archy (0.0.2-1) ...
Setting up node-inherits (2.0.1-3) ...
Setting up node-block-stream (0.0.7-1) ...
Setting up node-delayed-stream (0.0.5-1) ...
Setting up node-combined-stream (0.0.5-1) ...
Setting up node-cookie-jar (0.3.1-1) ...
Setting up node-forever-agent (0.5.1-1) ...
Setting up node-mime (1.3.4-1) ...
Setting up node-form-data (0.1.0-1) ...
Setting up node-rimraf (2.2.8-1) ...
Setting up node-mkdirp (0.5.0-1) ...
Setting up node-graceful-fs (3.0.2-1) ...
Setting up node-fstream (0.1.24-1) ...
Setting up node-lru-cache (2.3.1-1) ...
Setting up node-sigmund (1.0.0-1) ...
Setting up node-minimatch (1.0.0-1) ...
Setting up node-fstream-ignore (0.0.6-2) ...
Setting up node-github-url-from-git (1.1.1-1) ...
Setting up node-once (1.1.1-1) ...
Setting up node-glob (4.0.5-1) ...
Setting up nodejs-dev (4.2.6~dfsg-1ubuntu4.1) ...
Setting up node-nopt (3.0.1-1) ...
Setting up node-npmlog (0.0.4-1) ...
Setting up node-osenv (0.1.0-1) ...
Setting up node-tunnel-agent (0.3.1-1) ...
Setting up node-json-stringify-safe (5.0.0-1) ...
Setting up node-qs (2.2.4-1) ...
Setting up node-request (2.26.1-1) ...
Setting up node-semver (2.1.0-2) ...
Setting up node-tar (1.0.3-2) ...
Setting up node-which (1.0.5-2) ...
Setting up node-gyp (3.0.3-2ubuntu1) ...
Setting up node-ini (1.1.0-1) ...
Setting up node-lockfile (0.4.1-1) ...
Setting up node-mute-stream (0.0.4-1) ...
Setting up node-normalize-package-data (0.2.2-1) ...
Setting up node-read (1.0.5-1) ...
Setting up node-read-package-json (1.2.4-1) ...
Setting up node-retry (0.6.0-1) ...
Setting up node-sha (1.2.3-1) ...
Setting up node-slide (1.1.4-1) ...
Setting up npm (3.5.2-0ubuntu4) ...
Setting up python3 (3.5.1-3) ...
running python rtupdate hooks for python3.5...
running python post-rtupdate hooks for python3.5...
Setting up lsb-release (9.20160110ubuntu0.2) ...
Setting up python3-dev (3.5.1-3) ...
Setting up python3-pip (8.1.1-2ubuntu0.4) ...
Setting up python3-pkg-resources (20.7.0-1) ...
Setting up python3-setuptools (20.7.0-1) ...
Setting up python3-wheel (0.29.0-1) ...
Setting up dh-python (2.20151103ubuntu1.1) ...
Processing triggers for systemd (229-4ubuntu21.1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for ca-certificates (20170717~16.04.1) ...
Updating certificates in /etc/ssl/certs...
148 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Processing triggers for sgml-base (1.26+nmu4ubuntu1) ...
update-alternatives: using /usr/bin/python3 to provide /usr/bin/python (python) in auto mode
update-alternatives: using /usr/bin/pip3 to provide /usr/bin/pip (pip) in auto mode
update-alternatives: using /usr/bin/nodejs to provide /usr/bin/node (node) in auto mode
 ---> a12820d005b1
Removing intermediate container 3a27e8dedc27
Step 4/13 : RUN locale-gen en_US.UTF-8
 ---> Running in 8b4cf58aae4f
Generating locales (this might take a while)...
  en_US.UTF-8... done
Generation complete.
 ---> 0962b674f12e
Removing intermediate container 8b4cf58aae4f
Step 5/13 : ENV LC_ALL en_US.UTF-8
 ---> Running in d4ba3237a4b3
 ---> 36d0fedf4194
Removing intermediate container d4ba3237a4b3
Step 6/13 : ENV LEMUR_VERSION master LEMUR_TARGET develop
 ---> Running in 6faac6922e8c
 ---> 4a86aad72a68
Removing intermediate container 6faac6922e8c
Step 7/13 : RUN git config --global url."https://".insteadOf git:// &&  cd /usr/local/src &&  git clone https://github.com/netflix/lemur.git &&  cd lemur &&  git checkout ${LEMUR_VERSION} &&  pip install --upgrade virtualenv &&  virtualenv venv &&  export PATH=/usr/local/src/lemur/venv/bin:${PATH} &&  pip install --upgrade pip virtualenv &&  make ${LEMUR_TARGET}
 ---> Running in 4249c0116ce4
Cloning into 'lemur'...
Already on 'master'
Your branch is up-to-date with 'origin/master'.
Collecting virtualenv
  Downloading virtualenv-15.2.0-py2.py3-none-any.whl (2.6MB)
Installing collected packages: virtualenv
Successfully installed virtualenv-15.2.0
You are using pip version 8.1.1, however version 9.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Using base prefix '/usr'
New python executable in /usr/local/src/lemur/venv/bin/python3
Also creating executable in /usr/local/src/lemur/venv/bin/python
Installing setuptools, pip, wheel...done.
Requirement already up-to-date: pip in ./venv/lib/python3.5/site-packages
Collecting virtualenv
  Using cached virtualenv-15.2.0-py2.py3-none-any.whl
Installing collected packages: virtualenv
Successfully installed virtualenv-15.2.0
Makefile:109: *** Please activate virtualenv first.  Stop.
ERROR: Service 'lemur-web' failed to build: The command '/bin/sh -c git config --global url."https://".insteadOf git:// &&  cd /usr/local/src &&  git clone https://github.com/netflix/lemur.git &&  cd lemur &&  git checkout ${LEMUR_VERSION} &&  pip install --upgrade virtualenv &&  virtualenv venv &&  export PATH=/usr/local/src/lemur/venv/bin:${PATH} &&  pip install --upgrade pip virtualenv &&  make ${LEMUR_TARGET}' returned a non-zero code: 2

When downloading certs, got error "ERROR in schema: initializer for ctype 'char[]' must be a str or list or tuple, not unicode"

Looks like it is related to PyOpenSSL issue: pyca/pyopenssl#15

The following is the traceback -

Downloading certs
[2017-02-24 23:39:05,752] ERROR in schema: initializer for ctype 'char[]' must be a str or list or tuple, not unicode
Traceback (most recent call last):
File "/www/lemur/lemur/common/schema.py", line 158, in decorated_function
resp = f(*args, **kwargs)
File "/www/lemur/lemur/certificates/views.py", line 272, in post
return service.create(**data)
File "/www/lemur/lemur/certificates/service.py", line 244, in create
cert = Certificate(**kwargs)
File "", line 4, in init
File "/www/lemur/local/lib/python2.7/site-packages/sqlalchemy/orm/state.py", line 414, in _initialize_instance
manager.dispatch.init_failure(self, args, kwargs)
File "/www/lemur/local/lib/python2.7/site-packages/sqlalchemy/util/langhelpers.py", line 60, in exit
compat.reraise(exc_type, exc_value, exc_tb)
File "/www/lemur/local/lib/python2.7/site-packages/sqlalchemy/orm/state.py", line 411, in _initialize_instance
return manager.original_init(*mixed[1:], **kwargs)
File "/www/lemur/lemur/certificates/models.py", line 123, in init
cert = lemur.common.utils.parse_certificate(kwargs['body'])
File "/www/lemur/lemur/common/utils.py", line 50, in parse_certificate
return x509.load_pem_x509_certificate(body, default_backend())
File "/www/lemur/local/lib/python2.7/site-packages/cryptography/x509/base.py", line 43, in load_pem_x509_certificate
return backend.load_pem_x509_certificate(data)
File "/www/lemur/local/lib/python2.7/site-packages/cryptography/hazmat/backends/multibackend.py", line 341, in load_pem_x509_certificate
return b.load_pem_x509_certificate(data)
File "/www/lemur/local/lib/python2.7/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 1169, in load_pem_x509_certificate
mem_bio = self._bytes_to_bio(data)
File "/www/lemur/local/lib/python2.7/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 490, in _bytes_to_bio
data_char_p = self._ffi.new("char[]", data)
TypeError: initializer for ctype 'char[]' must be a str or list or tuple, not unicode
initializer for ctype 'char[]' must be a str or list or tuple, not unicode
Traceback (most recent call last):
File "/www/lemur/lemur/common/schema.py", line 158, in decorated_function
resp = f(*args, **kwargs)
File "/www/lemur/lemur/certificates/views.py", line 272, in post
return service.create(**data)
File "/www/lemur/lemur/certificates/service.py", line 244, in create
cert = Certificate(**kwargs)
File "", line 4, in init
File "/www/lemur/local/lib/python2.7/site-packages/sqlalchemy/orm/state.py", line 414, in _initialize_instance
manager.dispatch.init_failure(self, args, kwargs)
File "/www/lemur/local/lib/python2.7/site-packages/sqlalchemy/util/langhelpers.py", line 60, in exit
compat.reraise(exc_type, exc_value, exc_tb)
File "/www/lemur/local/lib/python2.7/site-packages/sqlalchemy/orm/state.py", line 411, in _initialize_instance
return manager.original_init(*mixed[1:], **kwargs)
File "/www/lemur/lemur/certificates/models.py", line 123, in init
cert = lemur.common.utils.parse_certificate(kwargs['body'])
File "/www/lemur/lemur/common/utils.py", line 50, in parse_certificate
return x509.load_pem_x509_certificate(body, default_backend())
File "/www/lemur/local/lib/python2.7/site-packages/cryptography/x509/base.py", line 43, in load_pem_x509_certificate
return backend.load_pem_x509_certificate(data)
File "/www/lemur/local/lib/python2.7/site-packages/cryptography/hazmat/backends/multibackend.py", line 341, in load_pem_x509_certificate
return b.load_pem_x509_certificate(data)
File "/www/lemur/local/lib/python2.7/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 1169, in load_pem_x509_certificate
mem_bio = self._bytes_to_bio(data)
File "/www/lemur/local/lib/python2.7/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 490, in _bytes_to_bio
data_char_p = self._ffi.new("char[]", data)
TypeError: initializer for ctype 'char[]' must be a str or list or tuple, not unicode

npm not found

Looks like npm isn't in the ubuntu docker image.

I'm testing the fix and will report back shortly.

--> Installing git hooks
git config branch.autosetuprebase always
cd .git/hooks && ln -sf ../../hooks/* ./

--> Installing dependencies
WARNING: It looks like you are installing Lemur as root. This is not generally advised.
npm install --unsafe-perm
make: npm: Command not found
make: *** [develop] Error 127
ERROR: Service 'lemur-web' failed to build: The command '/bin/sh -c git config --global url."https://".insteadOf git:// &&  cd /usr/local/src &&  git clone https://github.com/netflix/lemur.git &&  cd lemur &&  git fetch &&  pip install --upgrade virtualenv &&  virtualenv venv &&  export PATH=/usr/local/src/lemur/venv/bin:${PATH} &&  pip install --upgrade pip virtualenv &&  git checkout 0.5.0 &&  make develop' returned a non-zero code: 2

Ability to log to standard out as JSON.

Since we are running Lemur inside docker on CoreOS, we'd like to be able to log in JSON format to stdout. That way our Docker logger driver can login into journalctl which delivers the logs into our cloud solution. As far as we can tell there is no way to configure this via the config file currently.

lemur_web-1 docker keeps restarting with database "errors"

Hello,

Cloned a fresh copy of the repository, ran docker-compose up and the webinterface came up clean but I wasn't able to perform any actions.

The logs spits out:
lemur-nginx_1 | 2018/04/03 19:37:42 [error] 7#7: *8 connect() failed (113: No route to host) while connecting to upstream, client: 172.17.0.1, server: lemur.io, request: "GET /api/1/auth/providers HTTP/1.1", upstream: "http://172.17.0.3:8000/api/1/auth/providers", host: "localhost"

And every minute or so docker-compuse keeps spitting this out:

lemur-web_1    | Attempt to connect to db.. try #1
lemur-web_1    | psql: could not connect to server: Connection refused
lemur-web_1    | 	Is the server running on host "postgres" (172.17.0.2) and accepting
lemur-web_1    | 	TCP/IP connections on port 5432?
lemur-web_1    | Attempt to connect to db.. try #2
lemur-web_1    | psql: could not connect to server: Connection refused
lemur-web_1    | 	Is the server running on host "postgres" (172.17.0.2) and accepting
lemur-web_1    | 	TCP/IP connections on port 5432?
lemur-web_1    | Attempt to connect to db.. try #3
lemur-web_1    |  ?column? 
lemur-web_1    | ----------
lemur-web_1    |         1
lemur-web_1    | (1 row)
lemur-web_1    | 
lemur-web_1    | db ready!
lemur-web_1    | 
lemur-web_1    | Creating lemurdb...
lemur-web_1    | CREATE DATABASE
lemur-web_1    | Creating the lemur user...
lemur-web_1    | CREATE ROLE
lemur-web_1    | Changing postgres password...
lemur-web_1    | GRANT
lemur-web_1    | Done changing postgres password...
lemur-web_1    | DONE CREATING lemurdb...
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Waiting for db to become available
lemur-web_1    | Attempt to connect to db.. try #1
lemur-web_1    |  ?column? 
lemur-web_1    | ----------
lemur-web_1    |         1
lemur-web_1    | (1 row)
lemur-web_1    | 
lemur-web_1    | db ready!
lemur-web_1    | 
lemur-web_1    | Creating lemurdb...
lemur-web_1    | ERROR:  database "lemur" already exists
lemur-web_1    | Creating the lemur user...
lemur-web_1    | ERROR:  role "lemur" already exists
lemur-web_1    | Changing postgres password...
lemur-web_1    | GRANT
lemur-web_1    | Done changing postgres password...
lemur-web_1    | DONE CREATING lemurdb...
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Waiting for db to become available
lemur-web_1    | Attempt to connect to db.. try #1
lemur-web_1    |  ?column? 
lemur-web_1    | ----------
lemur-web_1    |         1
lemur-web_1    | (1 row)
lemur-web_1    | 
lemur-web_1    | db ready!
lemur-web_1    | 
lemur-web_1    | Creating lemurdb...
lemur-web_1    | ERROR:  database "lemur" already exists
lemur-web_1    | Creating the lemur user...
lemur-web_1    | ERROR:  role "lemur" already exists
lemur-web_1    | Changing postgres password...
lemur-web_1    | GRANT
lemur-web_1    | Done changing postgres password...
lemur-web_1    | DONE CREATING lemurdb...
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Waiting for db to become available
lemur-web_1    | Attempt to connect to db.. try #1
lemur-web_1    |  ?column? 
lemur-web_1    | ----------
lemur-web_1    |         1
lemur-web_1    | (1 row)
lemur-web_1    | 
lemur-web_1    | db ready!
lemur-web_1    | 
lemur-web_1    | Creating lemurdb...
lemur-web_1    | ERROR:  database "lemur" already exists
lemur-web_1    | Creating the lemur user...
lemur-web_1    | ERROR:  role "lemur" already exists
lemur-web_1    | Changing postgres password...
lemur-web_1    | GRANT
lemur-web_1    | Done changing postgres password...
lemur-web_1    | DONE CREATING lemurdb...
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Waiting for db to become available
lemur-web_1    | Attempt to connect to db.. try #1
lemur-web_1    |  ?column? 
lemur-web_1    | ----------
lemur-web_1    |         1
lemur-web_1    | (1 row)
lemur-web_1    | 
lemur-web_1    | db ready!
lemur-web_1    | 
lemur-web_1    | Creating lemurdb...
lemur-web_1    | ERROR:  database "lemur" already exists
lemur-web_1    | Creating the lemur user...
lemur-web_1    | ERROR:  role "lemur" already exists
lemur-web_1    | Changing postgres password...
lemur-web_1    | GRANT
lemur-web_1    | Done changing postgres password...
lemur-web_1    | DONE CREATING lemurdb...
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Waiting for db to become available
lemur-web_1    | Attempt to connect to db.. try #1
lemur-web_1    |  ?column? 
lemur-web_1    | ----------
lemur-web_1    |         1
lemur-web_1    | (1 row)
lemur-web_1    | 
lemur-web_1    | db ready!
lemur-web_1    | 
lemur-web_1    | Creating lemurdb...
lemur-web_1    | ERROR:  database "lemur" already exists
lemur-web_1    | Creating the lemur user...
lemur-web_1    | ERROR:  role "lemur" already exists
lemur-web_1    | Changing postgres password...
lemur-web_1    | GRANT
lemur-web_1    | Done changing postgres password...
lemur-web_1    | DONE CREATING lemurdb...
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Waiting for db to become available
lemur-web_1    | Attempt to connect to db.. try #1
lemur-web_1    |  ?column? 
lemur-web_1    | ----------
lemur-web_1    |         1
lemur-web_1    | (1 row)
lemur-web_1    | 
lemur-web_1    | db ready!
lemur-web_1    | 
lemur-web_1    | Creating lemurdb...
lemur-web_1    | ERROR:  database "lemur" already exists
lemur-web_1    | Creating the lemur user...
lemur-web_1    | ERROR:  role "lemur" already exists
lemur-web_1    | Changing postgres password...
lemur-web_1    | GRANT
lemur-web_1    | Done changing postgres password...
lemur-web_1    | DONE CREATING lemurdb...
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Waiting for db to become available
lemur-web_1    | Attempt to connect to db.. try #1
lemur-web_1    |  ?column? 
lemur-web_1    | ----------
lemur-web_1    |         1
lemur-web_1    | (1 row)
lemur-web_1    | 
lemur-web_1    | db ready!
lemur-web_1    | 
lemur-web_1    | Creating lemurdb...
lemur-web_1    | ERROR:  database "lemur" already exists
lemur-web_1    | Creating the lemur user...
lemur-web_1    | ERROR:  role "lemur" already exists
lemur-web_1    | Changing postgres password...
lemur-web_1    | GRANT
lemur-web_1    | Done changing postgres password...
lemur-web_1    | DONE CREATING lemurdb...
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Waiting for db to become available
lemur-web_1    | Attempt to connect to db.. try #1
lemur-web_1    |  ?column? 
lemur-web_1    | ----------
lemur-web_1    |         1
lemur-web_1    | (1 row)
lemur-web_1    | 
lemur-web_1    | db ready!
lemur-web_1    | 
lemur-web_1    | Creating lemurdb...
lemur-web_1    | ERROR:  database "lemur" already exists
lemur-web_1    | Creating the lemur user...
lemur-web_1    | ERROR:  role "lemur" already exists
lemur-web_1    | Changing postgres password...
lemur-web_1    | GRANT
lemur-web_1    | Done changing postgres password...
lemur-web_1    | DONE CREATING lemurdb...
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Waiting for db to become available
lemur-web_1    | Attempt to connect to db.. try #1
lemur-web_1    |  ?column? 
lemur-web_1    | ----------
lemur-web_1    |         1
lemur-web_1    | (1 row)
lemur-web_1    | 
lemur-web_1    | db ready!
lemur-web_1    | 
lemur-web_1    | Creating lemurdb...
lemur-web_1    | ERROR:  database "lemur" already exists
lemur-web_1    | Creating the lemur user...
lemur-web_1    | ERROR:  role "lemur" already exists
lemur-web_1    | Changing postgres password...
lemur-web_1    | GRANT
lemur-web_1    | Done changing postgres password...
lemur-web_1    | DONE CREATING lemurdb...
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Waiting for db to become available
lemur-web_1    | Attempt to connect to db.. try #1
lemur-web_1    |  ?column? 
lemur-web_1    | ----------
lemur-web_1    |         1
lemur-web_1    | (1 row)
lemur-web_1    | 
lemur-web_1    | db ready!
lemur-web_1    | 
lemur-web_1    | Creating lemurdb...
lemur-web_1    | ERROR:  database "lemur" already exists
lemur-web_1    | Creating the lemur user...
lemur-web_1    | ERROR:  role "lemur" already exists
lemur-web_1    | Changing postgres password...
lemur-web_1    | GRANT
lemur-web_1    | Done changing postgres password...
lemur-web_1    | DONE CREATING lemurdb...
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Waiting for db to become available
lemur-web_1    | Attempt to connect to db.. try #1
lemur-web_1    |  ?column? 
lemur-web_1    | ----------
lemur-web_1    |         1
lemur-web_1    | (1 row)
lemur-web_1    | 
lemur-web_1    | db ready!
lemur-web_1    | 
lemur-web_1    | Creating lemurdb...
lemur-web_1    | ERROR:  database "lemur" already exists
lemur-web_1    | Creating the lemur user...
lemur-web_1    | ERROR:  role "lemur" already exists
lemur-web_1    | Changing postgres password...
lemur-web_1    | GRANT
lemur-web_1    | Done changing postgres password...
lemur-web_1    | DONE CREATING lemurdb...
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Waiting for db to become available
lemur-web_1    | Attempt to connect to db.. try #1
lemur-web_1    |  ?column? 
lemur-web_1    | ----------
lemur-web_1    |         1
lemur-web_1    | (1 row)
lemur-web_1    | 
lemur-web_1    | db ready!
lemur-web_1    | 
lemur-web_1    | Creating lemurdb...
lemur-web_1    | ERROR:  database "lemur" already exists
lemur-web_1    | Creating the lemur user...
lemur-web_1    | ERROR:  role "lemur" already exists
lemur-web_1    | Changing postgres password...
lemur-web_1    | GRANT
lemur-web_1    | Done changing postgres password...
lemur-web_1    | DONE CREATING lemurdb...
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Waiting for db to become available
lemur-web_1    | Attempt to connect to db.. try #1
lemur-web_1    |  ?column? 
lemur-web_1    | ----------
lemur-web_1    |         1
lemur-web_1    | (1 row)
lemur-web_1    | 
lemur-web_1    | db ready!
lemur-web_1    | 
lemur-web_1    | Creating lemurdb...
lemur-web_1    | ERROR:  database "lemur" already exists
lemur-web_1    | Creating the lemur user...
lemur-web_1    | ERROR:  role "lemur" already exists
lemur-web_1    | Changing postgres password...
lemur-web_1    | GRANT
lemur-web_1    | Done changing postgres password...
lemur-web_1    | DONE CREATING lemurdb...
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Waiting for db to become available
lemur-web_1    | Attempt to connect to db.. try #1
lemur-web_1    |  ?column? 
lemur-web_1    | ----------
lemur-web_1    |         1
lemur-web_1    | (1 row)
lemur-web_1    | 
lemur-web_1    | db ready!
lemur-web_1    | 
lemur-web_1    | Creating lemurdb...
lemur-web_1    | ERROR:  database "lemur" already exists
lemur-web_1    | Creating the lemur user...
lemur-web_1    | ERROR:  role "lemur" already exists
lemur-web_1    | Changing postgres password...
lemur-web_1    | GRANT
lemur-web_1    | Done changing postgres password...
lemur-web_1    | DONE CREATING lemurdb...
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Waiting for db to become available
lemur-web_1    | Attempt to connect to db.. try #1
lemur-web_1    |  ?column? 
lemur-web_1    | ----------
lemur-web_1    |         1
lemur-web_1    | (1 row)
lemur-web_1    | 
lemur-web_1    | db ready!
lemur-web_1    | 
lemur-web_1    | Creating lemurdb...
lemur-web_1    | ERROR:  database "lemur" already exists
lemur-web_1    | Creating the lemur user...
lemur-web_1    | ERROR:  role "lemur" already exists
lemur-web_1    | Changing postgres password...
lemur-web_1    | GRANT
lemur-web_1    | Done changing postgres password...
lemur-web_1    | DONE CREATING lemurdb...
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Waiting for db to become available
lemur-web_1    | Attempt to connect to db.. try #1
lemur-web_1    |  ?column? 
lemur-web_1    | ----------
lemur-web_1    |         1
lemur-web_1    | (1 row)
lemur-web_1    | 
lemur-web_1    | db ready!
lemur-web_1    | 
lemur-web_1    | Creating lemurdb...
lemur-web_1    | ERROR:  database "lemur" already exists
lemur-web_1    | Creating the lemur user...
lemur-web_1    | ERROR:  role "lemur" already exists
lemur-web_1    | Changing postgres password...
lemur-web_1    | GRANT
lemur-web_1    | Done changing postgres password...
lemur-web_1    | DONE CREATING lemurdb...
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Waiting for db to become available
lemur-web_1    | Attempt to connect to db.. try #1
lemur-web_1    |  ?column? 
lemur-web_1    | ----------
lemur-web_1    |         1
lemur-web_1    | (1 row)
lemur-web_1    | 
lemur-web_1    | db ready!
lemur-web_1    | 
lemur-web_1    | Creating lemurdb...
lemur-web_1    | ERROR:  database "lemur" already exists
lemur-web_1    | Creating the lemur user...
lemur-web_1    | ERROR:  role "lemur" already exists
lemur-web_1    | Changing postgres password...
lemur-web_1    | GRANT
lemur-web_1    | Done changing postgres password...
lemur-web_1    | DONE CREATING lemurdb...
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Waiting for db to become available
lemur-web_1    | Attempt to connect to db.. try #1
lemur-web_1    |  ?column? 
lemur-web_1    | ----------
lemur-web_1    |         1
lemur-web_1    | (1 row)
lemur-web_1    | 
lemur-web_1    | db ready!
lemur-web_1    | 
lemur-web_1    | Creating lemurdb...
lemur-web_1    | ERROR:  database "lemur" already exists
lemur-web_1    | Creating the lemur user...
lemur-web_1    | ERROR:  role "lemur" already exists
lemur-web_1    | Changing postgres password...
lemur-web_1    | GRANT
lemur-web_1    | Done changing postgres password...
lemur-web_1    | DONE CREATING lemurdb...
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Waiting for db to become available
lemur-web_1    | Attempt to connect to db.. try #1
lemur-web_1    |  ?column? 
lemur-web_1    | ----------
lemur-web_1    |         1
lemur-web_1    | (1 row)
lemur-web_1    | 
lemur-web_1    | db ready!
lemur-web_1    | 
lemur-web_1    | Creating lemurdb...
lemur-web_1    | ERROR:  database "lemur" already exists
lemur-web_1    | Creating the lemur user...
lemur-web_1    | ERROR:  role "lemur" already exists
lemur-web_1    | Changing postgres password...
lemur-web_1    | GRANT
lemur-web_1    | Done changing postgres password...
lemur-web_1    | DONE CREATING lemurdb...
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Waiting for db to become available
lemur-web_1    | Attempt to connect to db.. try #1
lemur-web_1    |  ?column? 
lemur-web_1    | ----------
lemur-web_1    |         1
lemur-web_1    | (1 row)
lemur-web_1    | 
lemur-web_1    | db ready!
lemur-web_1    | 
lemur-web_1    | Creating lemurdb...
lemur-web_1    | ERROR:  database "lemur" already exists
lemur-web_1    | Creating the lemur user...
lemur-web_1    | ERROR:  role "lemur" already exists
lemur-web_1    | Changing postgres password...
lemur-web_1    | GRANT
lemur-web_1    | Done changing postgres password...
lemur-web_1    | DONE CREATING lemurdb...
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Waiting for db to become available
lemur-web_1    | Attempt to connect to db.. try #1
lemur-web_1    |  ?column? 
lemur-web_1    | ----------
lemur-web_1    |         1
lemur-web_1    | (1 row)
lemur-web_1    | 
lemur-web_1    | db ready!
lemur-web_1    | 
lemur-web_1    | Creating lemurdb...
lemur-web_1    | ERROR:  database "lemur" already exists
lemur-web_1    | Creating the lemur user...
lemur-web_1    | ERROR:  role "lemur" already exists
lemur-web_1    | Changing postgres password...
lemur-web_1    | GRANT
lemur-web_1    | Done changing postgres password...
lemur-web_1    | DONE CREATING lemurdb...
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Waiting for db to become available
lemur-web_1    | Attempt to connect to db.. try #1
lemur-web_1    |  ?column? 
lemur-web_1    | ----------
lemur-web_1    |         1
lemur-web_1    | (1 row)
lemur-web_1    | 
lemur-web_1    | db ready!
lemur-web_1    | 
lemur-web_1    | Creating lemurdb...
lemur-web_1    | ERROR:  database "lemur" already exists
lemur-web_1    | Creating the lemur user...
lemur-web_1    | ERROR:  role "lemur" already exists
lemur-web_1    | Changing postgres password...
lemur-web_1    | GRANT
lemur-web_1    | Done changing postgres password...
lemur-web_1    | DONE CREATING lemurdb...
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Waiting for db to become available
lemur-web_1    | Attempt to connect to db.. try #1
lemur-web_1    |  ?column? 
lemur-web_1    | ----------
lemur-web_1    |         1
lemur-web_1    | (1 row)
lemur-web_1    | 
lemur-web_1    | db ready!
lemur-web_1    | 
lemur-web_1    | Creating lemurdb...
lemur-web_1    | ERROR:  database "lemur" already exists
lemur-web_1    | Creating the lemur user...
lemur-web_1    | ERROR:  role "lemur" already exists
lemur-web_1    | Changing postgres password...
lemur-web_1    | GRANT
lemur-web_1    | Done changing postgres password...
lemur-web_1    | DONE CREATING lemurdb...
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Waiting for db to become available
lemur-web_1    | Attempt to connect to db.. try #1
lemur-web_1    |  ?column? 
lemur-web_1    | ----------
lemur-web_1    |         1
lemur-web_1    | (1 row)
lemur-web_1    | 
lemur-web_1    | db ready!
lemur-web_1    | 
lemur-web_1    | Creating lemurdb...
lemur-web_1    | ERROR:  database "lemur" already exists
lemur-web_1    | Creating the lemur user...
lemur-web_1    | ERROR:  role "lemur" already exists
lemur-web_1    | Changing postgres password...
lemur-web_1    | GRANT
lemur-web_1    | Done changing postgres password...
lemur-web_1    | DONE CREATING lemurdb...
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Waiting for db to become available
lemur-web_1    | Attempt to connect to db.. try #1
lemur-web_1    |  ?column? 
lemur-web_1    | ----------
lemur-web_1    |         1
lemur-web_1    | (1 row)
lemur-web_1    | 
lemur-web_1    | db ready!
lemur-web_1    | 
lemur-web_1    | Creating lemurdb...
postgres_1     | 2018-04-03 19:31:36.678 UTC [83] ERROR:  database "lemur" already exists
postgres_1     | 2018-04-03 19:31:36.678 UTC [83] STATEMENT:  CREATE DATABASE lemur;
lemur-web_1    | ERROR:  database "lemur" already exists
lemur-web_1    | Creating the lemur user...
postgres_1     | 2018-04-03 19:31:36.764 UTC [84] ERROR:  role "lemur" already exists
postgres_1     | 2018-04-03 19:31:36.764 UTC [84] STATEMENT:  CREATE USER lemur WITH PASSWORD 'lemur';
lemur-web_1    | ERROR:  role "lemur" already exists
lemur-web_1    | Changing postgres password...
lemur-web_1    | GRANT
lemur-web_1    | Done changing postgres password...
lemur-web_1    | DONE CREATING lemurdb...
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 6, in <module>
lemur-web_1    |     import requests
lemur-web_1    | ImportError: No module named 'requests'
postgres_1     | 2018-04-03 19:32:37.661 UTC [88] ERROR:  database "lemur" already exists
postgres_1     | 2018-04-03 19:32:37.661 UTC [88] STATEMENT:  CREATE DATABASE lemur;
postgres_1     | 2018-04-03 19:32:37.722 UTC [89] ERROR:  role "lemur" already exists
postgres_1     | 2018-04-03 19:32:37.722 UTC [89] STATEMENT:  CREATE USER lemur WITH PASSWORD 'lemur';
lemurdocker_lemur-web_1 exited with code 1

I've removed all the images, volumes and containers multiple times but this keeps happening. As this was my first test on using Lemur I'm not able to debug yet (no knowledge of how it works yet).

Am I missing something?

  • Daan

Database error - Doesn't create user table

Hi there,

I attempted to try out LEMUR using docker but couldn't login, looking at the logs I get a stream of database errors (see below). Any pointers?

lemur-web_1    | Attempt to connect to db.. try #2
lemur-web_1    |  ?column? 
lemur-web_1    | ----------
lemur-web_1    |         1
lemur-web_1    | (1 row)
lemur-web_1    | 
lemur-web_1    | db ready!
lemur-web_1    | 
lemur-web_1    | Creating lemurdb...
lemur-web_1    | CREATE DATABASE
lemur-web_1    | Creating the lemur user...
lemur-web_1    | CREATE ROLE
lemur-web_1    | Changing postgres password...
lemur-web_1    | GRANT
lemur-web_1    | Done changing postgres password...
lemur-web_1    | DONE CREATING lemurdb...
lemur-web_1    | /usr/local/src/lemur/venv/lib/python3.5/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
lemur-web_1    |   """)
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1244, in _execute_context
lemur-web_1    |     cursor, statement, parameters, context
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/engine/default.py", line 552, in do_execute
lemur-web_1    |     cursor.execute(statement, parameters)
lemur-web_1    | psycopg2.ProgrammingError: operator class "gin_trgm_ops" does not exist for access method "gin"
lemur-web_1    | 
lemur-web_1    | 
lemur-web_1    | The above exception was the direct cause of the following exception:
lemur-web_1    | 
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "manage.py", line 551, in <module>
lemur-web_1    |     main()
lemur-web_1    |   File "manage.py", line 547, in main
lemur-web_1    |     manager.run()
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/flask_script/__init__.py", line 417, in run
lemur-web_1    |     result = self.handle(argv[0], argv[1:])
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/flask_script/__init__.py", line 386, in handle
lemur-web_1    |     res = handle(*args, **config)
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/flask_script/commands.py", line 216, in __call__
lemur-web_1    |     return self.run(*args, **kwargs)
lemur-web_1    |   File "manage.py", line 195, in run
lemur-web_1    |     create()
lemur-web_1    |   File "manage.py", line 145, in create
lemur-web_1    |     database.db.create_all()
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/flask_sqlalchemy/__init__.py", line 963, in create_all
lemur-web_1    |     self._execute_for_all_tables(app, bind, 'create_all')
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/flask_sqlalchemy/__init__.py", line 955, in _execute_for_all_tables
lemur-web_1    |     op(bind=self.get_engine(app, bind), **extra)
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/sql/schema.py", line 4287, in create_all
lemur-web_1    |     ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 2033, in _run_visitor
lemur-web_1    |     conn._run_visitor(visitorcallable, element, **kwargs)
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1607, in _run_visitor
lemur-web_1    |     visitorcallable(self.dialect, self, **kwargs).traverse_single(element)
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/sql/visitors.py", line 131, in traverse_single
lemur-web_1    |     return meth(obj, **kw)
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/sql/ddl.py", line 781, in visit_metadata
lemur-web_1    |     _is_metadata_operation=True,
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/sql/visitors.py", line 131, in traverse_single
lemur-web_1    |     return meth(obj, **kw)
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/sql/ddl.py", line 833, in visit_table
lemur-web_1    |     self.traverse_single(index)
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/sql/visitors.py", line 131, in traverse_single
lemur-web_1    |     return meth(obj, **kw)
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/sql/ddl.py", line 862, in visit_index
lemur-web_1    |     self.connection.execute(CreateIndex(index))
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 988, in execute
lemur-web_1    |     return meth(self, multiparams, params)
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection
lemur-web_1    |     return connection._execute_ddl(self, multiparams, params)
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1050, in _execute_ddl
lemur-web_1    |     compiled,
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1248, in _execute_context
lemur-web_1    |     e, statement, parameters, cursor, context
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1466, in _handle_dbapi_exception
lemur-web_1    |     util.raise_from_cause(sqlalchemy_exception, exc_info)
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/util/compat.py", line 383, in raise_from_cause
lemur-web_1    |     reraise(type(exception), exception, tb=exc_tb, cause=cause)
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/util/compat.py", line 128, in reraise
lemur-web_1    |     raise value.with_traceback(tb)
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1244, in _execute_context
lemur-web_1    |     cursor, statement, parameters, context
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/engine/default.py", line 552, in do_execute
lemur-web_1    |     cursor.execute(statement, parameters)
lemur-web_1    | sqlalchemy.exc.ProgrammingError: (psycopg2.ProgrammingError) operator class "gin_trgm_ops" does not exist for access method "gin"
lemur-web_1    | 
lemur-web_1    | [SQL: CREATE INDEX ix_domains_name_gin ON domains USING gin (name gin_trgm_ops)]
lemur-web_1    | (Background on this error at: http://sqlalche.me/e/f405)
lemur-web_1    | /usr/local/src/lemur/venv/lib/python3.5/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
lemur-web_1    |   """)
lemur-web_1    | [2019-04-03 10:57:40 +0000] [63] [INFO] Starting gunicorn 19.9.0
lemur-web_1    | [2019-04-03 10:57:40 +0000] [63] [INFO] Listening at: http://0.0.0.0:8000 (63)
lemur-web_1    | [2019-04-03 10:57:40 +0000] [63] [INFO] Using worker: sync
lemur-web_1    | [2019-04-03 10:57:40 +0000] [68] [INFO] Booting worker with pid: 68
lemur-web_1    | [2019-04-03 10:57:40 +0000] [69] [INFO] Booting worker with pid: 69
lemur-web_1    | [2019-04-03 10:57:40 +0000] [70] [INFO] Booting worker with pid: 70
lemur-web_1    | [2019-04-03 10:57:40 +0000] [71] [INFO] Booting worker with pid: 71
lemur-web_1    | [2019-04-03 10:57:40 +0000] [72] [INFO] Booting worker with pid: 72
lemur-web_1    | [2019-04-03 10:57:40 +0000] [73] [INFO] Booting worker with pid: 73
lemur-web_1    | [2019-04-03 10:58:38,499] ERROR in app: Exception on /api/1/auth/login [POST]
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1244, in _execute_context
lemur-web_1    |     cursor, statement, parameters, context
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/engine/default.py", line 552, in do_execute
lemur-web_1    |     cursor.execute(statement, parameters)
lemur-web_1    | psycopg2.ProgrammingError: relation "users" does not exist
lemur-web_1    | LINE 2: FROM users 
lemur-web_1    |              ^
lemur-web_1    | 
lemur-web_1    | 
lemur-web_1    | The above exception was the direct cause of the following exception:
lemur-web_1    | 
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/flask/app.py", line 1813, in full_dispatch_request
lemur-web_1    |     rv = self.dispatch_request()
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/flask/app.py", line 1799, in dispatch_request
lemur-web_1    |     return self.view_functions[rule.endpoint](**req.view_args)
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/flask_restful/__init__.py", line 458, in wrapper
lemur-web_1    |     resp = resource(*args, **kwargs)
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/flask/views.py", line 88, in view
lemur-web_1    |     return self.dispatch_request(*args, **kwargs)
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/flask_restful/__init__.py", line 573, in dispatch_request
lemur-web_1    |     resp = meth(*args, **kwargs)
lemur-web_1    |   File "/usr/local/src/lemur/lemur/auth/views.py", line 262, in post
lemur-web_1    |     user = user_service.get_by_username(args['username'])
lemur-web_1    |   File "/usr/local/src/lemur/lemur/users/service.py", line 109, in get_by_username
lemur-web_1    |     return database.get(User, username, field='username')
lemur-web_1    |   File "/usr/local/src/lemur/lemur/database.py", line 137, in get
lemur-web_1    |     return query.filter(get_model_column(model, field) == value).scalar()
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/orm/query.py", line 3305, in scalar
lemur-web_1    |     ret = self.one()
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/orm/query.py", line 3275, in one
lemur-web_1    |     ret = self.one_or_none()
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/orm/query.py", line 3244, in one_or_none
lemur-web_1    |     ret = list(self)
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/orm/query.py", line 3317, in __iter__
lemur-web_1    |     return self._execute_and_instances(context)
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/orm/query.py", line 3342, in _execute_and_instances
lemur-web_1    |     result = conn.execute(querycontext.statement, self._params)
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 988, in execute
lemur-web_1    |     return meth(self, multiparams, params)
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/sql/elements.py", line 287, in _execute_on_connection
lemur-web_1    |     return connection._execute_clauseelement(self, multiparams, params)
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1107, in _execute_clauseelement
lemur-web_1    |     distilled_params,
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1248, in _execute_context
lemur-web_1    |     e, statement, parameters, cursor, context
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1466, in _handle_dbapi_exception
lemur-web_1    |     util.raise_from_cause(sqlalchemy_exception, exc_info)
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/util/compat.py", line 383, in raise_from_cause
lemur-web_1    |     reraise(type(exception), exception, tb=exc_tb, cause=cause)
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/util/compat.py", line 128, in reraise
lemur-web_1    |     raise value.with_traceback(tb)
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1244, in _execute_context
lemur-web_1    |     cursor, statement, parameters, context
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/engine/default.py", line 552, in do_execute
lemur-web_1    |     cursor.execute(statement, parameters)
lemur-web_1    | sqlalchemy.exc.ProgrammingError: (psycopg2.ProgrammingError) relation "users" does not exist
lemur-web_1    | LINE 2: FROM users 
lemur-web_1    |              ^
lemur-web_1    | 
lemur-web_1    | [SQL: SELECT users.id AS users_id, users.password AS users_password, users.active AS users_active, users.confirmed_at AS users_confirmed_at, users.username AS users_username, users.email AS users_email, users.profile_picture AS users_profile_picture 
lemur-web_1    | FROM users 
lemur-web_1    | WHERE users.username = %(username_1)s]
lemur-web_1    | [parameters: {'username_1': 'lemur'}]
lemur-web_1    | (Background on this error at: http://sqlalche.me/e/f405)
lemur-web_1    | Exception on /api/1/auth/login [POST]
lemur-web_1    | Traceback (most recent call last):
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1244, in _execute_context
lemur-web_1    |     cursor, statement, parameters, context
lemur-web_1    |   File "/usr/local/src/lemur/venv/lib/python3.5/site-packages/sqlalchemy/engine/default.py", line 552, in do_execute
lemur-web_1    |     cursor.execute(statement, parameters)
lemur-web_1    | psycopg2.ProgrammingError: relation "users" does not exist
lemur-web_1    | LINE 2: FROM users 
lemur-web_1    | 

Build process is failing

When getting to the make build_containers part of the build, I get the following errors:

Generating locales (this might take a while)...
  en_US.UTF-8... done
Generation complete.
npm ERR! code EINTEGRITY
npm ERR! sha512-rPiiYY4t8pqK1rCDQy1bE6HRR63B2RwfYsIVc1/BNkeIilvqZMwGeTksSBK8WTozBz8c/tMd7jk0c4Q4f/F+UA== integrity checksum failed when using sha512: wanted sha512-rPiiYY4t8pqK1rCDQy1bE6HRR63B2RwfYsIVc1/BNkeIilvqZMwGeTksSBK8WTozBz8c/tMd7jk0c4Q4f/F+UA== but got sha512-z4PhNX7vuL3xVChQ1m2AB9Yg5AULVxXcg/SpIdNs6c5H0NE8XYXysP+DGNKHfuwvY7kxvUdBeoGlODJ6+SfaPg==. (0 bytes)                                                           
/usr/local/bin/npx -> /usr/local/lib/node_modules/npm/bin/npx-cli.js
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]                                                                       

+ [email protected]
added 220 packages from 96 contributors in 4.319s
npm ERR! Callback called more than once.

npm ERR! A complete log of this run can be found in:                                                                                          
npm ERR!     /root/.npm/_logs/2021-10-20T01_47_32_744Z-debug.log                                                                              
The command '/bin/sh -c apt-get update &&     apt-get -y --no-install-recommends upgrade &&     apt-get install -y --no-install-recommends libpq-dev curl build-essential locales libffi-dev libsasl2-dev libldap2-dev         dh-autoreconf git python3-dev python3-pip python3-venv python3-wheel nodejs npm &&     locale-gen en_US.UTF-8 && export LC_ALL=en_US.UTF-8 &&     npm config set registry http://registry.npmjs.org/ &&     npm install npm -g &&     echo "NPM INSTALL NPM DONE" &&     echo "Running with nodejs:" && node -v &&     python3 -m venv /opt/venv &&     echo "Running with python:" && /opt/venv/bin/python3 -c 'import platform; print(platform.python_version())' &&     /opt/venv/bin/python3 -m pip install --no-cache-dir --upgrade pip setuptools wheel &&     /opt/venv/bin/python3 -m pip install --no-cache-dir -e . &&     npm install --unsafe-perm &&     node_modules/.bin/gulp --cwd /opt/lemur build &&     node_modules/.bin/gulp --cwd /opt/lemur package &&     npm cache clean --force &&     rm -rf node_modules &&     python3 -c 'print(" \033[32m BUILDER DONE \033[0m ")'' returned a non-zero code: 1
ERROR: Service 'lemur' failed to build : Build failed

The contents of that log file will be something like:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install', 'npm@latest', '-g' ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session 5541963c05347323
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 http fetch GET 200 https://registry.npmjs.org/npm 2489ms
8 verbose stack Error: sha512-rPiiYY4t8pqK1rCDQy1bE6HRR63B2RwfYsIVc1/BNkeIilvqZMwGeTksSBK8WTozBz8c/tMd7jk0c4Q4f/F+UA== integrity checksum failed when using sha512: wanted sha512-rPiiYY4t8pqK1rCDQy1bE6HRR63B2RwfYsIVc1/BNkeIilvqZMwGeTksSBK8WTozBz8c/tMd7jk0c4Q4f/F+UA== but got sha512-z4PhNX7vuL3xVChQ1m2AB9Yg5AULVxXcg/SpIdNs6c5H0NE8XYXysP+DGNKHfuwvY7kxvUdBeoGlODJ6+SfaPg==. (0 bytes)
8 verbose stack     at IntegrityStream.[_onEnd] (/usr/share/nodejs/ssri/index.js:86:19)
8 verbose stack     at IntegrityStream.emit (/usr/share/nodejs/ssri/index.js:59:35)
8 verbose stack     at IntegrityStream.[maybeEmitEnd] (/usr/share/nodejs/ssri/node_modules/minipass/index.js:350:12)
8 verbose stack     at IntegrityStream.end (/usr/share/nodejs/ssri/node_modules/minipass/index.js:230:27)
8 verbose stack     at PassThrough.onend (_stream_readable.js:672:10)
8 verbose stack     at Object.onceWrapper (events.js:286:20)
8 verbose stack     at PassThrough.emit (events.js:198:13)
8 verbose stack     at endReadableNT (_stream_readable.js:1145:12)
8 verbose stack     at process._tickCallback (internal/process/next_tick.js:63:19)
9 verbose cwd /opt/lemur
10 verbose Linux 5.14.0-11.1-liquorix-amd64
11 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "npm@latest" "-g"
12 verbose node v10.19.0
13 verbose npm  v6.14.4
14 error code EINTEGRITY
15 error sha512-rPiiYY4t8pqK1rCDQy1bE6HRR63B2RwfYsIVc1/BNkeIilvqZMwGeTksSBK8WTozBz8c/tMd7jk0c4Q4f/F+UA== integrity checksum failed when using sha512: wanted sha512-rPiiYY4t8pqK1rCDQy1bE6HRR63B2RwfYsIVc1/BNkeIilvqZMwGeTksSBK8WTozBz8c/tMd7jk0c4Q4f/F+UA== but got sha512-z4PhNX7vuL3xVChQ1m2AB9Yg5AULVxXcg/SpIdNs6c5H0NE8XYXysP+DGNKHfuwvY7kxvUdBeoGlODJ6+SfaPg==. (0 bytes)
16 verbose exit [ 1, true ]

I eventually found the following error through some manual tinkering:

69 silly audit error Beginning October 4, 2021, all connections to npm websites and the npm registry - including for package installation - must use HTTPS and TLS 1.2 or higher.

I was able to get it to build by modifying the Dockerfile and instructing it to use the https variation of the registry.npmjs.org URL: npm config set registry https://registry.npmjs.org/

I'll make a PR for that in a few.

netlix-lemur:latest (unhealthy)

Issue:

Lemur-docker container state unhealthy.
The website at https://localhost:447 is not reachable.

Reproduce:

Cloning the repo:

git clone [email protected]:Netflix/lemur-docker.git

entering the repo:

cd lemur-docker

and run make.

Details

The docker-compose up command triggered by the make file finishes with:
image

Running a docker ps right afterwards:
image

Giving the container two more minutes:
image

unable to locate credentials

Plan is to create LE certificate with route 53
I tried setting
~/.aws/credentials as below
[default]
aws_access_key_id=xxxx
aws_secret_access_key=xxxxxxxxxxxxxxxxxxxx
and environment variables as well.
But no luck.
::
::
lemur-web_1 | Connecting with directory at https://acme-v01.api.letsencrypt.org/directory
lemur-web_1 | Connected: https://acme-v01.api.letsencrypt.org/acme/reg/3557XXX
lemur-web_1 | Fetching domains
lemur-web_1 | Got these domains: ['test.domain.com']
lemur-web_1 | Starting DNS challenge for test.domain.com
lemur-web_1 | [2018-05-26 00:06:25,973] ERROR in schema: Unable to locate credentials
lemur-web_1 | Traceback (most recent call last):
lemur-web_1 | File "/usr/local/src/lemur/lemur/common/schema.py", line 160, in decorated_function
lemur-web_1 | resp = f(*args, **kwargs)
lemur-web_1 | File "/usr/local/src/lemur/lemur/certificates/views.py", line 270, in post
lemur-web_1 | cert = service.create(**data)
::
::
lemur-web_1 | botocore.exceptions.NoCredentialsError: Unable to locate credentials
Can you point out where can I set credentials details for AWS?

Thanks in advance.

docker-compose up fails

I've attached full error log with the issue.

Environment:-

➤ docker-compose --version
docker-compose version 1.23.2, build 1110ad01
➤ docker --version
Docker version 18.09.2, build 6247962
➤ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.14.5
BuildVersion:   18F203

Error:

Collecting black==19.3b0 (from lemur[tests])
  ERROR: Could not find a version that satisfies the requirement black==19.3b0 (from lemur[tests]) (from versions: none)
ERROR: No matching distribution found for black==19.3b0 (from lemur[tests])
Makefile:7: recipe for target 'develop' failed
make: *** [develop] Error 1
ERROR: Service 'lemur-web' failed to build: The command '/bin/sh -c git config --global url."https://".insteadOf git:// &&  cd /usr/local/src &&  git clone https://github.com/netflix/lemur.git &&  cd lemur &&  git checkout ${LEMUR_VERSION} &&  pip install --upgrade pip virtualenv &&  export PATH=/usr/local/src/lemur/venv/bin:${PATH} &&  virtualenv -p python3 venv &&  . venv/bin/activate &&  make ${LEMUR_TARGET}' returned a non-zero code: 2

Full error log: error.log

Certificates not shown in UI after reboot

Hi, when I instantiate the Lemur compose everything works well with CFSSL. But when I reboot the containers (ie due to a host restart) certificates are not shown anymore in the Lemur WEB UI.

I'm using Lemur Docker in this project: https://github.com/Steccas/stecCA

More digging had me assume it is a PostgreSQL problem, here's the relevant log:

FROM certificates 
WHERE certificates.not_after > %(not_after_1)s
2021-06-21 18:58:04,779 INFO sqlalchemy.engine.base.Engine {'not_after_1': datetime.datetime(2021, 5, 21, 0, 0)}
2021-06-21 18:58:04,783 INFO sqlalchemy.engine.base.Engine SELECT certificates.id AS certificates_id, certificates.external_id AS certificates_external_id, certificates.owner AS certificates_owner, certificates.name AS certificates_name, certificates.description AS certificates_description, certificates.notify AS certificates_notify, certificates.body AS certificates_body, certificates.chain AS certificates_chain, certificates.csr AS certificates_csr, certificates.private_key AS certificates_private_key, certificates.issuer AS certificates_issuer, certificates.serial AS certificates_serial, certificates.cn AS certificates_cn, certificates.deleted AS certificates_deleted, certificates.dns_provider_id AS certificates_dns_provider_id, certificates.not_before AS certificates_not_before, certificates.not_after AS certificates_not_after, certificates.date_created AS certificates_date_created, certificates.signing_algorithm AS certificates_signing_algorithm, certificates.status AS certificates_status, certificates.bits AS certificates_bits, certificates.san AS certificates_san, certificates.rotation AS certificates_rotation, certificates.user_id AS certificates_user_id, certificates.authority_id AS certificates_authority_id, certificates.root_authority_id AS certificates_root_authority_id, certificates.rotation_policy_id AS certificates_rotation_policy_id, certificates.key_type AS certificates_key_type 
FROM certificates 
WHERE certificates.not_after > %(not_after_1)s ORDER BY certificates.id DESC 
 LIMIT %(param_1)s OFFSET %(param_2)s
2021-06-21 18:58:04,783 INFO sqlalchemy.engine.base.Engine {'not_after_1': datetime.datetime(2021, 5, 21, 0, 0), 'param_1': 10, 'param_2': 0}
[2021-06-21 18:58:04,786] ERROR in schema: 
Traceback (most recent call last):
  File "/opt/lemur/lemur/common/schema.py", line 158, in decorated_function
    resp = f(*args, **kwargs)
  File "/opt/lemur/lemur/certificates/views.py", line 364, in get
    return service.render(args)
  File "/opt/lemur/lemur/certificates/service.py", line 594, in render
    result = database.sort_and_page(query, Certificate, args)
  File "/opt/lemur/lemur/database.py", line 343, in sort_and_page
    items = query.offset(count * page).limit(count).all()
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 3373, in all
    return list(self)
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 100, in instances
    cursor.close()
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/util/langhelpers.py", line 68, in __exit__
    compat.raise_(
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/util/compat.py", line 182, in raise_
    raise exception
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 80, in instances
    rows = [proc(row) for row in fetch]
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 80, in <listcomp>
    rows = [proc(row) for row in fetch]
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 579, in _instance
    _populate_full(
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 725, in _populate_full
    dict_[key] = getter(row)
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/sql/type_api.py", line 1278, in process
    return process_value(impl_processor(value), dialect)
  File "/opt/lemur/lemur/utils.py", line 122, in process_result_value
    return MultiFernet(self.keys).decrypt(value).decode("utf8")
  File "/opt/venv/lib/python3.8/site-packages/cryptography/fernet.py", line 194, in decrypt
    raise InvalidToken
cryptography.fernet.InvalidToken

Traceback (most recent call last):
  File "/opt/lemur/lemur/common/schema.py", line 158, in decorated_function
    resp = f(*args, **kwargs)
  File "/opt/lemur/lemur/certificates/views.py", line 364, in get
    return service.render(args)
  File "/opt/lemur/lemur/certificates/service.py", line 594, in render
    result = database.sort_and_page(query, Certificate, args)
  File "/opt/lemur/lemur/database.py", line 343, in sort_and_page
    items = query.offset(count * page).limit(count).all()
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 3373, in all
    return list(self)
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 100, in instances
    cursor.close()
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/util/langhelpers.py", line 68, in __exit__
    compat.raise_(
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/util/compat.py", line 182, in raise_
    raise exception
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 80, in instances
    rows = [proc(row) for row in fetch]
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 80, in <listcomp>
    rows = [proc(row) for row in fetch]
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 579, in _instance
    _populate_full(
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 725, in _populate_full
    dict_[key] = getter(row)
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/sql/type_api.py", line 1278, in process
    return process_value(impl_processor(value), dialect)
  File "/opt/lemur/lemur/utils.py", line 122, in process_result_value
    return MultiFernet(self.keys).decrypt(value).decode("utf8")
  File "/opt/venv/lib/python3.8/site-packages/cryptography/fernet.py", line 194, in decrypt
    raise InvalidToken
cryptography.fernet.InvalidToken

Traceback (most recent call last):
  File "/opt/lemur/lemur/common/schema.py", line 158, in decorated_function
    resp = f(*args, **kwargs)
  File "/opt/lemur/lemur/certificates/views.py", line 364, in get
    return service.render(args)
  File "/opt/lemur/lemur/certificates/service.py", line 594, in render
    result = database.sort_and_page(query, Certificate, args)
  File "/opt/lemur/lemur/database.py", line 343, in sort_and_page
    items = query.offset(count * page).limit(count).all()
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 3373, in all
    return list(self)
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 100, in instances
    cursor.close()
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/util/langhelpers.py", line 68, in __exit__
    compat.raise_(
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/util/compat.py", line 182, in raise_
    raise exception
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 80, in instances
    rows = [proc(row) for row in fetch]
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 80, in <listcomp>
    rows = [proc(row) for row in fetch]
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 579, in _instance
    _populate_full(
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 725, in _populate_full
    dict_[key] = getter(row)
  File "/opt/venv/lib/python3.8/site-packages/sqlalchemy/sql/type_api.py", line 1278, in process
    return process_value(impl_processor(value), dialect)
  File "/opt/lemur/lemur/utils.py", line 122, in process_result_value
    return MultiFernet(self.keys).decrypt(value).decode("utf8")
  File "/opt/venv/lib/python3.8/site-packages/cryptography/fernet.py", line 194, in decrypt
    raise InvalidToken
cryptography.fernet.InvalidToken
2021-06-21 18:58:04,789 INFO sqlalchemy.engine.base.Engine ROLLBACK

gulp build - SyntaxError

Morning,
I am trying to evaluate lemur to be incorporated into my company but I am having some installation issue/s.
(if this is not the forum to discuss this please let me know)
I downloaded the Docker ToolBox and followed the instructions but at the end I am getting a SysntaxError: Use of const in strict mode. referring to ../node_modules/is-number-like/lib/index.js line2.
const isNumber = require(lodash.isfinite)
Any help will be very appreciated!
Thanks!

bower ESOCKETTIMEDOUT during make or docker-compose

Hi, I'm seeing issues when trying to evaluate lemur for the first when following the projects README https://pastebin.com/9wBZv8Zp

os: CentOS 7.6.1810
docker-ce: 20.10.5
docker-compose: 1.29.0
command ran: make
result: During the make process bower is raising ESOCKETTIMEDOUT consistently so the containers are never created
expected: All containers required created and lemur hosted on localhost:87 and localhost:447

I noticed when running make that npm is expected but not listed as a requirement, my local npm installed is 3.10.10

I also noticed running docker-compose up as is, also fails if make isn't run first as the expected directory structure for lemur is off as per the README, I think it needs to be git clone --depth=1 [email protected]:Netflix/lemur.git lemur-build-docker/lemur instead however perhaps it makes sense to use https urls throughout instead to satisfy all users so git clone --depth=1 https://github.com/Netflix/lemur lemur-build-docker/lemur maybe?

Also the docker-compose version is set to 3.7 (currently) but for me I have to change this to 3.3 else:

ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.

I'm hoping this is all user error and I'm doing something wrong, but can't currently see why bower is failing to resolve what can be resolved on the host that runs docker.

In addition to the bower url failures (as per the pastebin URL) I see the following deprectaed warnings:

npm WARN deprecated [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated [email protected]: Either use gulp-tap or gulp-flatmap, depending on your needs
npm WARN deprecated [email protected]: Please use gulp-clean-css
npm WARN deprecated [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated [email protected]: Use uuid module instead
npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.

> [email protected] postinstall /opt/lemur/node_modules/gifsicle
> node lib/install.js

  ✔ gifsicle pre-build test passed successfully

I did notice that from inside the container during the build process if I try to curl a bower failed url I get a redirection, could this be the cause?:

root@8675b56a6734:/opt/lemur# curl https://github.com/jquery/jquery-dist/archive/2.2.4.tar.gz
<html><body>You are being <a href="https://codeload.github.com/jquery/jquery- 
dist/tar.gz/2.2.4">redirected</a>

One other item to note, failed builds don't clean up what look like ephemeral containers, it's no big deal but would be nice if those were removed if a make/docker-compose fails

Missing javascript files on initial docker-compose up with default configs

After following the setup instructions, the web interface is unresponsive. The following lines are from the docker-compose logs

lemur-nginx_1 | 172.17.0.1 - - [03/Apr/2017:22:05:05 +0000] "GET / HTTP/1.1" 200 4610 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.98 Safari/537.36" "-"
lemur-nginx_1 | 172.17.0.1 - - [03/Apr/2017:22:05:05 +0000] "GET /styles/main-4f53cdb7.css HTTP/1.1" 200 173513 "https://localhost/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.98 Safari/537.36" "-"
lemur-nginx_1 | 172.17.0.1 - - [03/Apr/2017:22:05:05 +0000] "GET /scripts/main-a689c6d0.js HTTP/1.1" 200 90886 "https://localhost/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.98 Safari/537.36" "-"
lemur-nginx_1 | 172.17.0.1 - - [03/Apr/2017:22:05:05 +0000] "GET /scripts/vendor-15a84225.js HTTP/1.1" 200 3661253 "https://localhost/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.98 Safari/537.36" "-"
lemur-nginx_1 | 2017/04/03 22:05:06 [error] 7#7: *2 open() "/usr/local/src/lemur/lemur/static/dist/scripts/ng-table.min.js.map" failed (2: No such file or directory), client: 172.17.0.1, server: lemur.io, request: "GET /scripts/ng-table.min.js.map HTTP/1.1", host: "localhost"
lemur-nginx_1 | 172.17.0.1 - - [03/Apr/2017:22:05:06 +0000] "GET /scripts/ng-table.min.js.map HTTP/1.1" 404 572 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.98 Safari/537.36" "-"
lemur-nginx_1 | 172.17.0.1 - - [03/Apr/2017:22:05:06 +0000] "GET /api/1/auth/providers HTTP/1.1" 200 2 "https://localhost/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.98 Safari/537.36" "-"

The errors look like a javascript file is not being found.

Am I missing a step to generate minified javascript files?

Default username/password not working?

Docker install went fine, and everything appears to be "working" but when logging with lemur/password I get a 401 error back.

screen shot 2015-10-28 at 3 56 15 pm

sorry for this being the first public issue :D

Package has no installation candidate

When I do a docker-compose up I am getting the following error message:

`sudo docker-compose up
Building test
Step 1/13 : FROM python:3.5
---> ffdaf2391778
Step 2/13 : RUN apt-get update
---> Using cache
---> aee39f496a69
Step 3/13 : RUN apt-get install -y make python-software-properties curl
---> Running in a4eff33f2f3f
Reading package lists...
Building dependency tree...
Reading state information...
Package python-software-properties is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
software-properties-common

E: Package 'python-software-properties' has no installation candidate
ERROR: Service 'test' failed to build: The command '/bin/sh -c apt-get install -y make python-software-properties curl' returned a non-zero code: 100`

Build fails on ReferenceError: TextDecoder is not defined

When i manually run the 'magic' make, i get this error as well.


#9 155.3 
#9 155.3 added 1454 packages from 1371 contributors and audited 1461 packages in 37.565s
#9 155.8 
#9 155.8 94 packages are looking for funding
#9 155.8   run `npm fund` for details
#9 155.8 
#9 155.8 found 36 vulnerabilities (2 low, 20 moderate, 10 high, 4 critical)
#9 155.8   run `npm audit fix` to fix them, or `npm audit` for details
#9 157.7 ReferenceError: TextDecoder is not defined
#9 157.7     at Object.<anonymous> (/opt/lemur/node_modules/engine.io/build/server.js:16:22)
#9 157.7     at Module._compile (internal/modules/cjs/loader.js:778:30)
#9 157.7     at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
#9 157.7     at Module.load (internal/modules/cjs/loader.js:653:32)
#9 157.7     at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
#9 157.7     at Function.Module._load (internal/modules/cjs/loader.js:585:3)
#9 157.7     at Module.require (internal/modules/cjs/loader.js:692:17)
#9 157.7     at require (internal/modules/cjs/helpers.js:25:18)
#9 157.7     at Object.<anonymous> (/opt/lemur/node_modules/engine.io/build/engine.io.js:5:18)
#9 157.7     at Module._compile (internal/modules/cjs/loader.js:778:30)
#9 157.7     at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
#9 157.7     at Module.load (internal/modules/cjs/loader.js:653:32)
#9 157.7     at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
#9 157.7     at Function.Module._load (internal/modules/cjs/loader.js:585:3)
#9 157.7     at Module.require (internal/modules/cjs/loader.js:692:17)

a complete build log:
https://github.com/solipsist01/dockerfiles/actions/runs/5363265155/jobs/9730709889

Change user password

I know there is a ResetPassword() function in lemur-build-docker/lemur/lemur/manage.py , and in the main Lemur repo there is a command to run a password reset. But when running Lemur using the Dockerized version with docker-compose up, how can I reset the password for a given user?

(i.e. when Lemur is ran WITHOUT Docker, using 'lemur start', I read that I can reset the password by running 'lemur reset_password -u username'. However when I run 'docker-compose up', I do not know how to execute the same command. Thanks in advance.

docker-compose up fails

Hi,

I get following error message with latest master:

The following packages have unmet dependencies:
 npm : Depends: node-gyp (>= 0.10.9) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
ERROR: Service 'lemur-web' failed to build: The command '/bin/sh -c apt-get update && apt-get install -y software-properties-common && add-apt-repository ppa:deadsnakes/ppa -y &&   apt-get update &&   apt-get install -y curl git build-essential sudo     python3.6 python3-pip python3.6-dev     nodejs npm     postgresql postgresql-contrib     libpq-dev libssl-dev libffi-dev libsasl2-dev libldap2-dev &&   ln -sf /usr/bin/python3.6 /usr/local/bin/python3 &&   update-alternatives --install /usr/bin/python python /usr/bin/python3 1 &&   update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1 &&   update-alternatives --install /usr/bin/node node /usr/bin/nodejs 1 &&   apt-get clean -y &&   rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*' returned a non-zero code: 100

Can you please assist me

Lemur ADCS plugin uses ADCS Web enrollment for performing certificate management (certsrv). And I learn that Microsoft ADCS web enrollment is outdated and probably deprecated. Can you please let me know if there is any alternate for ADCS Web enrollment that Lemur already/plans to provides.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.