bitfoundation / bitplatform

Build all of your apps using what you already know and love ❤️
https://bitplatform.dev
MIT License
1.08k stars 225 forks source link

Index page responds with HTTP 500 error while running in docker. #7385

Closed trey368s closed 5 months ago

trey368s commented 6 months ago

Is there an existing issue for this?

Describe the bug

When running a bit boilerplate admin panel demo in docker, it launches into the swagger UI fine, though when you try to navigate to the index page it responds with an HTTP 500 error.

Expected Behavior

For the index page to respond with a HTTP 200 code returning the home page, like it does when not running in docker.

Steps To Reproduce

Create a bit boilerplate admin panel demo Run the project in docker It should launch into the swagger UI displaying the page Navigate to the home page by removing /swagger/index.html from the path The page should respond with an HTTP 500 error

Exceptions (if any)

HTTP 500

.NET Version

8.0.202

Anything else?

Windows 11 Pro Build 22631 SDK version 8.0.202 Visual Studio version 17.9.5 Docker version 20.10.22, build 3a2c30b If you need any other information just let me know, more than happy to help. Very cool project I would like to learn if I can get it running in docker.

ysmoradi commented 6 months ago

Are you using SQLite or SQL Server for your database? It's possible having trouble connecting.

trey368s commented 6 months ago

SQL server (mssqllocaldb), any idea why it would have trouble connecting in docker but not when running it normally? Also do you think switching to SQLite would resolve the issue?

ysmoradi commented 6 months ago

You've to do something for the Sql server dependency in docker. The other choice would be sqlite.

msynk commented 5 months ago

I'm closing this issue since there has been no activity in a long time.