valleyhousingcoop / discourse-hosting

13 stars 1 forks source link

ERROR: Service 'install_themes' failed to build : Build failed #3

Closed stephane-klein closed 1 year ago

stephane-klein commented 1 year ago

I have this build error:

$ docker-compose build

...

 => [ 2/29] RUN cat /etc/os-release | grep VERSION_CODENAME=bullseye                                                                                                                                            1.3s
 => [ 3/29] RUN     curl -ssL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor  > /usr/share/keyrings/nodesource.gpg &&     curl -sSl https://www.postgresql.org/media/keys/ACCC4CF8.asc   11.7s
 => [ 4/29] WORKDIR /tmp/oxipng-install                                                                                                                                                                         0.1s
 => [ 5/29] RUN wget https://github.com/shssoichiro/oxipng/releases/download/v8.0.0/oxipng-8.0.0-x86_64-unknown-linux-musl.tar.gz  && tar -xzf oxipng-8.0.0-x86_64-unknown-linux-musl.tar.gz  && cp oxipng-8.0  1.1s
 => [ 6/29] RUN npm install -g svgo terser uglify-js                                                                                                                                                            4.1s
 => [ 7/29] RUN gem install bundler --no-document -v '2.3.22'                                                                                                                                                   1.0s
 => [ 8/29] WORKDIR /home/discourse/discourse                                                                                                                                                                   0.1s
 => [ 9/29] RUN mkdir -p tmp/sockets log tmp/pids                                                                                                                                                               0.3s
 => [10/29] RUN git config --global http.sslVerify false &&     git clone https://github.com/discourse/discourse.git --depth 1 --branch v3.1.0.beta3 /var/www/discourse &&     cd /var/www/discourse            9.2s
 => [11/29] WORKDIR /var/www/discourse                                                                                                                                                                          0.1s
 => ERROR [12/29] RUN yarn install --production --frozen-lockfile &&     cd app/assets/javascripts/discourse &&     node_modules/.bin/ember install @sentry/ember &&     yarn cache clean                      37.6s
------
 > [12/29] RUN yarn install --production --frozen-lockfile &&     cd app/assets/javascripts/discourse &&     node_modules/.bin/ember install @sentry/ember &&     yarn cache clean:
#0 0.437 yarn install v1.22.19
#0 0.503 [1/5] Validating package.json...
#0 0.508 [2/5] Resolving packages...
#0 0.596 [3/5] Fetching packages...
#0 7.790 [4/5] Linking dependencies...
#0 7.791 warning " > @mixer/parallel-prettier@2.0.3" has unmet peer dependency "prettier@^2.0.0".
#0 7.791 warning "eslint-config-discourse > eslint-plugin-lodash@7.1.0" has unmet peer dependency "lodash@>=4".
#0 8.389 [5/5] Building fresh packages...
#0 8.661 $ yarn --cwd app/assets/javascripts/discourse $(node -e 'if(JSON.parse(process.env.npm_config_argv).original.includes(`--frozen-lockfile`)){console.log(`--frozen-lockfile`)}')
#0 8.895 yarn install v1.22.19
#0 8.982 [1/4] Resolving packages...
#0 9.253 [2/4] Fetching packages...
#0 23.03 [3/4] Linking dependencies...
#0 23.03 warning " > babel-plugin-debug-macros@0.4.0-pre1" has unmet peer dependency "@babel/core@^7.0.0".
#0 23.03 warning "workspace-aggregator-02c3c124-827e-4b32-b614-22e85323aedd > discourse > @uppy/xhr-upload@3.1.0" has incorrect peer dependency "@uppy/core@^3.0.6".
#0 26.32 [4/4] Building fresh packages...
#0 26.50 Done in 17.62s.
#0 26.54 Done in 26.11s.
#0 28.32 WARNING: Node v18.15.0 is not tested against Ember CLI on your platform. We recommend that you use the most-recent "Active LTS" version of Node.js. See https://git.io/v7S5n for details.
#0 28.35 - Installing addon package
#0 28.50 - Installing addon package
#0 28.50 - Installing addon package
#0 28.50
#0 28.50 Installing packages... This might take a couple of minutes.
#0 28.50 - Yarn: Installing @sentry/ember ...
#0 37.06 Yarn: Installed @sentry/ember
#0 37.26 Cannot find module '/var/www/discourse/app/assets/javascripts/node_modules/broccoli-plugin/index.js'. Please verify that the package.json has a valid "main" entry
#0 37.26
#0 37.26
#0 37.26 Stack Trace and Error Report: /tmp/error.dump.724489a11e97ae0a242276f307256ba1.log
#0 37.26 An error occurred in the constructor for @sentry/ember at /var/www/discourse/app/assets/javascripts/node_modules/@sentry/ember
#0 37.26
------
Dockerfile:63
--------------------
  62 |     # RUN corepack enable
  63 | >>> RUN yarn install --production --frozen-lockfile && \
  64 | >>>     cd app/assets/javascripts/discourse && \
  65 | >>>     node_modules/.bin/ember install @sentry/ember && \
  66 | >>>     yarn cache clean
  67 |     ENV RAILS_ENV production
--------------------
ERROR: failed to solve: process "/bin/sh -c yarn install --production --frozen-lockfile &&     cd app/assets/javascripts/discourse &&     node_modules/.bin/ember install @sentry/ember &&     yarn cache clean" did not complete successfully: exit code: 1
ERROR: Service 'install_themes' failed to build : Build failed
saulshanabrook commented 1 year ago

Sorry I am just seeing this! If you retry with the latest, let me know if you have the same error