DouweM / pixbyt

Pixbyt is a self-hosted Tidbyt app server for advanced apps that aren't supported by the official community app server that you can access through Tidbyt's mobile app.
https://pixbyt.dev
MIT License
93 stars 10 forks source link

App server doesn't display on Tidbyt after docker compose up #17

Closed bboatwright closed 6 months ago

bboatwright commented 6 months ago

I'm trying to test Pixbyt with only hello-world to see if it works with my setup. I think I followed the instructions in the readme correctly, but I'm totally new to Docker.

After running through all the steps and executing docker compose up, it completes successfully but then nothing happens on my Tidbyt. I'm running Docker Desktop on an Intel MacBook Air (maybe not the best idea long-term...) It looks like the Pixbyt container is pulling >100% CPU when it's active and then constantly restarts. Could that be the source of the issue? Is there a better way to allocate my resources?

Reproducing my workflow below:

Bens-MacBook-Air-3:Documents ben$ git clone https://github.com/bboatwright/pixbyt.git
Cloning into 'pixbyt'...
remote: Enumerating objects: 53, done.
remote: Counting objects: 100% (53/53), done.
remote: Compressing objects: 100% (36/36), done.
remote: Total 53 (delta 12), reused 51 (delta 10), pack-reused 0
Receiving objects: 100% (53/53), 98.11 KiB | 1.29 MiB/s, done.
Resolving deltas: 100% (12/12), done.
Bens-MacBook-Air-3:Documents ben$ echo $GIT_TOKEN | docker login ghcr.io -u bboatwright --password-stdin
WARNING! Your password will be stored unencrypted in /Users/ben/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

Login Succeeded
Bens-MacBook-Air-3:Documents ben$ cd pixbyt
Bens-MacBook-Air-3:pixbyt ben$ docker compose build
Bens-MacBook-Air-3:pixbyt ben$ nano .env
Bens-MacBook-Air-3:pixbyt ben$ docker compose up --build -d --pull "always"
[+] Running 39/19
 ✔ pixbyt 22 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]      0B/0B      Pulled                                                                                                  72.3s 
 ✔ meltano-db 14 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]      0B/0B      Pulled                                                                                                      32.4s 
 ✔ airflow-db Pulled                                                                                                                                                 32.4s 

[+] Running 3/4
 ⠙ Network pixbyt_default         Created                                                                                                                             4.1s 
 ✔ Container pixbyt-meltano-db-1  Started                                                                                                                             3.2s 
 ✔ Container pixbyt-airflow-db-1  Started                                                                                                                             3.4s 
 ✔ Container pixbyt               Started                                                                                                                             2.5s 
Bens-MacBook-Air-3:pixbyt ben$ docker images
REPOSITORY                   TAG       IMAGE ID       CREATED             SIZE
ghcr.io/bboatwright/pixbyt   main      e5cab0dc002a   About an hour ago   1.48GB
postgres                     14        5fbd2ea0d85b   6 days ago          422MB
Bens-MacBook-Air-3:pixbyt ben$ docker ps
CONTAINER ID   IMAGE                             COMMAND                  CREATED          STATUS         PORTS                    NAMES
b5729909532a   ghcr.io/bboatwright/pixbyt:main   "meltano invoke airf…"   10 seconds ago   Up 7 seconds                            pixbyt
061d139b82b8   postgres:14                       "docker-entrypoint.s…"   11 seconds ago   Up 8 seconds   0.0.0.0:5434->5432/tcp   pixbyt-airflow-db-1
b3b7bac714e0   postgres:14                       "docker-entrypoint.s…"   11 seconds ago   Up 8 seconds   0.0.0.0:5433->5432/tcp   pixbyt-meltano-db-1
Bens-MacBook-Air-3:pixbyt ben$ 
bboatwright commented 6 months ago

This error had to do with the incompatible airflow-ext dependencies, resolved by #15