Deploy Preview is failing when using netlify dev to run Cypress tests on postBuild event

Deploy Preview is failing without any error message when using netlify dev to run Cypress tests on postBuild event.

We are using netlify-plugin-cypress.

netlify.toml:

deploy logs:

12:47:32 PM: Build ready to start
12:47:33 PM: build-image version: a2d22d22e4555d1ef0a972ed14a0a4b366ad20c4 (focal)
12:47:33 PM: build-image tag: v4.16.3
12:47:33 PM: buildbot version: 9a6b4d0d37eb2a90e2c482e1d6cfe9a0793e6262
12:47:34 PM: Fetching cached dependencies
12:47:34 PM: Starting to download cache of 1.3GB
12:47:43 PM: Finished downloading cache in 9.742148063s
12:47:43 PM: Starting to extract cache
12:47:50 PM: Finished extracting cache in 6.580089911s
12:47:50 PM: Finished fetching cache in 16.451084846s
12:47:50 PM: Starting to prepare the repo for build
12:47:50 PM: Preparing Git Reference pull/217/head
12:47:51 PM: Parsing package.json dependencies
12:47:52 PM: Different functions path detected, going to use the one specified in the Netlify configuration file: 'netlify/functions' versus '' in the Netlify UI
12:47:52 PM: Different build command detected, going to use the one specified in the Netlify configuration file: 'yarn build && yarn build-cypress' versus 'yarn build' in the Netlify UI
12:47:52 PM: Starting build script
12:47:52 PM: Installing dependencies
12:47:52 PM: Python version set to 2.7
12:47:52 PM: Started restoring cached Node.js version
12:47:53 PM: Finished restoring cached Node.js version
12:47:53 PM: Attempting Node.js version 'v18.12.1' from .nvmrc
12:47:53 PM: v18.12.1 is already installed.
12:47:54 PM: Now using node v18.12.1 (npm v8.19.2)
12:47:54 PM: Enabling Node.js Corepack
12:47:54 PM: Started restoring cached build plugins
12:47:54 PM: Finished restoring cached build plugins
12:47:54 PM: Attempting Ruby version 2.7.2, read from environment
12:47:54 PM: Using Ruby version 2.7.2
12:47:55 PM: Using PHP version 8.0
12:47:55 PM: Started restoring cached corepack dependencies
12:47:55 PM: mv: cannot move '/opt/build/cache/.node/corepack' to '/opt/buildhome/.node/corepack': No such file or directory
12:47:55 PM: Finished restoring cached corepack dependencies
12:47:55 PM: Started restoring cached yarn cache
12:48:01 PM: Finished restoring cached yarn cache
12:48:01 PM: No yarn workspaces detected
12:48:01 PM: Started restoring cached node modules
12:48:01 PM: Finished restoring cached node modules
12:48:02 PM: Installing npm packages using Yarn version 1.22.19
12:48:02 PM: yarn install v1.22.19
12:48:02 PM: [1/4] Resolving packages...
12:48:02 PM: [2/4] Fetching packages...
12:48:04 PM: [3/4] Linking dependencies...
12:48:04 PM: warning " > styled-components@5.3.6" has unmet peer dependency "react-is@>= 16.8.0".
12:48:04 PM: warning " > @testing-library/user-event@14.4.3" has unmet peer dependency "@testing-library/dom@>=7.21.4".
12:48:04 PM: warning " > @typescript-eslint/eslint-plugin@5.47.1" has unmet peer dependency "@typescript-eslint/parser@^5.0.0".
12:48:11 PM: [4/4] Building fresh packages...
12:48:19 PM: $ husky install
12:48:19 PM: husky - Git hooks installed
12:48:19 PM: Done in 17.60s.
12:48:19 PM: npm packages installed using Yarn
12:48:19 PM: Started restoring cached go cache
12:48:19 PM: Finished restoring cached go cache
12:48:19 PM: go version go1.19.4 linux/amd64
12:48:20 PM: Detected 1 framework(s)
12:48:20 PM: "next" at version "13.1.1"
12:48:20 PM: Installing missing commands
12:48:20 PM: Verify run directory
12:48:20 PM: Section completed: initializing
12:48:21 PM: ​
12:48:21 PM:   Netlify Build                                                 
12:48:21 PM: ────────────────────────────────────────────────────────────────
12:48:21 PM: ​
12:48:21 PM: ❯ Version
12:48:21 PM:   @netlify/build 29.4.1
12:48:21 PM: ​
12:48:21 PM: ❯ Flags
12:48:21 PM:   baseRelDir: true
12:48:21 PM:   buildId: 63bff354dd116a0009345413
12:48:21 PM:   deployId: 63bff354dd116a0009345415
12:48:21 PM: ​
12:48:21 PM: ❯ Current directory
12:48:21 PM:   /opt/build/repo
12:48:21 PM: ​
12:48:21 PM: ❯ Config file
12:48:21 PM:   /opt/build/repo/netlify.toml
12:48:21 PM: ​
12:48:21 PM: ❯ Context
12:48:21 PM:   deploy-preview
12:48:21 PM: ​
12:48:21 PM: ❯ Using Next.js Runtime - v4.29.4
12:48:21 PM: ​
12:48:21 PM: ❯ Loading plugins
12:48:21 PM:    - netlify-plugin-cypress@2.2.0 from netlify.toml
12:48:23 PM: ​
12:48:23 PM:   1. @netlify/plugin-nextjs (onPreBuild event)                  
12:48:23 PM: ────────────────────────────────────────────────────────────────
12:48:23 PM: ​
12:48:23 PM: Next.js cache restored.
12:48:23 PM: Netlify configuration property "build.environment.NEXT_PRIVATE_TARGET" value changed.
12:48:23 PM: ​
12:48:23 PM: (@netlify/plugin-nextjs onPreBuild completed in 123ms)
12:48:23 PM: ​
12:48:23 PM:   2. netlify-plugin-cypress (onPreBuild event)                  
12:48:23 PM: ────────────────────────────────────────────────────────────────
12:48:23 PM: ​
12:48:24 PM: [STARTED] Task without title.
12:48:25 PM: [SUCCESS] Task without title.
12:48:26 PM: [1845:0112/114826.349741:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
12:48:26 PM: Displaying Cypress info...
12:48:26 PM: Detected no known browsers installed
12:48:26 PM: Proxy Settings: none detected
12:48:26 PM: Environment Variables:
12:48:26 PM: CYPRESS_RECORD_KEY: <redacted>
12:48:26 PM: CYPRESS_CACHE_FOLDER: ./node_modules/CypressBinary
12:48:26 PM: CYPRESS_PROJECT_ID: 5uy936
12:48:26 PM: Application Data: /opt/buildhome/.config/cypress/cy/development
12:48:26 PM: Browser Profiles: /opt/buildhome/.config/cypress/cy/development/browsers
12:48:26 PM: Binary Caches: /opt/build/repo/node_modules/CypressBinary
12:48:26 PM: Cypress Version: 12.1.0 (stable)
12:48:26 PM: System Platform: linux (Ubuntu - 20.04)
12:48:26 PM: System Memory: 66.4 GB free 55 GB
12:48:26 PM: ​
12:48:26 PM: (netlify-plugin-cypress onPreBuild completed in 3s)
12:48:26 PM: ​
12:48:26 PM:   3. build.command from netlify.toml                            
12:48:26 PM: ────────────────────────────────────────────────────────────────
12:48:26 PM: ​
12:48:26 PM: $ yarn build && yarn build-cypress
12:48:26 PM: yarn run v1.22.19
12:48:26 PM: $ next build
12:48:27 PM: info  - Linting and checking validity of types...
12:48:32 PM: info  - Creating an optimized production build...
12:48:33 PM: info  - Disabled SWC as replacement for Babel because of custom Babel configuration ".babelrc" https://nextjs.org/docs/messages/swc-disabled
12:48:33 PM: info  - Using external babel configuration from /opt/build/repo/.babelrc
12:48:53 PM: Warning: For production Image Optimization with Next.js, the optional 'sharp' package is strongly recommended. Run 'yarn add sharp', and Next.js will use it automatically for Image Optimization.
12:48:53 PM: Read more: https://nextjs.org/docs/messages/sharp-missing-in-production
12:48:57 PM: info  - Compiled successfully
12:48:57 PM: info  - Collecting page data...
12:49:03 PM: info  - Generating static pages (0/5)
12:49:03 PM: info  - Generating static pages (1/5)
12:49:04 PM: Warning: data for page "/404" is 1.04 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
12:49:04 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
12:49:04 PM: Warning: data for page "/dashboard" is 1.04 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
12:49:04 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
12:49:04 PM: Warning: data for page "/admin" is 1.04 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
12:49:04 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
12:49:04 PM: Warning: data for page "/map" is 1.04 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
12:49:04 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
12:49:04 PM: info  - Generating static pages (2/5)
12:49:04 PM: info  - Generating static pages (3/5)
12:49:04 PM: info  - Generating static pages (5/5)
12:49:05 PM: info  - Finalizing page optimization...
12:49:05 PM: Route (pages)                              Size     First Load JS
12:49:05 PM: ┌ ○ /                                      1.23 kB         203 kB
12:49:05 PM: ├   /_app                                  0 B             188 kB
12:49:05 PM: ├ ○ /404 (1602 ms)                         1.58 kB         241 kB
12:49:05 PM: ├ ● /admin (1591 ms)                       20 kB           341 kB
12:49:05 PM: ├   └ css/b207193786e58293.css             264 B
12:49:05 PM: ├ λ /api/auth/[...nextauth]                0 B             188 kB
12:49:05 PM: ├ λ /api/exit-preview                      0 B             188 kB
12:49:05 PM: ├ λ /api/preview                           0 B             188 kB
12:49:05 PM: ├ ● /dashboard (1590 ms)                   145 kB          466 kB
12:49:05 PM: └ ● /map (1574 ms)                         2.57 kB         248 kB
12:49:05 PM: + First Load JS shared by all              202 kB
12:49:05 PM:   ├ chunks/framework-c95758f1705ef104.js   67 kB
12:49:05 PM:   ├ chunks/main-5b28951e25714ee1.js        31.7 kB
12:49:05 PM:   ├ chunks/pages/_app-617e8e9eb1960da6.js  87.3 kB
12:49:05 PM:   ├ chunks/webpack-7a2c80d6609f1ff5.js     2.44 kB
12:49:05 PM:   └ css/872274ee0bb4785c.css               13.4 kB
12:49:05 PM: λ  (Server)  server-side renders at runtime (uses getInitialProps or getServerSideProps)
12:49:05 PM: ○  (Static)  automatically rendered as static HTML (uses no initial props)
12:49:05 PM: ●  (SSG)     automatically generated as static HTML + JSON (uses getStaticProps)
12:49:05 PM: Done in 38.64s.
12:49:05 PM: yarn run v1.22.19
12:49:05 PM: $ yarn --cwd ./cypress install
12:49:05 PM: [1/4] Resolving packages...
12:49:05 PM: [2/4] Fetching packages...
12:49:12 PM: [3/4] Linking dependencies...
12:49:13 PM: [4/4] Building fresh packages...
12:49:21 PM: Done in 15.63s.
12:49:21 PM: ​
12:49:21 PM: (build.command completed in 54.6s)
12:49:21 PM: ​
12:49:21 PM:   4. @netlify/plugin-nextjs (onBuild event)                     
12:49:21 PM: ────────────────────────────────────────────────────────────────
12:49:21 PM: ​
12:49:21 PM: NextAuth package detected, setting NEXTAUTH_URL environment variable to https://deploy-preview-217--ins-dashboard-dev.netlify.app
12:49:21 PM: Patching /opt/build/repo/node_modules/next/dist/server/base-server.js
12:49:21 PM: Done
12:49:21 PM: Patching /opt/build/repo/node_modules/next/dist/server/next-server.js
12:49:21 PM: Done
12:49:21 PM: Moving static page files to serve from CDN...
12:49:21 PM: Moved 7 files
12:49:21 PM: Using Netlify Edge Functions for image format detection. Set env var "NEXT_DISABLE_EDGE_IMAGES=true" to disable.
12:49:21 PM: Netlify configuration property "redirects" value changed to [
12:49:21 PM:   { from: '/_next/static/*', to: '/static/:splat', status: 200 },
12:49:21 PM:   {
12:49:21 PM:     from: '/_next/image*',
12:49:21 PM:     query: { url: ':url', w: ':width', q: ':quality' },
12:49:21 PM:     to: '/_ipx/w_:width,q_:quality/:url',
12:49:21 PM:     status: 301
12:49:21 PM:   },
12:49:21 PM:   { from: '/_ipx/*', to: '/.netlify/builders/_ipx', status: 200 },
12:49:21 PM:   { from: '/cache/*', to: '/404.html', status: 404, force: true },
12:49:21 PM:   { from: '/server/*', to: '/404.html', status: 404, force: true },
12:49:21 PM:   { from: '/serverless/*', to: '/404.html', status: 404, force: true },
12:49:21 PM:   { from: '/trace', to: '/404.html', status: 404, force: true },
12:49:21 PM:   { from: '/traces', to: '/404.html', status: 404, force: true },
12:49:21 PM:   {
12:49:21 PM:     from: '/routes-manifest.json',
12:49:21 PM:     to: '/404.html',
12:49:21 PM:     status: 404,
12:49:21 PM:     force: true
12:49:21 PM:   },
12:49:21 PM:   ... a lot more items //deleted by reporter of this issue
12:49:21 PM: ].
12:49:21 PM: ​
12:49:21 PM: (@netlify/plugin-nextjs onBuild completed in 223ms)
12:49:21 PM: ​
12:49:21 PM:   5. Functions bundling                                         
12:49:21 PM: ────────────────────────────────────────────────────────────────
12:49:21 PM: ​
12:49:21 PM: Packaging Functions from .netlify/functions-internal directory:
12:49:21 PM:  - ___netlify-handler/___netlify-handler.js
12:49:21 PM:  - ___netlify-odb-handler/___netlify-odb-handler.js
12:49:21 PM:  - _ipx/_ipx.js
12:49:21 PM: ​
12:49:21 PM: Packaging Functions from netlify/functions directory:
12:49:21 PM:  - countries.ts
12:49:21 PM:  - global_report_reach.ts
12:49:21 PM:  - global_report_usage.ts
12:49:21 PM:  - ins_api.ts
12:49:21 PM:  - jwt.ts
12:49:21 PM:  - school_report.ts
12:49:21 PM:  - types.ts
12:49:21 PM: ​
12:49:36 PM: ​
12:49:36 PM: (Functions bundling completed in 15.5s)
12:49:36 PM: ​
12:49:36 PM:   6. Edge Functions bundling                                    
12:49:36 PM: ────────────────────────────────────────────────────────────────
12:49:36 PM: ​
12:49:36 PM: Packaging Edge Functions from .netlify/edge-functions directory:
12:49:36 PM:  - ipx
12:49:38 PM: ​
12:49:38 PM: (Edge Functions bundling completed in 1.2s)
12:49:38 PM: ​
12:49:38 PM:   7. @netlify/plugin-nextjs (onPostBuild event)                 
12:49:38 PM: ────────────────────────────────────────────────────────────────
12:49:38 PM: ​
12:49:38 PM: Next.js cache saved.
12:49:38 PM: Netlify configuration property "headers" value changed to [
12:49:38 PM:   {
12:49:38 PM:     for: '/*',
12:49:38 PM:     values: {
12:49:38 PM:       'Strict-Transport-Security': 'max-age=31536000; includeSubDomains',
12:49:38 PM:       'X-Frame-Options': 'SAMEORIGIN',
12:49:38 PM:       'X-XSS-Protection': '1; mode=block',
12:49:38 PM:       'X-Content-Type-Options': 'nosniff',
12:49:38 PM:       'Referrer-Policy': 'no-referrer-when-downgrade'
12:49:38 PM:     }
12:49:38 PM:   }
12:49:38 PM: ].
12:49:38 PM: ​
12:49:38 PM: (@netlify/plugin-nextjs onPostBuild completed in 238ms)
12:49:38 PM: ​
12:49:38 PM:   8. netlify-plugin-cypress (onPostBuild event)                 
12:49:38 PM: ────────────────────────────────────────────────────────────────
12:49:38 PM: ​
12:49:38 PM: waiting on "http://localhost:8888" with timeout of 60 seconds
12:49:40 PM: ◈ Netlify Dev ◈
12:49:40 PM: ◈ Ignored netlify.toml file env var: CYPRESS_CACHE_FOLDER (defined in process)
12:49:40 PM: ◈ Ignored netlify.toml file env var: TERM (defined in process)
12:49:40 PM: ◈ Ignored general context env var: DEPLOY_ID (defined in process)
12:49:40 PM: ◈ Ignored general context env var: BUILD_ID (defined in process)
12:49:40 PM: ◈ Ignored general context env var: DEPLOY_PRIME_URL (defined in process)
12:49:40 PM: ◈ Ignored general context env var: DEPLOY_URL (defined in process)
12:49:40 PM: ◈ Ignored general context env var: CONTEXT (defined in process)
12:49:40 PM: ◈ Ignored general context env var: BRANCH (defined in process)
12:49:40 PM: ◈ Ignored general context env var: HEAD (defined in process)
12:49:40 PM: ◈ Ignored general context env var: COMMIT_REF (defined in process)
12:49:40 PM: ◈ Ignored general context env var: CACHED_COMMIT_REF (defined in process)
12:49:40 PM: ◈ Ignored general context env var: PULL_REQUEST (defined in process)
12:49:40 PM: ◈ Ignored general context env var: LANG (defined in process)
12:49:40 PM: ◈ Ignored general context env var: LANGUAGE (defined in process)
12:49:40 PM: ◈ Ignored general context env var: LC_ALL (defined in process)
12:49:40 PM: ◈ Ignored general context env var: GATSBY_TELEMETRY_DISABLED (defined in process)
12:49:40 PM: ◈ Ignored general context env var: NEXT_TELEMETRY_DISABLED (defined in process)
12:49:40 PM: ◈ Loaded function countries.
12:49:40 PM: ◈ Loaded function global_report_reach.
12:49:40 PM: ◈ Loaded function global_report_usage.
12:49:40 PM: ◈ Loaded function ins_api.
12:49:40 PM: ◈ Loaded function jwt.
12:49:40 PM: ◈ Loaded function school_report.
12:49:40 PM: ◈ Loaded function types.
12:49:40 PM: ◈ Loaded function ___netlify-handler.
12:49:40 PM: ◈ Loaded function ___netlify-odb-handler.
12:49:40 PM: ◈ Loaded function _ipx.
12:49:40 PM: ◈ Functions server is listening on 39949
12:49:40 PM: ◈ Setting up local development server
12:49:40 PM: ​
12:49:40 PM:   Netlify Build                                                 
12:49:40 PM: ────────────────────────────────────────────────────────────────
12:49:40 PM: ​
12:49:40 PM: ❯ Version
12:49:40 PM:   @netlify/build 29.4.4
12:49:40 PM: ​
12:49:40 PM: ❯ Flags
12:49:40 PM:   {}
12:49:40 PM: ​
12:49:40 PM: ❯ Current directory
12:49:40 PM:   /opt/build/repo
12:49:40 PM: ​
12:49:40 PM: ❯ Config file
12:49:40 PM:   /opt/build/repo/netlify.toml
12:49:40 PM: ​
12:49:40 PM: ❯ Context
12:49:40 PM:   dev
12:49:40 PM: ​
12:49:40 PM: ❯ Using Next.js Runtime - v4.29.4
12:49:40 PM: ​
12:49:40 PM: ❯ Loading plugins
12:49:40 PM:    - netlify-plugin-cypress@2.2.0 from netlify.toml
12:49:42 PM: ​
12:49:42 PM:   1. @netlify/plugin-nextjs (onPreDev event)                    
12:49:42 PM: ────────────────────────────────────────────────────────────────
12:49:42 PM: ​
12:49:42 PM: Patching /opt/build/repo/node_modules/next/dist/server/base-server.js
12:49:42 PM: Done
12:49:42 PM: Patching /opt/build/repo/node_modules/next/dist/server/next-server.js
12:49:42 PM: Done
12:49:42 PM: ​
12:49:42 PM: (@netlify/plugin-nextjs onPreDev completed in 29ms)
12:49:42 PM: ​
12:49:42 PM:   2. Run command for local development                          
12:49:42 PM: ────────────────────────────────────────────────────────────────
12:49:42 PM: ​
12:49:42 PM: ◈ Starting Netlify Dev with Next.js
12:49:42 PM: - Waiting for framework port 3000. This can be configured using the 'targetPort' property in the netlify.toml
12:49:42 PM: yarn run v1.22.19
12:49:42 PM: $ NODE_OPTIONS='--inspect' next dev
12:49:42 PM: Debugger listening on ws://127.0.0.1:9229/09d30180-3830-4fce-a229-fa8f0a2cb59a
12:49:42 PM: For help, see: https://nodejs.org/en/docs/inspector
12:49:42 PM: Debugger listening on ws://127.0.0.1:9230/4fb35b10-0f9c-4b72-b180-43d8cffc15ac
12:49:42 PM: For help, see: https://nodejs.org/en/docs/inspector
12:49:42 PM: ready - started server on 0.0.0.0:3000, url: http://localhost:3000
12:49:43 PM: info  - Disabled SWC as replacement for Babel because of custom Babel configuration ".babelrc" https://nextjs.org/docs/messages/swc-disabled
12:49:43 PM: ✔ Waiting for framework port 3000. This can be configured using the 'targetPort' property in the netlify.toml
12:49:43 PM: ​
12:49:43 PM: (dev.command completed in 1s)
12:49:43 PM: ---------------------------
12:49:43 PM: Error: Unable to open browser automatically: Running inside a docker container
12:49:43 PM: Please open your browser and open the URL below:
12:49:43 PM: http://localhost:8888
12:49:43 PM: ---------------------------
12:49:43 PM: 
12:49:43 PM:    ┌─────────────────────────────────────────────────┐
12:49:43 PM:    │                                                 │
12:49:43 PM:    │   ◈ Server now ready on http://localhost:8888   │
12:49:43 PM:    │                                                 │
12:49:43 PM:    └─────────────────────────────────────────────────┘
12:49:43 PM: 
12:49:43 PM: info  - Using external babel configuration from /opt/build/repo/.babelrc
12:49:44 PM: ◈ Loaded edge function next-dev
12:49:50 PM: event - compiled client and server successfully in 6.7s (1170 modules)
12:49:50 PM: wait  - compiling / (client and server)...
12:49:51 PM: event - compiled client and server successfully in 572 ms (1189 modules)
12:49:52 PM: [3132:0112/114952.009395:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
12:49:54 PM: ====================================================================================================
12:49:54 PM:   (Run Starting)
12:49:54 PM:   ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
12:49:54 PM:   │ Cypress:        12.1.0                                                                         │
12:49:54 PM:   │ Browser:        Custom Chromium 90 (headless)                                                  │
12:49:54 PM:   │ Node Version:   v16.19.0 (/opt/buildhome/node-deps/.nvm/versions/node/v16.19.0/bin/node)       │
12:49:54 PM:   │                 [39m                                                                           │
12:49:54 PM:   │ Specs:          1 found (smoke_test.feature)                                                   │
12:49:54 PM:   │ Searched:       cypress/cypress/e2e/*.feature                                                  │  │ Params:         Tag: deploy-preview, Group: postBuild, Parallel: false                         │  │ Run URL:        https://cloud.cypress.io/projects/5uy936/runs/15                               │  └────────────────────────────────────────────────────────────────────────────────────────────────┘
12:49:54 PM: ────────────────────────────────────────────────────────────────────────────────────────────────────
12:49:54 PM:   Running:  smoke_test.feature                                                              (1 of 1)
12:49:54 PM:   Estimated: 12 seconds
12:49:55 PM: 
12:49:55 PM:   Smoke tests
12:49:55 PM: wait  - compiling /dashboard (client and server)...
12:50:06 PM: event - compiled client and server successfully in 10.2s (1872 modules)
12:50:06 PM: Warning: data for page "/dashboard" is 1.04 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
12:50:06 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
12:50:08 PM: wait  - compiling /api/auth/[...nextauth] (client and server)...
12:50:09 PM: event - compiled successfully in 304 ms (289 modules)
12:50:09 PM:     ✓ Check page content (13073ms)
12:50:09 PM:   1 passing (13s)
12:50:10 PM:   (Results)
12:50:10 PM:   ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
12:50:10 PM:   │ Tests:        1                                                                                │
12:50:10 PM:   │ Passing:      1                                                                                │
12:50:10 PM:   │ Failing:      0                                                                                │
12:50:10 PM:   │ Pending:      0                                                                                │
12:50:10 PM:   │ Skipped:      0                                                                                │
12:50:10 PM:   │ Screenshots:  0                                                                                │
12:50:10 PM:   │ Video:        true                                                                             │
12:50:10 PM:   │ Duration:     13 seconds                                                                       │
12:50:10 PM:   │ Estimated:    12 seconds                                                                       │
12:50:10 PM:   │ Spec Ran:     smoke_test.feature                                                               │
12:50:10 PM:   └────────────────────────────────────────────────────────────────────────────────────────────────┘
12:50:10 PM:   (Video)
12:50:10 PM:   -  Started processing:  Compressing to 32 CRF
12:50:11 PM:   -  Finished processing: /opt/build/repo/cypress/videos/smoke_test.feature.mp4           (1 second)
12:50:11 PM:   (Uploading Results)
12:50:11 PM:   - Done Uploading (1/1) /opt/build/repo/cypress/videos/smoke_test.feature.mp4
12:50:12 PM: ====================================================================================================
12:50:12 PM:   (Run Finished)
12:50:12 PM:        Spec                                              Tests  Passing  Failing  Pending  Skipped  
12:50:12 PM:   ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
12:50:12 PM:   │ ✔  smoke_test.feature                       00:13        1        1        -        -        - │
12:50:12 PM:   └────────────────────────────────────────────────────────────────────────────────────────────────┘
12:50:12 PM:     ✔  All specs passed!                        00:13        1        1        -        -        -  
12:50:12 PM: ───────────────────────────────────────────────────────────────────────────────────────────────────────
12:50:12 PM:   Recorded Run: https://cloud.cypress.io/projects/5uy936/runs/15
12:50:12 PM: stopping server process opened with: netlify dev
12:50:12 PM: ​
12:50:12 PM: (netlify-plugin-cypress onPostBuild completed in 33.6s)
12:50:12 PM: ​
12:50:12 PM:   9. Deploy site                                                
12:50:12 PM: ────────────────────────────────────────────────────────────────
12:50:12 PM: ​
12:50:12 PM: Starting to deploy site from '.next'
12:50:12 PM: Creating deploy tree asynchronously
12:50:15 PM: 19 new files to upload
12:50:15 PM: 10 new functions to upload
12:50:24 PM: Section completed: deploying
12:50:25 PM: Starting post processing
12:50:25 PM: Post processing - HTML
12:50:25 PM: Post processing - header rules
12:50:25 PM: Post processing - redirect rules
12:50:25 PM: Post processing done
12:50:25 PM: Section completed: postprocessing
12:50:26 PM: Site is live ✨
12:50:26 PM: Finished waiting for live deploy in 2.072830286s
12:50:26 PM: Site deploy was successfully initiated
12:50:26 PM: ​
12:50:26 PM: (Deploy site completed in 14.7s)
12:50:26 PM: ​
12:50:26 PM:   10. netlify-plugin-cypress (onSuccess event)                  
12:50:26 PM: ────────────────────────────────────────────────────────────────
12:50:26 PM: ​
12:50:26 PM: ◈ Reloading headers files from [ 'netlify.toml' ]
12:50:26 PM: ◈ Reloading redirect rules from [ 'netlify.toml' ]
12:50:26 PM: ◈ Reloading headers files from [ 'netlify.toml' ]
12:50:26 PM: ◈ Reloading redirect rules from [ 'netlify.toml' ]
12:50:26 PM: ​
12:50:26 PM: (netlify-plugin-cypress onSuccess completed in 6ms)
12:50:26 PM: ​
12:50:26 PM: The build completed successfully, but the following processes were still running:
12:50:26 PM: ​
12:50:26 PM:    - node /opt/build/repo/node_modules/.bin/netlify dev
12:50:26 PM:    - /opt/build/repo/node_modules/@netlify/esbuild-linux-64/bin/esbuild --service=0.14.39 --ping
12:50:26 PM:    - esbuild --bundle --outdir=/opt/build/repo/.netlify --format=esm --target=esnext --watch /opt/build/repo/middleware.ts
12:50:26 PM:    - esbuild --bundle --outdir=/opt/build/repo/.netlify --format=esm --target=esnext --watch /opt/build/repo/middleware.js
12:50:26 PM:    - node /opt/buildhome/.nvm/versions/node/v18.12.1/bin/yarn dev
12:50:26 PM:    - /bin/sh -c NODE_OPTIONS='--inspect' next dev
12:50:26 PM:    - deno run --allow-all --unstable --import-map=data:application/json;base64,eyJpbXBvcnRzIjp7Im5ldGxpZnk6ZWRnZSI6Imh0dHBzOi8vZWRnZS5uZXRsaWZ5LmNvbS92MS9pbmRleC50cyJ9LCJzY29wZXMiOnt9fQ== --no-config --quiet /tmp/tmp-2800-0VZZWDhsufcJ/dev.js --port 46293
12:50:26 PM: ​
12:50:26 PM: These processes have been terminated. In case this creates a problem for your build, refer to this article for details about why this process termination happens and how to fix it.
12:50:26 PM: ​
12:50:26 PM:   Netlify Build Complete                                        
12:50:26 PM: ────────────────────────────────────────────────────────────────
12:50:26 PM: ​
12:50:26 PM: (Netlify Build completed in 2m 5.3s)
12:50:27 PM: Caching artifacts
12:50:27 PM: Started saving node modules
12:50:27 PM: Finished saving node modules
12:50:27 PM: Started saving build plugins
12:50:27 PM: Finished saving build plugins
12:50:27 PM: Started saving yarn cache
12:50:31 PM: Finished saving yarn cache
12:50:31 PM: Started saving pip cache
12:50:31 PM: Finished saving pip cache
12:50:31 PM: Started saving emacs cask dependencies
12:50:31 PM: Finished saving emacs cask dependencies
12:50:31 PM: Started saving maven dependencies
12:50:31 PM: Finished saving maven dependencies
12:50:31 PM: Started saving boot dependencies
12:50:31 PM: Finished saving boot dependencies
12:50:31 PM: Started saving rust rustup cache
12:50:31 PM: Finished saving rust rustup cache
12:50:31 PM: Started saving go dependencies
12:50:31 PM: Finished saving go dependencies
12:50:31 PM: Build script success
12:50:31 PM: Section completed: building
12:50:37 PM: Uploading Cache of size 1.4GB
12:50:46 PM: Section completed: cleanup
12:50:46 PM: Finished processing build request in 3m12.475846704s
2:18:12 PM: [ERROR] Deploy logs are currently unavailable. We are working on resolving the issue.

Hi @Monika :wave:t6: ,

Welcome to the forums and thank you for reaching out! Are you still seeing the deploy preview without error message?

Hi @SamO,
Thank you.

The problem still exists. In the logs we have ‘Site is live’ and 'The build completed successfully, but when we open the deploy preview we can see ‘Internal Server Error’.

The project without changes to run Cypress tests and netlify.toml file is deploying correctly.

The deploy preview is showing an ‘Internal Server Error’ when we run tests for the ‘PostBuild’ event (for the ‘PostDeploy’ event deploy preview is working correctly). We think it can be a problem with the configuration in netlify.toml, especially we are suspicious about the ‘netlify dev’ command.

Did you check your functions console: Netlify App?

The error looks explanatory to me:

The problem is password protection on the site.