plane icon indicating copy to clipboard operation
plane copied to clipboard

GITHUB integration error

Open tolgaulas opened this issue 1 month ago • 1 comments

I followed up the github application setup and entered the values in the .env file, restarted. Now the github configure button appears but clicking does not do anything Below are the silo logs

 1[MISSING_ENV_FILE] missing .env file (/app/.env)                                                                                                                                                                                                                          │
│ A[MISSING_ENV_FILE] https://github.com/dotenvx/dotenvx/issues/484                                                                                                                                                                                                          │
│ #[[email protected]] injecting env (0)                                                                                                                                                                                                                                        │
│ t{"level":"info","message":"Silo started serving on port 3000, 🦊🦊🦊","timestamp":"2025-11-11 18:25:15:2515"}                                                                                                                                                             │
│ �{"level":"info","message":"GET /silo/api/github/auth/organization-status/bab41f66-1e8e-44f8-9593-1e6626a89e74 304 2707ms","meta":{"res":{"statusCode":304},"responseTime":2707},"timestamp":"2025-11-11 18:29:51:2951"}                                                   │
│ �{"level":"info","message":"GET /silo/api/supported-integrations/ 304 0ms","meta":{"res":{"statusCode":304},"responseTime":0},"timestamp":"2025-11-11 18:29:56:2956"}                                                                                                      │
│ �{"level":"info","message":"GET /silo/api/apps/bab41f66-1e8e-44f8-9593-1e6626a89e74/enabled-integrations/ 304 760ms","meta":{"res":{"statusCode":304},"responseTime":760},"timestamp":"2025-11-11 18:29:56:2956"}                                                          │
│ �{"level":"info","message":"GET /silo/api/github/auth/organization-status/bab41f66-1e8e-44f8-9593-1e6626a89e74 304 343ms","meta":{"res":{"statusCode":304},"responseTime":343},"timestamp":"2025-11-11 18:29:57:2957"}                                                     │
│ �{"level":"info","message":"GET /silo/api/apps/bab41f66-1e8e-44f8-9593-1e6626a89e74/enabled-integrations/ 304 817ms","meta":{"res":{"statusCode":304},"responseTime":817},"timestamp":"2025-11-11 18:29:57:2957"}                                                          │
│ �{"level":"info","message":"GET /silo/api/supported-integrations/ 304 1ms","meta":{"res":{"statusCode":304},"responseTime":1},"timestamp":"2025-11-11 18:29:58:2958"}                                                                                                      │
│ �{"level":"info","message":"Executing query: SELECT * FROM application_secrets WHERE key = $1 and deleted_at is null","params":["x-github-id"],"timestamp":"2025-11-11 18:30:01:301"}                                                                                      │
│ z{"error":{},"level":"error","message":"Error getting plane app details for GITHUB","timestamp":"2025-11-11 18:30:01:301"}                                                                                                                                                 │
│ �{"level":"error","message":"[SILo] Error processing response: Error: Application secret value not found for key: x-github-id","timestamp":"2025-11-11 18:30:01:301"}                                                                                                      │
│ �{"level":"info","message":"GET /silo/api/github/plane-app-details 500 42ms","meta":{"res":{"statusCode":500},"responseTime":42},"timestamp":"2025-11-11 18:30:01:301"}                                                                                                    │
│ �{"level":"info","message":"GET /silo/api/github/auth/organization-status/bab41f66-1e8e-44f8-9593-1e6626a89e74 304 150ms","meta":{"res":{"statusCode":304},"responseTime":150},"timestamp":"2025-11-11 18:33:57:3357"}                                                     │
│ �{"level":"info","message":"GET /silo/api/supported-integrations/ 304 1ms","meta":{"res":{"statusCode":304},"responseTime":1},"timestamp":"2025-11-11 18:34:12:3412"}                                                                                                      │
│ �{"level":"info","message":"GET /silo/api/apps/bab41f66-1e8e-44f8-9593-1e6626a89e74/enabled-integrations/ 304 838ms","meta":{"res":{"statusCode":304},"responseTime":838},"timestamp":"2025-11-11 18:34:12:3412"}                                                          │
│ �{"level":"info","message":"GET /silo/api/github/auth/organization-status/bab41f66-1e8e-44f8-9593-1e6626a89e74 304 136ms","meta":{"res":{"statusCode":304},"responseTime":136},"timestamp":"2025-11-11 18:34:12:3412"}                                                     │
│ �{"level":"info","message":"Executing query: SELECT * FROM application_secrets WHERE key = $1 and deleted_at is null","params":["x-github-id"],"timestamp":"2025-11-11 18:34:32:3432"}                                                                                     │
│ {{"error":{},"level":"error","message":"Error getting plane app details for GITHUB","timestamp":"2025-11-11 18:34:32:3432"}

tolgaulas avatar Nov 11 '25 18:11 tolgaulas

I've solved with the help of ai.. TL/DR The problem is; when you update the plane.env with github variables, they are not reflected into the containers (and its dbs); so one has to :

  • add the related variables in .env where docker-compose. is
  • restart
  • run an update within a docker app so that these values are recorded in db (where silo expect to find)

here is what it takes to make it working.

  • create .env and add the GITHUB_* variables (I've modified the docker-compose).
  • docker restart silo
  • still got the select related error
  • docker exec -it plane-api-1 bash and then python manage.py reset_marketplace_app_secrets
  • now the configure button works...

tolgaulas avatar Nov 11 '25 19:11 tolgaulas