Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problems deploying with Docker on MacOS machine #1

Open
4 tasks done
proccaserra opened this issue Mar 1, 2022 · 1 comment
Open
4 tasks done

problems deploying with Docker on MacOS machine #1

proccaserra opened this issue Mar 1, 2022 · 1 comment

Comments

@proccaserra
Copy link
Collaborator

  • environment:
  • Macbook pro running Big Sur 11.6.2
  • Docker desktop version 4.5.0 (74594)
  • with docker compose v1.29.2
  • graphql-server.log:
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!

> [email protected] install /var/projects/ISA-warehouse/graphql-server/node_modules/bcrypt
> node-pre-gyp install --fallback-to-build

[bcrypt] Success: "/var/projects/ISA-warehouse/graphql-server/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node" is installed via remote

> [email protected] install /var/projects/ISA-warehouse/graphql-server/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Using request for node-pre-gyp https download 
[sqlite3] Success: "/var/projects/ISA-warehouse/graphql-server/node_modules/sqlite3/lib/binding/napi-v3-linux-x64/node_sqlite3.node" is installed via remote

> [email protected] postinstall /var/projects/ISA-warehouse/graphql-server/node_modules/aws-sdk
> node scripts/check-node-version.js


> [email protected] postinstall /var/projects/ISA-warehouse/graphql-server/node_modules/node-jq
> npm run install-binary


> [email protected] install-binary /var/projects/ISA-warehouse/graphql-server/node_modules/node-jq
> node scripts/install-binary.js

Downloading jq from https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
Downloaded in /var/projects/ISA-warehouse/graphql-server/node_modules/node-jq/bin

> [email protected] postinstall /var/projects/ISA-warehouse/graphql-server/node_modules/nodemon
> node bin/postinstall || exit 0

�[32mLove nodemon? You can now support the project via the open collective:�[22m�[39m
 > �[96m�[1mhttps://opencollective.com/nodemon/donate�[0m

npm WARN [email protected] No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 917 packages from 723 contributors and audited 922 packages in 32.144s

61 packages are looking for funding
  run `npm fund` for details

found 49 vulnerabilities (1 low, 25 moderate, 23 high)
  run `npm audit fix` to fix them, or `npm audit` for details
  • graphiql.log:
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/[email protected] (node_modules/next/node_modules/@next/swc-android-arm64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/[email protected]: wanted {"os":"android","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/[email protected] (node_modules/next/node_modules/@next/swc-darwin-arm64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/[email protected]: wanted {"os":"darwin","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/[email protected] (node_modules/next/node_modules/@next/swc-darwin-x64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/[email protected]: wanted {"os":"darwin","arch":"x64"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/[email protected] (node_modules/next/node_modules/@next/swc-linux-arm-gnueabihf):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/[email protected]: wanted {"os":"linux","arch":"arm"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/[email protected] (node_modules/next/node_modules/@next/swc-linux-arm64-gnu):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/[email protected]: wanted {"os":"linux","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/[email protected] (node_modules/next/node_modules/@next/swc-linux-arm64-musl):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/[email protected]: wanted {"os":"linux","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/[email protected] (node_modules/next/node_modules/@next/swc-win32-arm64-msvc):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/[email protected]: wanted {"os":"win32","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/[email protected] (node_modules/next/node_modules/@next/swc-win32-ia32-msvc):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/[email protected]: wanted {"os":"win32","arch":"ia32"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/[email protected] (node_modules/next/node_modules/@next/swc-win32-x64-msvc):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/[email protected]: wanted {"os":"win32","arch":"x64"} (current: {"os":"linux","arch":"x64"})
npm WARN @emotion/[email protected] requires a peer of @babel/core@^7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/[email protected] requires a peer of @babel/core@^7.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of typescript@>=2.7 but none is installed. You must install peer dependencies yourself.

added 259 packages from 1239 contributors and audited 268 packages in 36.017s

36 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

  • single-page-app.log
yarn install v1.22.11
[1/4] Resolving packages...
[2/4] Fetching packages...
info @next/[email protected]: The platform "linux" is incompatible with this module.
info "@next/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info @next/[email protected]: The CPU architecture "x64" is incompatible with this module.
info @next/[email protected]: The platform "linux" is incompatible with this module.
info "@next/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info @next/[email protected]: The platform "linux" is incompatible with this module.
info "@next/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
Done in 152.10s.

@proccaserra
Copy link
Collaborator Author

From the Docker Console:

  • isa-plug-and-play-warehouse_keycloak_pg_data volumne . pgdb_keycloak [postgres]
The files belonging to this database system will be owned by user "postgres".

This user must also own the server process.


The database cluster will be initialized with locale "en_US.utf8".

The default database encoding has accordingly been set to "UTF8".

The default text search configuration will be set to "english".


Data page checksums are disabled.


fixing permissions on existing directory /var/lib/postgresql/data ... ok

creating subdirectories ... ok

selecting dynamic shared memory implementation ... posix

selecting default max_connections ... 100

selecting default shared_buffers ... 128MB

selecting default time zone ... Etc/UTC

creating configuration files ... ok

running bootstrap script ... ok

performing post-bootstrap initialization ... ok

syncing data to disk ... ok



Success. You can now start the database server using:


    pg_ctl -D /var/lib/postgresql/data -l logfile start


waiting for server to start....2022-03-02 08:49:01.684 UTC [50] LOG:  starting PostgreSQL 14.2 (Debian 14.2-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit

2022-03-02 08:49:01.687 UTC [50] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"

2022-03-02 08:49:01.698 UTC [51] LOG:  database system was shut down at 2022-03-02 08:49:01 UTC

2022-03-02 08:49:01.704 UTC [50] LOG:  database system is ready to accept connections

 done

server started

CREATE DATABASE



/usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*


2022-03-02 08:49:02.214 UTC [50] LOG:  received fast shutdown request

waiting for server to shut down....2022-03-02 08:49:02.216 UTC [50] LOG:  aborting any active transactions

2022-03-02 08:49:02.222 UTC [50] LOG:  background worker "logical replication launcher" (PID 57) exited with exit code 1

2022-03-02 08:49:02.222 UTC [52] LOG:  shutting down

2022-03-02 08:49:02.245 UTC [50] LOG:  database system is shut down

 done

server stopped


PostgreSQL init process complete; ready for start up.


initdb: warning: enabling "trust" authentication for local connections

You can change this by editing pg_hba.conf or using the option -A, or

--auth-local and --auth-host, the next time you run initdb.

2022-03-02 08:49:02.368 UTC [1] LOG:  starting PostgreSQL 14.2 (Debian 14.2-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit

2022-03-02 08:49:02.368 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432

2022-03-02 08:49:02.368 UTC [1] LOG:  listening on IPv6 address "::", port 5432

2022-03-02 08:49:02.372 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"

2022-03-02 08:49:02.378 UTC [64] LOG:  database system was shut down at 2022-03-02 08:49:02 UTC

2022-03-02 08:49:02.388 UTC [1] LOG:  database system is ready to accept connections

2022-03-02 08:50:08.393 UTC [72] ERROR:  relation "public.databasechangeloglock" does not exist at character 22

2022-03-02 08:50:08.393 UTC [72] STATEMENT:  select count(*) from public.databasechangeloglock

2022-03-02 08:50:10.747 UTC [73] ERROR:  relation "public.databasechangelog" does not exist at character 22

2022-03-02 08:50:10.747 UTC [73] STATEMENT:  select count(*) from public.databasechangelog

2022-03-02 08:50:12.541 UTC [73] ERROR:  relation "public.databasechangelog" does not exist at character 22

2022-03-02 08:50:12.541 UTC [73] STATEMENT:  select count(*) from public.databasechangelog


  • isa-plug-and-play-warehouse_zendro_db_data volumne
The files belonging to this database system will be owned by user "postgres".

This user must also own the server process.


The database cluster will be initialized with locale "en_US.utf8".

The default database encoding has accordingly been set to "UTF8".

The default text search configuration will be set to "english".


Data page checksums are disabled.


fixing permissions on existing directory /var/lib/postgresql/data ... ok

creating subdirectories ... ok

selecting dynamic shared memory implementation ... posix

selecting default max_connections ... 100

selecting default shared_buffers ... 128MB

selecting default time zone ... UTC

creating configuration files ... ok

running bootstrap script ... ok

performing post-bootstrap initialization ... ok

syncing data to disk ... ok



Success. You can now start the database server using:


    pg_ctl -D /var/lib/postgresql/data -l logfile start


waiting for server to start....2022-03-02 08:49:03.017 UTC [36] LOG:  starting PostgreSQL 14.2 on x86_64-pc-linux-musl, compiled by gcc (Alpine 10.3.1_git20211027) 10.3.1 20211027, 64-bit

2022-03-02 08:49:03.020 UTC [36] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"

2022-03-02 08:49:03.035 UTC [37] LOG:  database system was shut down at 2022-03-02 08:49:02 UTC

2022-03-02 08:49:03.041 UTC [36] LOG:  database system is ready to accept connections

sh: locale: not found

2022-03-02 08:49:01.401 UTC [30] WARNING:  no usable system locales were found

initdb: warning: enabling "trust" authentication for local connections

You can change this by editing pg_hba.conf or using the option -A, or

--auth-local and --auth-host, the next time you run initdb.

2022-03-02 08:49:03.853 UTC [1] LOG:  starting PostgreSQL 14.2 on x86_64-pc-linux-musl, compiled by gcc (Alpine 10.3.1_git20211027) 10.3.1 20211027, 64-bit

2022-03-02 08:49:03.853 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432

2022-03-02 08:49:03.853 UTC [1] LOG:  listening on IPv6 address "::", port 5432

2022-03-02 08:49:03.857 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"

2022-03-02 08:49:03.862 UTC [50] LOG:  database system was shut down at 2022-03-02 08:49:03 UTC

2022-03-02 08:49:03.867 UTC [1] LOG:  database system is ready to accept connections

 done

server started


/usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/initUserDb.sql

CREATE ROLE

CREATE DATABASE

CREATE DATABASE

CREATE DATABASE



waiting for server to shut down....2022-03-02 08:49:03.728 UTC [36] LOG:  received fast shutdown request

2022-03-02 08:49:03.729 UTC [36] LOG:  aborting any active transactions

2022-03-02 08:49:03.731 UTC [36] LOG:  background worker "logical replication launcher" (PID 43) exited with exit code 1

2022-03-02 08:49:03.731 UTC [38] LOG:  shutting down

2022-03-02 08:49:03.747 UTC [36] LOG:  database system is shut down

 done

server stopped


PostgreSQL init process complete; ready for start up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant