mkitzmann / awwesome

Enhanced user interface for Awesome Selfhosted
https://awweso.me
BSD 3-Clause "New" or "Revised" License
263 stars 14 forks source link

[Error] Awwesome container throws error - shows only standard nginx welcome page #11

Closed GFNiko closed 10 months ago

GFNiko commented 1 year ago

Error Message:

transforming...

src/lib/fetch-github.ts (1:9) "GithubQueryResult" is not exported by "src/lib/types/types.ts", imported by "src/lib/fetch-github.ts".

src/lib/fetch-github.ts (1:28) "GithubRepo" is not exported by "src/lib/types/types.ts", imported by "src/lib/fetch-github.ts".

✓ 99 modules transformed.

rendering chunks...

creating entries function

node:internal/event_target:1054

  process.nextTick(() => { throw err; });

                           ^

TypeError [Error]: fetch failed

    at fetch (/usr/src/app/node_modules/undici/index.js:109:13)

    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

    at async combineSources (file:///usr/src/app/.svelte-kit/output/server/entries/pages/_...category_/_page.server.ts.js:188:22)

    at async getAllCategories (file:///usr/src/app/.svelte-kit/output/server/entries/pages/_...category_/_page.server.ts.js:205:20)

    at async entries (file:///usr/src/app/.svelte-kit/output/server/entries/pages/_...category_/_page.server.ts.js:258:27)

    at async analyse (file:///usr/src/app/node_modules/@sveltejs/kit/src/core/postbuild/analyse.js:148:17)

    at async MessagePort.<anonymous> (file:///usr/src/app/node_modules/@sveltejs/kit/src/utils/fork.js:22:16)

Emitted 'error' event on Worker instance at:

    at [kOnErrorMessage] (node:internal/worker:326:10)

    at [kOnMessage] (node:internal/worker:337:37)

    at MessagePort.<anonymous> (node:internal/worker:232:57)

    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:778:20)

.env: TOKEN_GITHUB={{ token from github.com }}

docker-compose.yml

version: '3'
services:
  ofelia:
    image: mcuadros/ofelia:latest
    container_name: awwesome_ofelia
    depends_on:
      - source
    command: daemon --docker
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
    labels:
      ofelia.job-run.awwesome.schedule: "@daily"
      ofelia.job-run.awwesome.container: "awwesome"

  source:
    image: mkitzmann/awwesome
    container_name: awwesome
    env_file:
      - .env
    working_dir: /usr/src/app
    command: sh -c "npm run build && rm -r html/* && cp -r dist/* html && exit"
    volumes:
      - shared_volume:/usr/src/app/html

  web:
    image: nginx
    container_name: awwesome_nginx
    ports: 
      - 7880:80
    volumes:
      - shared_volume:/usr/share/nginx/html:ro

volumes:
  shared_volume:

portainer shows github token as a environment variable: image

Tried to set up the containers with minor differences in docker.-compose file. For example in bdridge mode. didn't change anything

mkitzmann commented 11 months ago

Not sure what the issue is here. It should work like this. Did you use a fine-grained personal access token? If you have used a classic personal access token it might not work.

GFNiko commented 11 months ago

yes grafik but it shows "never used" :( something in between is breaking the connection i guess

whenthelight commented 11 months ago

it can be the same error like in my Setup, i realize that the Docker Image is only for arm64 noch amd64 :-) no Image no Fun. Build this in normal way till the "awwesome" Image exists for my platform. Thanks @dev for work by the way.

mkitzmann commented 11 months ago

Thank you @whenthelight ! I will look into creating a multi-arch image.

mkitzmann commented 10 months ago

I built a multi-archi image supporting amd64 and arm64: https://hub.docker.com/layers/mkitzmann/awwesome/0.7/images/sha256-c1b870e4db902f6ce41996a786368069dc0864e077584350b69c29f3ff4b6ddb?context=repo