-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blank screen when port is in use #90
Comments
Turns out the issue was that 3000 port was already used by another app. So marlin-config should either add a warning about 3000 port being already in use or choose the port dynamically (and show it somewhere in UI if needed). Why do you need to run webserver in the first place? |
I'm NOT a marlin-conf developper, but I have been testing it extensively. Normally, when 3000 is in use, marlin-conf uses other ports : 50xxx On the Git main page, you can read : Main features : marlin-conf, as a web server, allows multiple users to work over LAN and WAN (using a port redirection). It is a collaborative tool. Open a source folder with 2 instances or more, locally or over a LAN/WAN network, and you will see that changes are synchronized. marlin-conf can also be installed on a remote machine. Note that I failed installing it on a Raspi along with OctoPrint, but I'm not fluent with RaspBian... I successfully got it to work on my personal (Windows) server, over LAN and WAN. The server/client model is great. marlin-conf runs in a (hidden) Chrome window. OctoPrint is also a web server... |
Ok, so the issue is not that marlin can't provide an error message when 3000 is in use. The issue is that 3000 being in use by some other app is expected behavior. Hm... I find it hard to sound reasonable. If marlin-conf is really supposed to be 2 different applications: client and server, users should choose themselves whether they want embedded client from marlin-conf or open localhost:3000 in the browser. And server should write a message: "I'm not starting since port 3000 is already in use by another instance". |
Alternatively, user should be able to override the port. Think about it in this way: |
When I said client server, it was inappropriate. What I meant is that marlin-conf is a web server. and the clients the browser windows. (client is not correct). When using the standalone app, the window is in fact a minimal browser : a Chrome window embeded in the "client" app window. What happens when 3000 is already in use (by marlin-conf itself, so this is a 2nd instance) : does not seem to be that static... But you are right, it would be fine to have the option of choosing the ports. I've been searching for port 3000 in some configuration file, but I failed. And I can't read JS. |
When opening configuration folder I see blank screen
The text was updated successfully, but these errors were encountered: