# Pastebin 30IF1hbY ➜ bookbrainz-site git:(master) git pull upstream master From https://github.com/bookbrainz/bookbrainz-site * branch master -> FETCH_HEAD Already up to date. ➜ bookbrainz-site git:(master) ./scripts/database-init-docker.sh postgres uses an image, skipping elasticsearch uses an image, skipping redis uses an image, skipping startup uses an image, skipping Building bookbrainz-site Step 1/27 : FROM node:10 10: Pulling from library/node ab1fc7e4bf91: Pull complete 35fba333ff52: Pull complete f0cb1fa13079: Pull complete 3d1dd648b5ad: Pull complete 49f7a0920ce1: Pull complete 1d199f738c5f: Pull complete 2f3d6b50e579: Pull complete a9eb23183687: Pull complete Digest: sha256:94c90424c2a44ea72daaed746540fb39a44c56310d530b2760281a457b0e6846 Status: Downloaded newer image for node:10 ---> c481a0ff9f4f Step 2/27 : ARG BUILD_DEPS=" build-essential" ---> Running in 8253a1621ee4 Removing intermediate container 8253a1621ee4 ---> 8d8308c74bb2 Step 3/27 : ARG RUN_DEPS=" nodejs" ---> Running in ddca6af5f197 Removing intermediate container ddca6af5f197 ---> bf5150e5958b Step 4/27 : RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - && apt-get install --no-install-suggests --no-install-recommends -y $BUILD_DEPS $RUN_DEPS && rm -rf /var/lib/apt/lists/* ---> Running in d1078a50fc3b ## Installing the NodeSource Node.js 10.x repo... ## Populating apt-get cache... + apt-get update Get:1 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB] Ign:2 http://deb.debian.org/debian stretch InRelease Get:3 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [474 kB] Get:4 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB] Get:5 http://deb.debian.org/debian stretch Release [118 kB] Get:6 http://deb.debian.org/debian stretch-updates/main amd64 Packages [7748 B] Get:7 http://deb.debian.org/debian stretch Release.gpg [2434 B] Get:8 http://deb.debian.org/debian stretch/main amd64 Packages [7090 kB] Fetched 7877 kB in 4s (1660 kB/s) Reading package lists... ## Installing packages required for setup: apt-transport-https lsb-release... + apt-get install -y apt-transport-https lsb-release > /dev/null 2>&1 ## Confirming "stretch" is supported... + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_10.x/dists/stretch/Release' ## Adding the NodeSource signing key to your keyring... + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - Warning: apt-key output should not be parsed (stdout is not a terminal) OK ## Creating apt sources list file for the NodeSource Node.js 10.x repo... + echo 'deb https://deb.nodesource.com/node_10.x stretch main' > /etc/apt/sources.list.d/nodesource.list + echo 'deb-src https://deb.nodesource.com/node_10.x stretch main' >> /etc/apt/sources.list.d/nodesource.list ## Running `apt-get update` for you... + apt-get update Ign:1 http://deb.debian.org/debian stretch InRelease Get:2 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB] Get:3 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB] Get:4 http://deb.debian.org/debian stretch Release [118 kB] Get:5 https://deb.nodesource.com/node_10.x stretch InRelease [4585 B] Get:7 https://deb.nodesource.com/node_10.x stretch/main amd64 Packages [763 B] Fetched 309 kB in 0s (419 kB/s) Reading package lists... ## Run `sudo apt-get install -y nodejs` to install Node.js 10.x and npm ## You may also need development tools to build native addons: sudo apt-get install gcc g++ make ## To install the Yarn package manager, run: curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt-get update && sudo apt-get install yarn Reading package lists... Building dependency tree... Reading state information... The following NEW packages will be installed: build-essential nodejs 0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded. Need to get 15.1 MB of archives. After this operation, 71.9 MB of additional disk space will be used. Get:1 http://deb.debian.org/debian stretch/main amd64 build-essential amd64 12.3 [7346 B] Get:2 https://deb.nodesource.com/node_10.x stretch/main amd64 nodejs amd64 10.15.1-1nodesource1 [15.1 MB] debconf: delaying package configuration, since apt-utils is not installed Fetched 15.1 MB in 2s (5095 kB/s) Selecting previously unselected package build-essential. (Reading database ... 29985 files and directories currently installed.) Preparing to unpack .../build-essential_12.3_amd64.deb ... Unpacking build-essential (12.3) ... Selecting previously unselected package nodejs. Preparing to unpack .../nodejs_10.15.1-1nodesource1_amd64.deb ... Unpacking nodejs (10.15.1-1nodesource1) ... Setting up nodejs (10.15.1-1nodesource1) ... Setting up build-essential (12.3) ... Removing intermediate container d1078a50fc3b ---> 9a4c7eb289fb Step 5/27 : RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - ---> Running in c70650ef3033 Warning: apt-key output should not be parsed (stdout is not a terminal) key 7FCC7D46ACCC4CF8: 2 signatures not checked due to missing keys OK Removing intermediate container c70650ef3033 ---> 341701a58ce2 Step 6/27 : ENV PG_MAJOR 9.5 ---> Running in 10b7b74779f0 Removing intermediate container 10b7b74779f0 ---> ef1c2171bec7 Step 7/27 : RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ jessie-pgdg main' $PG_MAJOR > /etc/apt/sources.list.d/pgdg.list ---> Running in 3b7fd2c6fb1c Removing intermediate container 3b7fd2c6fb1c ---> 34f596285bee Step 8/27 : RUN apt-get update && apt-get install -y --no-install-recommends postgresql-client-$PG_MAJOR && rm -rf /var/lib/apt/lists/* ---> Running in 6dc84dd67774 Get:1 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB] Ign:2 http://deb.debian.org/debian stretch InRelease Get:3 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB] Get:4 http://deb.debian.org/debian stretch Release [118 kB] Get:5 https://deb.nodesource.com/node_10.x stretch InRelease [4585 B] Get:6 https://deb.nodesource.com/node_10.x stretch/main amd64 Packages [763 B] Get:7 http://apt.postgresql.org/pub/repos/apt jessie-pgdg InRelease [56.5 kB] Get:8 http://apt.postgresql.org/pub/repos/apt jessie-pgdg/9.5 amd64 Packages [1870 B] Get:9 http://apt.postgresql.org/pub/repos/apt jessie-pgdg/main amd64 Packages [110 kB] Get:10 http://deb.debian.org/debian stretch Release.gpg [2434 B] Get:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages [7748 B] Get:12 http://deb.debian.org/debian stretch/main amd64 Packages [7090 kB] Get:13 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [474 kB] Fetched 8051 kB in 2min 0s (66.7 kB/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... The following additional packages will be installed: pgdg-keyring postgresql-client-common Suggested packages: postgresql-9.5 postgresql-doc-9.5 Recommended packages: libreadline6 The following NEW packages will be installed: pgdg-keyring postgresql-client-9.5 postgresql-client-common 0 upgraded, 3 newly installed, 0 to remove and 3 not upgraded. Need to get 1295 kB of archives. After this operation, 5241 kB of additional disk space will be used. Get:1 http://apt.postgresql.org/pub/repos/apt jessie-pgdg/main amd64 pgdg-keyring all 2018.2 [10.7 kB] Get:2 http://apt.postgresql.org/pub/repos/apt jessie-pgdg/main amd64 postgresql-client-common all 199.pgdg80+1 [83.7 kB] Get:3 http://apt.postgresql.org/pub/repos/apt jessie-pgdg/main amd64 postgresql-client-9.5 amd64 9.5.15-1.pgdg80+1 [1200 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 1295 kB in 2min 7s (10.2 kB/s) Selecting previously unselected package pgdg-keyring. (Reading database ... 33888 files and directories currently installed.) Preparing to unpack .../pgdg-keyring_2018.2_all.deb ... Unpacking pgdg-keyring (2018.2) ... Selecting previously unselected package postgresql-client-common. Preparing to unpack .../postgresql-client-common_199.pgdg80+1_all.deb ... Unpacking postgresql-client-common (199.pgdg80+1) ... Selecting previously unselected package postgresql-client-9.5. Preparing to unpack .../postgresql-client-9.5_9.5.15-1.pgdg80+1_amd64.deb ... Unpacking postgresql-client-9.5 (9.5.15-1.pgdg80+1) ... Setting up pgdg-keyring (2018.2) ... Removing apt.postgresql.org key from trusted.gpg: OK Setting up postgresql-client-common (199.pgdg80+1) ... Setting up postgresql-client-9.5 (9.5.15-1.pgdg80+1) ... 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 Removing intermediate container 6dc84dd67774 ---> 39fca45a9022 Step 9/27 : RUN useradd --create-home --shell /bin/bash bookbrainz ---> Running in d41b469a10e0 Removing intermediate container d41b469a10e0 ---> d9b6f683ca43 Step 10/27 : ARG BB_ROOT=/home/bookbrainz/bookbrainz-site ---> Running in 1ec3b38cba3a Removing intermediate container 1ec3b38cba3a ---> 05e0de5c8747 Step 11/27 : WORKDIR $BB_ROOT ---> Running in 7b8d3606ab7f Removing intermediate container 7b8d3606ab7f ---> 30e4e2f3257f Step 12/27 : RUN chown bookbrainz:bookbrainz $BB_ROOT ---> Running in c85397756534 Removing intermediate container c85397756534 ---> 207f226949f6 Step 13/27 : COPY scripts/ scripts/ ---> 8693086ae905 Step 14/27 : COPY .babelrc ./ ---> c04d1c3bacc2 Step 15/27 : COPY .eslintrc.js ./ ---> 7f0ccaa4f5b3 Step 16/27 : COPY .eslintignore ./ ---> cdc3cfa816c5 Step 17/27 : COPY webpack.client.js ./ ---> c183de6f2de9 Step 18/27 : COPY package.json ./ ---> 682da2f8032a Step 19/27 : COPY package-lock.json ./ ---> 29960c0fb2bc Step 20/27 : RUN npm install --no-audit ---> Running in 243d0c456785 > libpq@1.8.8 install /home/bookbrainz/bookbrainz-site/node_modules/libpq > node-gyp rebuild make: Entering directory '/home/bookbrainz/bookbrainz-site/node_modules/libpq/build' CXX(target) Release/obj.target/addon/src/connection.o ../src/connection.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE Connection::Fname(Nan::NAN_METHOD_ARGS_TYPE)': ../src/connection.cc:204:52: warning: 'int32_t v8::Value::Int32Value() const' is deprecated: Use maybe version [-Wdeprecated-declarations] char* colName = PQfname(res, info[0]->Int32Value()); ^ In file included from /root/.node-gyp/10.15.1/include/node/v8.h:26:0, from /root/.node-gyp/10.15.1/include/node/node.h:63, from ../../nan/nan.h:52, from ../src/addon.h:4, from ../src/connection.cc:1: /root/.node-gyp/10.15.1/include/node/v8.h:2478:46: note: declared here V8_DEPRECATED("Use maybe version", int32_t Int32Value() const); ^ /root/.node-gyp/10.15.1/include/node/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/connection.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE Connection::Ftype(Nan::NAN_METHOD_ARGS_TYPE)': ../src/connection.cc:219:50: warning: 'int32_t v8::Value::Int32Value() const' is deprecated: Use maybe version [-Wdeprecated-declarations] int colName = PQftype(res, info[0]->Int32Value()); ^ In file included from /root/.node-gyp/10.15.1/include/node/v8.h:26:0, from /root/.node-gyp/10.15.1/include/node/node.h:63, from ../../nan/nan.h:52, from ../src/addon.h:4, from ../src/connection.cc:1: /root/.node-gyp/10.15.1/include/node/v8.h:2478:46: note: declared here V8_DEPRECATED("Use maybe version", int32_t Int32Value() const); ^ /root/.node-gyp/10.15.1/include/node/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/connection.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE Connection::Getvalue(Nan::NAN_METHOD_ARGS_TYPE)': ../src/connection.cc:230:39: warning: 'int32_t v8::Value::Int32Value() const' is deprecated: Use maybe version [-Wdeprecated-declarations] int rowNumber = info[0]->Int32Value(); ^ In file included from /root/.node-gyp/10.15.1/include/node/v8.h:26:0, from /root/.node-gyp/10.15.1/include/node/node.h:63, from ../../nan/nan.h:52, from ../src/addon.h:4, from ../src/connection.cc:1: /root/.node-gyp/10.15.1/include/node/v8.h:2478:46: note: declared here V8_DEPRECATED("Use maybe version", int32_t Int32Value() const); ^ /root/.node-gyp/10.15.1/include/node/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/connection.cc:231:39: warning: 'int32_t v8::Value::Int32Value() const' is deprecated: Use maybe version [-Wdeprecated-declarations] int colNumber = info[1]->Int32Value(); ^ In file included from /root/.node-gyp/10.15.1/include/node/v8.h:26:0, from /root/.node-gyp/10.15.1/include/node/node.h:63, from ../../nan/nan.h:52, from ../src/addon.h:4, from ../src/connection.cc:1: /root/.node-gyp/10.15.1/include/node/v8.h:2478:46: note: declared here V8_DEPRECATED("Use maybe version", int32_t Int32Value() const); ^ /root/.node-gyp/10.15.1/include/node/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/connection.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE Connection::Getisnull(Nan::NAN_METHOD_ARGS_TYPE)': ../src/connection.cc:248:39: warning: 'int32_t v8::Value::Int32Value() const' is deprecated: Use maybe version [-Wdeprecated-declarations] int rowNumber = info[0]->Int32Value(); ^ In file included from /root/.node-gyp/10.15.1/include/node/v8.h:26:0, from /root/.node-gyp/10.15.1/include/node/node.h:63, from ../../nan/nan.h:52, from ../src/addon.h:4, from ../src/connection.cc:1: /root/.node-gyp/10.15.1/include/node/v8.h:2478:46: note: declared here V8_DEPRECATED("Use maybe version", int32_t Int32Value() const); ^ /root/.node-gyp/10.15.1/include/node/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/connection.cc:249:39: warning: 'int32_t v8::Value::Int32Value() const' is deprecated: Use maybe version [-Wdeprecated-declarations] int colNumber = info[1]->Int32Value(); ^ In file included from /root/.node-gyp/10.15.1/include/node/v8.h:26:0, from /root/.node-gyp/10.15.1/include/node/node.h:63, from ../../nan/nan.h:52, from ../src/addon.h:4, from ../src/connection.cc:1: /root/.node-gyp/10.15.1/include/node/v8.h:2478:46: note: declared here V8_DEPRECATED("Use maybe version", int32_t Int32Value() const); ^ /root/.node-gyp/10.15.1/include/node/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/connection.cc: In member function 'void Connection::Emit(const char*)': ../src/connection.cc:804:46: warning: 'v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*)' is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(handle(), emit_f, 1, info); ^ In file included from ../src/addon.h:4:0, from ../src/connection.cc:1: ../../nan/nan.h:958:46: note: declared here NAN_DEPRECATED inline v8::Local MakeCallback( ^~~~~~~~~~~~ CXX(target) Release/obj.target/addon/src/connect-async-worker.o CXX(target) Release/obj.target/addon/src/addon.o SOLINK_MODULE(target) Release/obj.target/addon.node COPY Release/addon.node make: Leaving directory '/home/bookbrainz/bookbrainz-site/node_modules/libpq/build' > husky@0.14.3 install /home/bookbrainz/bookbrainz-site/node_modules/husky > node ./bin/install.js husky setting up Git hooks can't find .git directory, skipping Git hooks installation > nodemon@1.18.4 postinstall /home/bookbrainz/bookbrainz-site/node_modules/nodemon > node bin/postinstall || exit 0 Love nodemon? You can now support the project via the open collective: > https://opencollective.com/nodemon/donate npm WARN lifecycle bbsite@0.0.0~postinstall: cannot run in wd bbsite@0.0.0 npm run prepublishOnly (wd=/home/bookbrainz/bookbrainz-site) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) added 1651 packages from 1090 contributors in 58.169s Removing intermediate container 243d0c456785 ---> 0b71c66fa6e8 Step 21/27 : RUN apt-get remove -y $BUILD_DEPS && apt-get autoremove -y ---> Running in 836f1dc82b40 Reading package lists... Building dependency tree... Reading state information... The following packages will be REMOVED: build-essential 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. After this operation, 20.5 kB disk space will be freed. (Reading database ... 34190 files and directories currently installed.) Removing build-essential (12.3) ... Reading package lists... Building dependency tree... Reading state information... 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Removing intermediate container 836f1dc82b40 ---> 82f4c9ab1f31 Step 22/27 : COPY static/ static/ ---> 64926beb3a3e Step 23/27 : RUN npm run mkdirs ---> Running in 96d8c2785279 > bbsite@0.0.0 mkdirs /home/bookbrainz/bookbrainz-site > mkdir -p config static/js/editor static/js/entity static/stylesheets Removing intermediate container 96d8c2785279 ---> 5e082895100b Step 24/27 : COPY config/ config/ ---> 77428777a99c Step 25/27 : COPY src/ src/ ---> 8058ab0fb006 Step 26/27 : RUN npm run copy-client-scripts ---> Running in 3b677f97f3c3 > bbsite@0.0.0 copy-client-scripts /home/bookbrainz/bookbrainz-site > ./scripts/copy-client-scripts.sh Removing intermediate container 3b677f97f3c3 ---> 8f10e30fff16 Step 27/27 : CMD ["npm", "start"] ---> Running in 1480c83b3411 Removing intermediate container 1480c83b3411 ---> 0138a62811f8 Successfully built 0138a62811f8 Successfully tagged bookbrainz-site_bookbrainz-site:latest Creating network "bookbrainz-site_default" with the default driver Pulling postgres (postgres:9.5)... 9.5: Pulling from library/postgres 5e6ec7f28fb7: Pull complete 5e2aec55a5ab: Pull complete 966624e73f54: Pull complete 3c5197efa683: Pull complete bb4834c5b0ba: Pull complete 32e88c2d07b1: Pull complete 6a7e663589c9: Pull complete 16acf43c5b2b: Pull complete f938a71f1362: Pull complete 7ece218f7da8: Pull complete 71de9593fef9: Pull complete 3bd7e02cedb0: Pull complete ef202921b478: Pull complete 5f2d78b3495c: Pull complete Pulling elasticsearch (docker.elastic.co/elasticsearch/elasticsearch:5.6.8)... 5.6.8: Pulling from elasticsearch/elasticsearch af4b0a2388c6: Pull complete 64c3898dafdc: Pull complete ec1181075d13: Pull complete 6d7b56a0dd46: Pull complete b46e009fc309: Pull complete ed4897316262: Pull complete 23895b23d904: Pull complete ee8bc449f517: Pull complete ecfefe5bb645: Pull complete f440b19c1749: Pull complete Pulling redis (redis:3.2-alpine)... 3.2-alpine: Pulling from library/redis 4fe2ade4980c: Pull complete fb758dc2e038: Pull complete 989f7b0c858b: Pull complete 42b4b9f869ad: Pull complete 17e06138ef20: Pull complete c0ecd66db81e: Pull complete Creating elasticsearch ... done Creating postgres ... done Creating redis ... done postgres:5432 - accepting connections Postgres is accepting connections - executing command createuser: creation of new role failed: ERROR: role "bookbrainz" already exists createdb: database creation failed: ERROR: database "bookbrainz" already exists