- Server operating system version
- Microsoft Windows Server 2022
- Plesk version and microupdate number
- Plesk Obsidian v18.0.68_build20250228.10 os_Windows 2012/2016/2019/2022
Hello,
I recently purchased a VPS server from GoDaddy that is running Plesk. I have a .NET 9 with React application running on the VPS. Currently in my local environment, I am able to smoothly run the application and connect to the database that is hosted on the VPS. When I deploy the application to the VPS on Plesk, everything runs fine for about 10-15 minutes. Once that amount of time passes, everything still runs except the MySQL Connection to the database will fail and consistently return 500 errors to the .NET API.
After doing some debugging in the logs, I was able to find the following issue:
fail: Microsoft.AspNetCore.Server.Kestrel[13]
Connection id "0HNB00REQT1UF", Request id "0HNB00REQT1UF:00000001": An unhandled exception was thrown by the application.
MySqlConnector.MySqlException (0x80004005): Access denied for user ''@'119-204-178-68.host.secureserver.net' (using password: NO)
I am not sure what is causing the connection to be refused as it works fine on the initial deploy. Additionally, I have already remote connected to the server and verified that port 3306 is allow and is not being used by any other process and I also verified the database server and verified that the user account that I am trying to connect with is being accepted by any host.
I have attached and image of the full error to this post.
Any ideas? I have been stuck on this for days and would greatly appreciate anyone's assistance.
I recently purchased a VPS server from GoDaddy that is running Plesk. I have a .NET 9 with React application running on the VPS. Currently in my local environment, I am able to smoothly run the application and connect to the database that is hosted on the VPS. When I deploy the application to the VPS on Plesk, everything runs fine for about 10-15 minutes. Once that amount of time passes, everything still runs except the MySQL Connection to the database will fail and consistently return 500 errors to the .NET API.
After doing some debugging in the logs, I was able to find the following issue:
fail: Microsoft.AspNetCore.Server.Kestrel[13]
Connection id "0HNB00REQT1UF", Request id "0HNB00REQT1UF:00000001": An unhandled exception was thrown by the application.
MySqlConnector.MySqlException (0x80004005): Access denied for user ''@'119-204-178-68.host.secureserver.net' (using password: NO)
I am not sure what is causing the connection to be refused as it works fine on the initial deploy. Additionally, I have already remote connected to the server and verified that port 3306 is allow and is not being used by any other process and I also verified the database server and verified that the user account that I am trying to connect with is being accepted by any host.
I have attached and image of the full error to this post.
Any ideas? I have been stuck on this for days and would greatly appreciate anyone's assistance.