Mmmhh logique !! Quel noob !! Merci @VonOx, teste ca ^^
Alors en effet y a eu grosse évolution ^^ mais plante à la fin pour le front je pense ^^
⠹ 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
Je vois ça :
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
et ça :
ERROR: "cypress:open" exited with 1.
Well, I’d kind of given up on it for the moment, still not managing to get it working.
It just goes to show that taking things up with a clear head is useful because it finally works!! So a big thank you to you @VonOx and @AlexTrovato for your explanations and your patience that led to this.
For your information, the only things I had left to do were:
- My
DISPLAYvariable in .bashrc is written like this as in the doc you gave me @VonOx:export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}'):0.0.
However, in my /etc/resolv.conf file mynameserver=10.1.0.254, i.e. the default DNS address. - I ultimately have to redefine it before launching cypress as follows:
export DISPLAY=10.1.0.101:0.0where 10.1.0.101 is the IP address of my WiFi network card attached to WSL. - And then by running the command you indicated to me at the root of Gladys
npm run cypress, it works perfectly and indeed launches the VcXsrv window.
Thanks again