Skip to content

Instantly share code, notes, and snippets.

@JakubKoralewski

JakubKoralewski/herokubuild.log Secret

Created Jan 13, 2021
Embed
What would you like to do?
=== Fetching app code..
=== Building release (Dockerfile)
Sending build context to Docker daemon 1.016MBStep 1/11 : FROM mhart/alpine-node:15 AS builder
15: Pulling from mhart/alpine-node
801bfaa63ef2: Pulling fs layer
aac6a114e757: Pulling fs layer
801bfaa63ef2: Verifying Checksum
801bfaa63ef2: Download complete
aac6a114e757: Verifying Checksum
aac6a114e757: Download complete
801bfaa63ef2: Pull complete
aac6a114e757: Pull complete
Digest: sha256:48b6801235e4179dec2427bd57853239553ea8bba20fba496df219469370b11c
Status: Downloaded newer image for mhart/alpine-node:15
---> 53438cdc4c73
Step 2/11 : WORKDIR /app
---> Running in 7346b7cbd272
Removing intermediate container 7346b7cbd272
---> d6b90bc0c19b
Step 3/11 : COPY package.json package-lock.json ./
---> eeb7183c29f1
Step 4/11 : RUN npm i
---> Running in adb2f082e16d
added 1899 packages, and audited 1900 packages in 1m
found 0 vulnerabilities
npm notice
npm notice New minor version of npm available! 7.3.0 -> 7.4.0
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v7.4.0>
npm notice Run `npm install -g npm@7.4.0` to update!
npm notice
Removing intermediate container adb2f082e16d
---> 36450e943f73
Step 5/11 : COPY . .
---> 5a77a6172c92
Step 6/11 : ENV NODE_ENV=production
---> Running in d037da072d1c
Removing intermediate container d037da072d1c
---> 062499b2bc13
Step 7/11 : RUN npx prisma generate
---> Running in 0372a7116cad
Prisma schema loaded from prisma/schema.prisma
✔ Generated Prisma Client (2.14.0) to ./node_modules/@prisma/client in 130ms
You can now start using Prisma Client in your code. Reference: https://pris.ly/d/client
```
import { PrismaClient } from '@prisma/client'
const prisma = new PrismaClient()
```
warn Prisma 2.12.0 has breaking changes.
You can update your code with
`npx @prisma/codemods update-2.12 ./`
Read more at https://pris.ly/2.12
Removing intermediate container 0372a7116cad
---> 07c3ad14c68e
Step 8/11 : RUN npm run build
---> Running in 4ab2b8f22be0
> lets-watch-it-together@0.0.1 build
> next build
info - Creating an optimized production build...
Attention: Next.js now collects completely anonymous telemetry regarding usage.
This information is used to shape Next.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry
> [PWA] Compile client (static)
> [PWA] Auto register service worker with: /app/node_modules/next-pwa/register.js
> [PWA] Service worker: /app/public/sw.js
> [PWA] url: /sw.js
> [PWA] scope: /
> [PWA] Compile server
info - Using external babel configuration from /app/.babelrc
info - Compiled successfully
info - Collecting page data...
{"level":20,"time":1610569335618,"pid":37,"hostname":"4ab2b8f22be0","_lt":"r","caller":"new redis_wrapper_RedisWrapper (/app/.next/server/pages/user/[id]/meetings/new.js:2548:26)","msg":"creating redis client with string \"undefined\""}
{"level":50,"time":1610569335676,"pid":37,"hostname":"4ab2b8f22be0","_lt":"lu","inLibErrorType":{"string":"Tmdb","enumValue":6},"msg":"\"TMDB_API_KEY environment variable not set!\"","innerEnumValue":{"string":"NoApiKey","enumValue":3},"type":"lu","caller":"new ErrorInLibWithLogging (/app/.next/server/pages/user/[id]/meetings/new.js:4614:12)"}
{"level":40,"time":1610569335677,"pid":37,"hostname":"4ab2b8f22be0","_lt":"t","err":{"type":"Error","message":"\"TMDB_API_KEY environment variable not set!\"","stack":"Error: \"TMDB_API_KEY environment variable not set!\"\n at Object.Yr4q (/app/.next/server/pages/user/[id]/meetings/new.js:2747:10)\n at __webpack_require__ (/app/.next/server/pages/user/[id]/meetings/new.js:23:31)\n at Object.RIWY (/app/.next/server/pages/user/[id]/meetings/new.js:1371:71)\n at __webpack_require__ (/app/.next/server/pages/user/[id]/meetings/new.js:23:31)\n at Object.UbM3 (/app/.next/server/pages/user/[id]/meetings/new.js:1668:22)\n at __webpack_require__ (/app/.next/server/pages/user/[id]/meetings/new.js:23:31)\n at Module.ZgPp (/app/.next/server/pages/user/[id]/meetings/new.js:2783:22)\n at __webpack_require__ (/app/.next/server/pages/user/[id]/meetings/new.js:23:31)\n at Object.17 (/app/.next/server/pages/user/[id]/meetings/new.js:189:18)\n at __webpack_require__ (/app/.next/server/pages/user/[id]/meetings/new.js:23:31)","tmdbErrorType":3,"tmdbMessage":"TMDB_API_KEY environment variable not set!","tmdbErrorTypeString":"NoApiKey"},"caller":"Object.Yr4q (/app/.next/server/pages/user/[id]/meetings/new.js:2746:26)"}
Error: connect ECONNREFUSED 127.0.0.1:6379
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1138:16)
info - Generating static pages (0/4)
info - Generating static pages (1/4)
info - Generating static pages (2/4)
info - Generating static pages (3/4)
info - Generating static pages (4/4)
info - Finalizing page optimization...
Page Size First Load JS
┌ λ / 4.09 kB 142 kB
├ /_app 0 B 128 kB
├ ○ /404 3.01 kB 131 kB
├ ○ /about 1.97 kB 140 kB
├ λ /api/auth/[...nextauth] 0 B 128 kB
├ λ /api/friends 0 B 128 kB
├ λ /api/hello 0 B 128 kB
├ λ /api/meetings/new 0 B 128 kB
├ λ /api/search/users 0 B 128 kB
├ λ /api/shows 0 B 128 kB
├ λ /api/shows/[id]/like 0 B 128 kB
├ λ /api/shows/[id]/small 0 B 128 kB
├ λ /api/users/[id] 0 B 128 kB
├ λ /api/users/[id]/friend 0 B 128 kB
├ ○ /app 397 B 229 kB
├ ○ /app/welcome 176 B 229 kB
├ λ /app/welcome/[welcome_stage] 185 B 229 kB
└ λ /user/[id]/meetings/new 34.2 kB 246 kB
+ First Load JS shared by all 128 kB
├ chunks/05d954cf.1c1f57.js 22.2 kB
├ chunks/40e946ea47570f0953719bd76ce9b7cd81535061.dbb665.js 3.22 kB
├ chunks/6e3fd2355d835a61c4c32873889a4085e7f6a9f5.20cdd2.js 9.37 kB
├ chunks/commons.9b549c.js 12.8 kB
├ chunks/ec0e78a518de37974c4314a00925d315fccecafb.bf13bc.js 19.6 kB
├ chunks/framework.eb2cf8.js 40.2 kB
├ chunks/main.1a4edd.js 8.46 kB
├ chunks/pages/_app.842819.js 11.9 kB
└ chunks/webpack.95c2b2.js 751 B
λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
○ (Static) automatically rendered as static HTML (uses no initial props)
● (SSG) automatically generated as static HTML + JSON (uses getStaticProps)
(ISR) incremental static regeneration (uses revalidate in getStaticProps)
Removing intermediate container 4ab2b8f22be0
---> c68c6d1b4642
Step 9/11 : RUN npm i --production
---> Running in 029f777ad078
up to date, audited 1108 packages in 8s
found 0 vulnerabilities
Removing intermediate container 029f777ad078
---> ee2494e31180
Step 10/11 : RUN apk --no-cache add curl
---> Running in 45f9eb99ccca
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz
(1/4) Installing ca-certificates (20191127-r4)
(2/4) Installing nghttp2-libs (1.41.0-r0)
(3/4) Installing libcurl (7.69.1-r3)
(4/4) Installing curl (7.69.1-r3)
Executing busybox-1.31.1-r19.trigger
Executing ca-certificates-20191127-r4.trigger
OK: 9 MiB in 20 packages
Removing intermediate container 45f9eb99ccca
---> 125e019d858f
Step 11/11 : RUN chmod a+x ./prisma/heroku-release.sh
---> Running in 6d45014965a2
Removing intermediate container 6d45014965a2
---> 7cda1a4fed56
Successfully built 7cda1a4fed56
Successfully tagged e58d8b699be605559ec1fdfa3f059e4f03ebb5a6:latest
=== Building web (Dockerfile)
Sending build context to Docker daemon 1.016MBStep 1/21 : FROM mhart/alpine-node:15 AS builder
---> 53438cdc4c73
Step 2/21 : WORKDIR /app
---> Using cache
---> d6b90bc0c19b
Step 3/21 : COPY package.json package-lock.json ./
---> Using cache
---> eeb7183c29f1
Step 4/21 : RUN npm i
---> Using cache
---> 36450e943f73
Step 5/21 : COPY . .
---> Using cache
---> 5a77a6172c92
Step 6/21 : ENV NODE_ENV=production
---> Using cache
---> 062499b2bc13
Step 7/21 : RUN npx prisma generate
---> Using cache
---> 07c3ad14c68e
Step 8/21 : RUN npm run build
---> Using cache
---> c68c6d1b4642
Step 9/21 : RUN npm i --production
---> Using cache
---> ee2494e31180
Step 10/21 : RUN apk --no-cache add curl
---> Using cache
---> 125e019d858f
Step 11/21 : RUN chmod a+x ./prisma/heroku-release.sh
---> Using cache
---> 7cda1a4fed56
Step 12/21 : FROM mhart/alpine-node:slim-15 as production
slim-15: Pulling from mhart/alpine-node
801bfaa63ef2: Already exists
df5824b96f28: Pulling fs layer
df5824b96f28: Verifying Checksum
df5824b96f28: Download complete
df5824b96f28: Pull complete
Digest: sha256:ccc2a81671aee56bc31f2800f49f43a8fb203e29f35d9ba77340e1761980742c
Status: Downloaded newer image for mhart/alpine-node:slim-15
---> 3dbc3bfa09bf
Step 13/21 : COPY --from=builder /usr/bin/curl /usr/bin/curl
---> 30312315d6bd
Step 14/21 : WORKDIR /app
---> Running in 35246ec27359
Removing intermediate container 35246ec27359
---> 7f39ba95bd03
Step 15/21 : COPY --from=builder /app/public ./public
---> 0fa08694bcde
Step 16/21 : COPY --from=builder /app/.next ./.next
---> 6a097e88ef65
Step 17/21 : COPY --from=builder /app/node_modules ./node_modules
---> fb8eca75f318
Step 18/21 : EXPOSE 3000
---> Running in f228d63dbef5
Removing intermediate container f228d63dbef5
---> 872b72677137
Step 19/21 : RUN adduser -D myuser
---> Running in eade8f5fd85f
Removing intermediate container eade8f5fd85f
---> 74ad2105223a
Step 20/21 : USER myuser
---> Running in 7d64669147b1
Removing intermediate container 7d64669147b1
---> 840fa3f369e5
Step 21/21 : CMD [ ! -z "$HEROKU_APP_NAME" ] && export NEXTAUTH_URL="https://$HEROKU_APP_NAME.herokuapp.com" || echo "error setting env"; node_modules/.bin/next start -p $PORT --hostname 0.0.0.0
---> Running in 13088b0eb98d
Removing intermediate container 13088b0eb98d
---> 8c08dda47df0
Successfully built 8c08dda47df0
Successfully tagged 6c3942729ace8d1e27ad125488ee3e3a83590219:latest
=== Pushing release (Dockerfile)
Tagged image "e58d8b699be605559ec1fdfa3f059e4f03ebb5a6" as "registry.heroku.com/lets-watch-it-together-staging/release"
Using default tag: latest
The push refers to repository [registry.heroku.com/lets-watch-it-together-staging/release]
af6fa25d6387: Preparing
67a53bdb111a: Preparing
a1bed97dde5d: Preparing
842de2b0214a: Preparing
d9b1ff1270f5: Preparing
94cfd5a54966: Preparing
85377a3b1864: Preparing
4e3d15edbe8e: Preparing
e5223cdd123a: Preparing
f51beeaaef8c: Preparing
777b2c648970: Preparing
94cfd5a54966: Waiting
85377a3b1864: Waiting
4e3d15edbe8e: Waiting
e5223cdd123a: Waiting
f51beeaaef8c: Waiting
777b2c648970: Waiting
842de2b0214a: Pushed
a1bed97dde5d: Pushed
af6fa25d6387: Pushed
67a53bdb111a: Pushed
d9b1ff1270f5: Pushed
94cfd5a54966: Pushed
4e3d15edbe8e: Pushed
e5223cdd123a: Pushed
777b2c648970: Layer already exists
f51beeaaef8c: Layer already exists
85377a3b1864: Pushed
latest: digest: sha256:d3d172ffef639319f2083dcbb4140086db8ac7b4f2aa4450b4f2a84046c30113 size: 2629
Tagged image "e58d8b699be605559ec1fdfa3f059e4f03ebb5a6" as "registry.heroku.com/lets-watch-it-together-staging/worker"
Using default tag: latest
The push refers to repository [registry.heroku.com/lets-watch-it-together-staging/worker]
af6fa25d6387: Preparing
67a53bdb111a: Preparing
a1bed97dde5d: Preparing
842de2b0214a: Preparing
d9b1ff1270f5: Preparing
94cfd5a54966: Preparing
85377a3b1864: Preparing
4e3d15edbe8e: Preparing
e5223cdd123a: Preparing
f51beeaaef8c: Preparing
777b2c648970: Preparing
94cfd5a54966: Waiting
e5223cdd123a: Waiting
f51beeaaef8c: Waiting
777b2c648970: Waiting
85377a3b1864: Waiting
4e3d15edbe8e: Waiting
af6fa25d6387: Mounted from lets-watch-it-together-staging/release
67a53bdb111a: Mounted from lets-watch-it-together-staging/release
a1bed97dde5d: Mounted from lets-watch-it-together-staging/release
d9b1ff1270f5: Mounted from lets-watch-it-together-staging/release
842de2b0214a: Mounted from lets-watch-it-together-staging/release
f51beeaaef8c: Layer already exists
94cfd5a54966: Mounted from lets-watch-it-together-staging/release
85377a3b1864: Mounted from lets-watch-it-together-staging/release
777b2c648970: Layer already exists
4e3d15edbe8e: Mounted from lets-watch-it-together-staging/release
e5223cdd123a: Mounted from lets-watch-it-together-staging/release
latest: digest: sha256:d3d172ffef639319f2083dcbb4140086db8ac7b4f2aa4450b4f2a84046c30113 size: 2629
=== Pushing web (Dockerfile)
Tagged image "6c3942729ace8d1e27ad125488ee3e3a83590219" as "registry.heroku.com/lets-watch-it-together-staging/web"
Using default tag: latest
The push refers to repository [registry.heroku.com/lets-watch-it-together-staging/web]
673f43dc4680: Preparing
c53f13c7a4f2: Preparing
7d4b8ab2d9dc: Preparing
02d7c72e0edb: Preparing
bf502b2c5b55: Preparing
2023adbf4177: Preparing
d95540167da1: Preparing
777b2c648970: Preparing
2023adbf4177: Waiting
d95540167da1: Waiting
777b2c648970: Waiting
bf502b2c5b55: Pushed
02d7c72e0edb: Pushed
673f43dc4680: Pushed
777b2c648970: Layer already exists
d95540167da1: Layer already exists
7d4b8ab2d9dc: Pushed
2023adbf4177: Pushed
c53f13c7a4f2: Pushed
latest: digest: sha256:bc5637c7dd81069cbfd7a498a174ec6c4ecd071ccdee91e306841522c7268ea8 size: 1996
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment