Closed johnongit closed 2 months ago
I'm on my phone only in a week from today.
Try skip the build phase and use an already built image
See here, image built from the repo.
https://hub.docker.com/r/hodladi21/phoenixd-server-ui
But with the error logs it seems like port 2291 already in use, but it looks weird.
I'll come back to you when I'm back from vacation.
Workaround from TS, switch port.
@Hodladi I'm experiencing the same issue, the program is trying to bind to the same port twice. To reproduce simply clone the repo and run dotnet watch
in the project root without making any changes.
I've seen that reverting this recent change in Program.cs fixes it (I'm not a .NET dev so I don't understand why this was needed). https://github.com/Hodladi/Phoenixd-Server-Ui/commit/aedd52b4d00f58b32e700cc63d1f488656fc2289#diff-0b69b473fe937040615d69f606751f61ddbc2e3a1849360ff2456c22afe88c0b
Yea. You are right, as soon as in back from my vacation I'm gonna update Program.cs to solve this fully.
Thx for the input!
@johnongit @1ma
I have pushed new code with commented out part in Program.cs
I new docker image is avalible and the repo is updated.
The port configuration in Program.cs was if you run the application as a native .NET application without Docker and because of that i didnt remove the part in the file, just commented it out and with a comment.
Thanks! But to clarify I hit this problem without using Docker :sweat_smile: I'm running dotnet 8.0 on Ubuntu Linux 22.04.
Oh, really? I tried to run it on windows server, Ubuntu server and also on Mac os without issues.
But it might have been unnecessary code anyways. So now it's gone. I'll might erase the comment after some more testing.
@1ma I realized I already have port 2291 in appsettings, that's prob the big reason for it to already be in use when you tried.
Now I fully removed the commented code and the comment.
I've tried to run the container like this but the container crash at startup.
git clone https://github.com/Hodladi/Phoenixd-Server-Ui.git
cd Phoenixd-Server-Ui
docker build -t pwallet .
docker run -d -p 2291:2291 --name pwallet_container pwallet
Stack trace