Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable lighthouse plugin and run failed #116

Open
altmangood opened this issue Jan 1, 2025 · 2 comments
Open

Enable lighthouse plugin and run failed #116

altmangood opened this issue Jan 1, 2025 · 2 comments

Comments

@altmangood
Copy link

altmangood commented Jan 1, 2025

error info

Job failed:Command failed with ENOENT: sitespeed.io --config /tmp/default/1793d987-095f-4814-9009-54cc2f96a434/default-1793d987-095f-4814-9009-54cc2f96a434-config.json --storeResult /tmp/default/1793d987-095f-4814-9009-54cc2f96a434/default-1793d987-095f-4814-9009-54cc2f96a434-result.json --disableAPI true 'https://www.example.com' spawn sitespeed.io ENOENT

image

docker config

runner default.yaml (just show updated section)

docker:
  container: "sitespeedio/sitespeed.io:35.7.5-plus1"
  extraparameters: "--cap-add=NET_ADMIN"
  #baselinedir: "$(pwd)"

server default.yaml (just show updated section)

## Configure the GUI
html:
  css:
    override:
  logo:
    path: "/img/logo.svg"
    width: 300
    alt: "sitespeed.io logo"
  logoHeader:
    path: "/img/logoHeader.svg"
    width: 112
    height: 18
    alt: "sitespeed.io logo"
  ## Setup a folder that will be mapped to /extras - use this of you want to change 
  ## the current look and feel
  extras:
    path:
  # You can choose to either show the log from sitespeed.io or a random AI generated image.
  showRandomAIImage: false
  # Show the Lighthouse box
  useLighthouse: true

compose.app.yaml (just modify volumes, because need mapping local yaml config to docker)

services:
  sitespeed.io-server:
    image: sitespeedio/server:${SITESPEED_IO_SERVER_VERSION}
    environment:
      redis_host: keydb
      redis_port: 6379
      redis_password: ${KEYDB_PASSWORD}
      database_user: ${POSTGRES_USER}
      database_server: postgresql
      database_name: sitespeedio
      database_password: ${POSTGRES_PASSWORD}
      database_port: 5432
      validTestDomains: ${VALID_TEST_DOMAINS}
    ports:
      - "3000:3000"
    networks:
      - skynet
    depends_on:
      - keydb
      - postgresql
      - minio
    volumes:
      - ./config/server/default.yaml:/usr/src/app/config/default.yaml
  sitespeed.io-testrunner:
    image: sitespeedio/testrunner:${SITESPEED_IO_TESTRUNNER_VERSION}
    environment:
      redis_host: keydb
      redis_port: 6379
      redis_password: ${KEYDB_PASSWORD}
      location_name: ${LOCATION_NAME}
      docker_container: ${SITESPEED_IO_CONTAINER}
      docker_extraparameters: '--cap-add=NET_ADMIN --network=skynet'
      sitespeed.io_s3_endpoint: "http://minio:9000" 
      sitespeed.io_s3_bucketname: 'sitespeedio'
      sitespeed.io_s3_key: ${MINIO_USER}
      sitespeed.io_s3_secret:  ${MINIO_PASSWORD}
      sitespeed.io_s3_region: "motown"
      sitespeed.io_s3_options_forcePathStyle: true
      sitespeed.io_s3_removeLocalResult: true
      sitespeed.io_resultBaseURL: ${RESULT_BASE_URL}
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /tmp:/tmp
      - ./config/runner/default.yaml:/usr/src/app/config/default.yaml
    cap_add:
      - NET_ADMIN
    depends_on:
      - keydb
      - minio
      - sitespeed.io-server
    networks:
      - skynet

@altmangood
Copy link
Author

the log in docker compose CLI

sitespeed.io-server-1      | [2025-01-01 19:12:50] INFO: [sitespeedio.server] Adding test with id a4e66295-b81e-42d0-b378-4518cdf42d84 in queue default
sitespeed.io-server-1      | [2025-01-01 19:12:50] INFO: [sitespeedio.server] New URL www.example.com with id a4e66295-b81e-42d0-b378-4518cdf42d84
sitespeed.io-server-1      | [2025-01-01 19:12:50] INFO: [root] Update a4e66295-b81e-42d0-b378-4518cdf42d84 with active
sitespeed.io-testrunner-1  | [2025-01-01 19:12:50] INFO: [sitespeedio.testrunner.a4e66295-b81e-42d0-b378-4518cdf42d84] Start job
sitespeed.io-testrunner-1  | [2025-01-01 19:12:50] ERROR: [sitespeedio.testrunner.a4e66295-b81e-42d0-b378-4518cdf42d84] Could not run sitespeed.io ExecaError: Command failed with ENOENT: sitespeed.io --config /tmp/default/a4e66295-b81e-42d0-b378-4518cdf42d84/default-a4e66295-b81e-42d0-b378-4518cdf42d84-config.json --storeResult /tmp/default/a4e66295-b81e-42d0-b378-4518cdf42d84/default-a4e66295-b81e-42d0-b378-4518cdf42d84-result.json --disableAPI true www.example.com
sitespeed.io-testrunner-1  | spawn sitespeed.io ENOENT
sitespeed.io-testrunner-1  | spawn sitespeed.io ENOENT
sitespeed.io-testrunner-1  |     at getFinalError (file:///usr/src/app/node_modules/execa/lib/return/final-error.js:6:9)
sitespeed.io-server-1      | [2025-01-01 19:12:50] INFO: [root] Update a4e66295-b81e-42d0-b378-4518cdf42d84 with failed
sitespeed.io-testrunner-1  |     at makeError (file:///usr/src/app/node_modules/execa/lib/return/result.js:108:16)
sitespeed.io-testrunner-1  |     at getAsyncResult (file:///usr/src/app/node_modules/execa/lib/methods/main-async.js:167:4)
sitespeed.io-testrunner-1  |     at handlePromise (file:///usr/src/app/node_modules/execa/lib/methods/main-async.js:150:17)
sitespeed.io-testrunner-1  |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
sitespeed.io-testrunner-1  |     at async runTest (file:///usr/src/app/src/testrunners/testrunner.js:166:5)
sitespeed.io-testrunner-1  |     at async Queue.runJob (file:///usr/src/app/src/testrunners/testrunner.js:35:24)
sitespeed.io-testrunner-1  | [2025-01-01 19:12:50] ERROR: [sitespeedio.testrunner.a4e66295-b81e-42d0-b378-4518cdf42d84] Job execution failed: Command failed with ENOENT: sitespeed.io --config /tmp/default/a4e66295-b81e-42d0-b378-4518cdf42d84/default-a4e66295-b81e-42d0-b378-4518cdf42d84-config.json --storeResult /tmp/default/a4e66295-b81e-42d0-b378-4518cdf42d84/default-a4e66295-b81e-42d0-b378-4518cdf42d84-result.json --disableAPI true www.example.com
sitespeed.io-testrunner-1  | spawn sitespeed.io ENOENT

@soulgalore
Copy link
Member

Hi @altmangood thanks for creating the issue, I'll have a look tonight.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants