Skip to content
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

Open
Vanuan opened this issue Dec 7, 2018 · 5 comments
Open

Blank screen when port is in use #90

Vanuan opened this issue Dec 7, 2018 · 5 comments

Comments

@Vanuan
Copy link

Vanuan commented Dec 7, 2018

When opening configuration folder I see blank screen

@Vanuan
Copy link
Author

Vanuan commented Dec 7, 2018

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?

@Vanuan Vanuan changed the title OSX: blank screen OSX: blank screen when port is in use Dec 7, 2018
@Vanuan Vanuan changed the title OSX: blank screen when port is in use Blank screen when port is in use Dec 7, 2018
@yet-another-average-joe
Copy link

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
Maybe you could solve the problem opening a 2nd instance of marlin-conf, and then closing the first (blank an thus useless) one.

On the Git main page, you can read :

Main features :
...
collaborative editor for whole project
...

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...

@Vanuan
Copy link
Author

Vanuan commented Dec 8, 2018

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".

@Vanuan
Copy link
Author

Vanuan commented Dec 8, 2018

Alternatively, user should be able to override the port.

Think about it in this way:
if every electron app used a static port, you would only be able to start one app at a time. That's like returning to 90s.

@yet-another-average-joe
Copy link

yet-another-average-joe commented Dec 8, 2018

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.

marlin-conf

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.

marlin-conf2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants