You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upon running a repo with supabase in Google's project.idx, i get the following error:
supabase:migrate: StorageUnknownError: fetch failed
supabase:migrate: at /home/user/repo-name/node_modules/.pnpm/@[email protected]/node_modules/@supabase/storage-js/src/lib/fetch.ts:32:12
supabase:migrate: at Generator.next (<anonymous>)
supabase:migrate: at fulfilled (/home/user/jocky/node_modules/.pnpm/@[email protected]/node_modules/@supabase/storage-js/dist/main/lib/fetch.js:5:58) {
supabase:migrate: __isStorageError: true,
supabase:migrate: originalError: TypeError: fetch failed
supabase:migrate: at node:internal/deps/undici/undici:12345:11 {
supabase:migrate: cause: SocketError: other side closed
supabase:migrate: at Socket.onSocketEnd (node:internal/deps/undici/undici:8903:26)
supabase:migrate: at Socket.emit (node:events:530:35)
supabase:migrate: at Socket.emit (node:domain:488:12)
supabase:migrate: at endReadableNT (node:internal/streams/readable:1696:12)
supabase:migrate: at processTicksAndRejections (node:internal/process/task_queues:82:21) {
supabase:migrate: code: 'UND_ERR_SOCKET',
supabase:migrate: socket: [Object]
supabase:migrate: }
supabase:migrate: }
supabase:migrate: }
it seems as when the command 'docker compose -f supabase/docker-compose.yml -p supabase up -d' it continually tries to fire up the port 8000 but not successfully.
this is my docker-compose.yml for reference:
version: "3.8"services:
studio:
container_name: supabase-studioimage: supabase/studio:20240422-5cf8f30restart: unless-stoppedhealthcheck:
test:
["CMD","node","-e","require('http').get('http://3000-idx-jocky-1719158051414.cluster-23wp6v3w4jhzmwncf7crloq3kw.cloudworkstations.dev/api/profile', (r) => {if (r.statusCode !== 200) throw new Error(r.statusCode)})"]timeout: 5sinterval: 5sretries: 3environment:
STUDIO_PG_META_URL: http://meta:8080POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}DEFAULT_ORGANIZATION_NAME: ${STUDIO_DEFAULT_ORGANIZATION}DEFAULT_PROJECT_NAME: ${STUDIO_DEFAULT_PROJECT}SUPABASE_URL: http://kong:8000SUPABASE_PUBLIC_URL: http://localhost:${SUPABASE_PORT}SUPABASE_ANON_KEY: ${ANON_KEY}SUPABASE_SERVICE_KEY: ${SERVICE_ROLE_KEY}NEXT_PUBLIC_ENABLE_LOGS: falsekong:
image: kong:2.8.1restart: unless-stopped# https://unix.stackexchange.com/a/294837entrypoint: bash -c 'eval "echo \"$$(cat ~/temp.yml)\"" > ~/kong.yml && /docker-entrypoint.sh kong docker-start'ports:
- ${SUPABASE_PORT}:8000/tcpenvironment:
KONG_DATABASE: "off"KONG_DECLARATIVE_CONFIG: /home/kong/kong.yml# https://github.com/supabase/cli/issues/14KONG_DNS_ORDER: LAST,A,CNAMEKONG_PLUGINS: request-transformer,cors,key-auth,acl,basic-authKONG_NGINX_PROXY_PROXY_BUFFER_SIZE: 160kKONG_NGINX_PROXY_PROXY_BUFFERS: 64 160kSUPABASE_ANON_KEY: ${ANON_KEY}SUPABASE_SERVICE_KEY: ${SERVICE_ROLE_KEY}volumes:
# https://github.com/supabase/supabase/issues/12661
- ./volumes/api/kong-${DOPPLER_CONFIG}.yml:/home/kong/temp.yml:roauth:
image: supabase/gotrue:v2.132.3depends_on:
db:
condition: service_healthyhealthcheck:
test:
["CMD","wget","--no-verbose","--tries=1","--spider","http://localhost:9999/health"]timeout: 5sinterval: 5sretries: 3restart: unless-stoppedenvironment:
GOTRUE_API_HOST: 0.0.0.0GOTRUE_API_PORT: 9999API_EXTERNAL_URL: http://localhost:${SUPABASE_PORT}GOTRUE_SITE_URL: http://localhost:${GOTRUE_SITE_PORT}GOTRUE_DB_DRIVER: postgresGOTRUE_DB_DATABASE_URL: postgres://supabase_auth_admin:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}GOTRUE_URI_ALLOW_LIST: ${ADDITIONAL_REDIRECT_URLS}GOTRUE_DISABLE_SIGNUP: ${DISABLE_SIGNUP}GOTRUE_JWT_ADMIN_ROLES: service_roleGOTRUE_JWT_AUD: authenticatedGOTRUE_JWT_DEFAULT_GROUP_NAME: authenticatedGOTRUE_JWT_EXP: ${JWT_EXPIRY}GOTRUE_JWT_SECRET: ${JWT_SECRET}GOTRUE_EXTERNAL_EMAIL_ENABLED: ${ENABLE_EMAIL_SIGNUP}GOTRUE_MAILER_AUTOCONFIRM: ${ENABLE_EMAIL_AUTOCONFIRM}# GOTRUE_MAILER_SECURE_EMAIL_CHANGE_ENABLED: true# GOTRUE_SMTP_MAX_FREQUENCY: 1sGOTRUE_SMTP_ADMIN_EMAIL: ${SMTP_ADMIN_EMAIL}GOTRUE_SMTP_HOST: ${SMTP_HOST}GOTRUE_SMTP_PORT: ${SMTP_PORT}GOTRUE_SMTP_USER: ${SMTP_USER}GOTRUE_SMTP_PASS: ${SMTP_PASS}GOTRUE_SMTP_SENDER_NAME: ${SMTP_SENDER_NAME}GOTRUE_MAILER_URLPATHS_INVITE: ${MAILER_URLPATHS_INVITE}GOTRUE_MAILER_URLPATHS_CONFIRMATION: ${MAILER_URLPATHS_CONFIRMATION}GOTRUE_MAILER_URLPATHS_RECOVERY: ${MAILER_URLPATHS_RECOVERY}GOTRUE_MAILER_URLPATHS_EMAIL_CHANGE: ${MAILER_URLPATHS_EMAIL_CHANGE}GOTRUE_EXTERNAL_PHONE_ENABLED: ${ENABLE_PHONE_SIGNUP}GOTRUE_SMS_AUTOCONFIRM: ${ENABLE_PHONE_AUTOCONFIRM}rest:
image: postgrest/postgrest:v12.0.1depends_on:
db:
condition: service_healthyrestart: unless-stoppedenvironment:
PGRST_DB_URI: postgres://authenticator:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}PGRST_DB_SCHEMAS: ${PGRST_DB_SCHEMAS}PGRST_DB_ANON_ROLE: anonPGRST_JWT_SECRET: ${JWT_SECRET}PGRST_DB_USE_LEGACY_GUCS: "false"PGRST_APP_SETTINGS_JWT_SECRET: ${JWT_SECRET}PGRST_APP_SETTINGS_JWT_EXP: ${JWT_EXPIRY}command: "postgrest"realtime:
# container name is *hard-coded* in the kong.yml filecontainer_name: realtime-dev.supabase-${DOPPLER_CONFIG}-realtimeimage: supabase/realtime:v2.26.5depends_on:
db:
condition: service_healthyrestart: unless-stoppedports:
# REALTIME_PORT must be 4000 for dev and 14000 for e2e test. See hard-coded config in kong.yml!
- ${REALTIME_PORT}:${REALTIME_PORT}environment:
PORT: ${REALTIME_PORT}DB_HOST: ${POSTGRES_HOST}DB_PORT: ${POSTGRES_PORT}DB_USER: supabase_adminDB_PASSWORD: ${POSTGRES_PASSWORD}DB_NAME: ${POSTGRES_DB}DB_AFTER_CONNECT_QUERY: 'SET search_path TO _realtime'DB_ENC_KEY: supabaserealtimeAPI_JWT_SECRET: ${JWT_SECRET}FLY_ALLOC_ID: fly123FLY_APP_NAME: realtimeSECRET_KEY_BASE: UpNVntn3cDxHJpq99YMc1T1AQgQpc8kfYTuRgBiYa15BLrx8etQoXz3gZv1/u2oqERL_AFLAGS: -proto_dist inet_tcpENABLE_TAILSCALE: "false"DNS_NODES: "''"command: > sh -c "/app/bin/migrate && /app/bin/realtime eval 'Realtime.Release.seeds(Realtime.Repo)' && /app/bin/server"storage:
image: supabase/storage-api:v0.46.4depends_on:
db:
condition: service_healthyrest:
condition: service_startedimgproxy:
condition: service_startedhealthcheck:
test:
["CMD","wget","--no-verbose","--tries=1","--spider","http://localhost:5000/status"]timeout: 5sinterval: 5sretries: 3restart: unless-stoppedenvironment:
ANON_KEY: ${ANON_KEY}SERVICE_KEY: ${SERVICE_ROLE_KEY}POSTGREST_URL: http://rest:3000PGRST_JWT_SECRET: ${JWT_SECRET}DATABASE_URL: postgres://supabase_storage_admin:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}FILE_SIZE_LIMIT: 52428800STORAGE_BACKEND: fileFILE_STORAGE_BACKEND_PATH: /var/lib/storageTENANT_ID: stub# TODO: https://github.com/supabase/storage-api/issues/55REGION: stubGLOBAL_S3_BUCKET: stubENABLE_IMAGE_TRANSFORMATION: "true"IMGPROXY_URL: http://imgproxy:5001volumes:
- ./volumes/storage:/var/lib/storage:zimgproxy:
image: darthsim/imgproxy:v3.8.0healthcheck:
test: [ "CMD", "imgproxy", "health" ]timeout: 5sinterval: 60sretries: 3environment:
IMGPROXY_BIND: ":5001"IMGPROXY_LOCAL_FILESYSTEM_ROOT: /IMGPROXY_USE_ETAG: "true"IMGPROXY_ENABLE_WEBP_DETECTION: ${IMGPROXY_ENABLE_WEBP_DETECTION}volumes:
- ./volumes/storage:/var/lib/storage:zmeta:
image: supabase/postgres-meta:v0.77.2depends_on:
db:
condition: service_healthyrestart: unless-stoppedenvironment:
PG_META_PORT: 8080PG_META_DB_HOST: ${POSTGRES_HOST}PG_META_DB_PORT: ${POSTGRES_PORT}PG_META_DB_NAME: ${POSTGRES_DB}PG_META_DB_USER: supabase_adminPG_META_DB_PASSWORD: ${POSTGRES_PASSWORD}db:
container_name: supabase-dbimage: supabase/postgres:15.1.1.61healthcheck:
test: pg_isready -U postgres -h localhostinterval: 5stimeout: 5sretries: 10command:
- postgres
- -c
- config_file=/etc/postgresql/postgresql.conf
- -c
- log_min_messages=fatal # prevents Realtime polling queries from appearing in logsrestart: unless-stoppedports:
# Pass down internal port because it's set dynamically by other services
- ${POSTGRES_PORT}:${POSTGRES_PORT}environment:
POSTGRES_HOST: /var/run/postgresqlPGPORT: ${POSTGRES_PORT}POSTGRES_PORT: ${POSTGRES_PORT}PGPASSWORD: ${POSTGRES_PASSWORD}POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}PGDATABASE: ${POSTGRES_DB}POSTGRES_DB: ${POSTGRES_DB}JWT_SECRET: ${JWT_SECRET}JWT_EXP: ${JWT_EXPIRY}volumes:
- ./volumes/db/realtime.sql:/docker-entrypoint-initdb.d/migrations/99-realtime.sql:Z# Must be superuser to create event trigger
- ./volumes/db/webhooks.sql:/docker-entrypoint-initdb.d/init-scripts/98-webhooks.sql:Z# Must be superuser to alter reserved role
- ./volumes/db/roles.sql:/docker-entrypoint-initdb.d/init-scripts/99-roles.sql:Z# Initialize the database settings with JWT_SECRET and JWT_EXP
- ./volumes/db/jwt.sql:/docker-entrypoint-initdb.d/init-scripts/99-jwt.sql:Z# PGDATA directory is persisted between restarts
- ./volumes/db/data:/var/lib/postgresql/data:Z# Changes required for Analytics support
- ./volumes/db/logs.sql:/docker-entrypoint-initdb.d/migrations/99-logs.sql:Z# Use named volume to persist pgsodium decryption key between restarts
- db-config:/etc/postgresql-customvolumes:
db-config:
The text was updated successfully, but these errors were encountered:
Bug report
Describe the bug
Upon running a repo with supabase in Google's project.idx, i get the following error:
it seems as when the command 'docker compose -f supabase/docker-compose.yml -p supabase up -d' it continually tries to fire up the port 8000 but not successfully.
this is my
docker-compose.yml
for reference:The text was updated successfully, but these errors were encountered: