Skip to content

Docker strapi errorΒ #130

Open
Open
@hahamini

Description

@hahamini

πŸ› Bug Report

πŸ€·β€β™€οΈ What did you do

I don't know the details, but it seems that vite can't connect to port 5173, so I can't access the admin page. I keep refreshing it, and it works.

This problem only occurs when running with Docker.
If you set only DB and Adminer in docker-compose, and run strapi with yarn develop in the root directory, the problem doesn't occur.

⛔️ Error log

 Uncaught (in promise) TypeError: Failed to fetch
    at chunk-2TAU4CQN.js?v=1fee42fe:5196:9
    at commitHookEffectListMount (chunk-LV225RC7.js?v=1fee42fe:16936:34)
    at commitPassiveMountOnFiber (chunk-LV225RC7.js?v=1fee42fe:18184:19)
    at commitPassiveMountEffects_complete (chunk-LV225RC7.js?v=1fee42fe:18157:17)
    at commitPassiveMountEffects_begin (chunk-LV225RC7.js?v=1fee42fe:18147:15)
    at commitPassiveMountEffects (chunk-LV225RC7.js?v=1fee42fe:18137:11)
    at flushPassiveEffectsImpl (chunk-LV225RC7.js?v=1fee42fe:19518:11)
    at flushPassiveEffects (chunk-LV225RC7.js?v=1fee42fe:19475:22)
    at commitRootImpl (chunk-LV225RC7.js?v=1fee42fe:19444:13)
    at commitRoot (chunk-LV225RC7.js?v=1fee42fe:19305:13)

GET http://localhost:5173/ net::ERR_CONNECTION_REFUSED
ping @ http://localhost/@vite/client:710
waitForSuccessfulPing @ http://localhost/@vite/client:730
(anonymous) @ http://localhost/@vite/client:528

## πŸ™‡β€β™€οΈ Expected behavior/code

A clear and concise description of what you expected to happen (or code).

## πŸ‘©β€πŸ’» Environment

- πŸ“¦ Node version: FROM node:18-alpine
- πŸ’» OS: Linux - x64 (Ubuntu22.04)

## πŸ’‘ Possible Solution

<!-- Only if you have suggestions on a fix for the bug -->

## πŸ“Ί Additional context/Screenshots

<!-- Add any other context about the problem here. If applicable, add screenshots to help explain. -->

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions