Mmmhh lógico !! Qué novato !! Gracias @VonOx, prueba esto ^^
Entonces, efectivamente hubo una gran evolución ^^ pero se bloquea al final para el front, creo ^^
⠹ Verifying Cypress can run /home/terdieu/.cache/Cypress/6.9.1/Cypress
2022-04-13T19:25:53+0200 <info> device.calculateAggregate.js:105 (ChildProcess.<anonymous>) device.calculateAggregate: Finishing processing for interval daily
2022-04-13T19:25:53+0200 <debug> gateway.forwardWebsockets.js:14 (Gateway.forwardWebsockets) Gateway: not connected. Prevent forwarding event.
2022-04-13T19:25:53+0200 <debug> gateway.forwardWebsockets.js:14 (Gateway.forwardWebsockets) Gateway: not connected. Prevent forwarding event.
2022-04-13T19:25:53+0200 <info> device.calculateAggregate.js:38 (DeviceManager.calculateAggregate) Calculating aggregates device feature state for interval monthly
⠇ Verifying Cypress can run /home/terdieu/.cache/Cypress/6.9.1/Cypress
2022-04-13T19:25:54+0200 <info> device.calculateAggregate.js:105 (ChildProcess.<anonymous>) device.calculateAggregate: Finishing processing for interval monthly
⠦ Verifying Cypress can run /home/terdieu/.cache/Cypress/6.9.1/Cypress
⠴ Verifying Cypress can run /home/terdieu/.cache/Cypress/6.9.1/Cypress
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly:
✖ Verifying Cypress can run /home/terdieu/.cache/Cypress/6.9.1/Cypress
→ Cypress Version: 6.9.1
Cypress verification timed out.
This command failed with the following output:
/home/terdieu/.cache/Cypress/6.9.1/Cypress/Cypress --no-sandbox --smoke-test --ping=179
----------
Command timed out after 30000 milliseconds: /home/terdieu/.cache/Cypress/6.9.1/Cypress/Cypress --no-sandbox --smoke-test --ping=179
Timed out
----------
Platform: linux (Ubuntu - 20.04)
Cypress Version: 6.9.1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
Build [============= ] 64% (25.0s) buildingnpm ERR! gladys-front@ cypress:open: `cypress open --config-file cypress/cypress.json`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the gladys-front@ cypress:open script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/terdieu/.npm/_logs/2022-04-13T17_26_16_400Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! gladys@4.8.3 cypress:open: `cd front && npm run cypress:open`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the gladys@4.8.3 cypress:open script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/terdieu/.npm/_logs/2022-04-13T17_26_16_434Z-debug.log
2022-04-13T19:26:16+0200 <info> index.js:25 (shutdown) SIGTERM received.
2022-04-13T19:26:16+0200 <info> index.js:31 (shutdown) Closing database connection.
2022-04-13T19:26:16+0200 <info> index.js:25 (shutdown) SIGTERM received.
2022-04-13T19:26:16+0200 <info> index.js:31 (shutdown) Closing database connection.
ERROR: "cypress:open" exited with 1.
2022-04-13T19:26:16+0200 <info> index.js:35 (shutdown) Database is probably already closed
2022-04-13T19:26:16+0200 <warn> index.js:36 (shutdown) [Error: SQLITE_MISUSE: Database handle is closed] {
errno: 21,
code: 'SQLITE_MISUSE'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! gladys@4.8.3 cypress: `run-p start:cypress cypress:open`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the gladys@4.8.3 cypress script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/terdieu/.npm/_logs/2022-04-13T17_26_16_501Z-debug.log
Veo esto :
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
et esto :
ERROR: "cypress:open" exited with 1.
Bueno, había abandonado un poco el tema por el momento, sin poder resolverlo.
Lo que demuestra que retomar las cosas con la mente despejada es útil, porque finalmente ¡funciona! Así que un gran agradecimiento a vosotros, @VonOx y @AlexTrovato, por vuestras explicaciones y paciencia que han llevado a esto.
Para información, las únicas cosas que me quedaban por hacer:
- Mi variable
DISPLAYen .bashrc está escrita así, como en la documentación que me pasaste @VonOx:export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}'):0.0.
Pero en mi archivo /etc/resolv.conf minameserver=10.1.0.254, es decir, la dirección DNS por defecto. - Finalmente, debo redefinir esta última antes de lanzar cypress de la siguiente manera:
export DISPLAY=10.1.0.101:0.0donde 10.1.0.101 es la dirección IP de mi tarjeta de red wifi asociada a WSL. - Y luego, ejecutando el comando que me indicasteis en la raíz de Gladys
npm run cypress, funciona perfectamente y lanza la ventana VcXsrv.
¡Muchas gracias de nuevo!