nicho92 / MtgDesktopCompanion

Cards manager for magic the gathering
Apache License 2.0
163 stars 35 forks source link

error when trying to start Web UI Server in linux #136

Closed Thorgal-The-Viking closed 4 years ago

Thorgal-The-Viking commented 4 years ago

image

I tried playing with serverport in Servers-config, but keep getting above error

nicho92 commented 4 years ago

can you try to run apps with root ? and let me know ?

Thorgal-The-Viking commented 4 years ago

running as root gives me

Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server using ':10.0' as the value of the DISPLAY variable. at java.desktop/sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at java.desktop/sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:99) at java.base/java.security.AccessController.doPrivileged(AccessController.java:312) at java.desktop/sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:58) at java.desktop/sun.awt.PlatformGraphicsInfo.createGE(PlatformGraphicsInfo.java:36) at java.desktop/java.awt.GraphicsEnvironment$LocalGE.createGE(GraphicsEnvironment.java:93) at java.desktop/java.awt.GraphicsEnvironment$LocalGE.(GraphicsEnvironment.java:84) at java.desktop/java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:106) at java.desktop/java.awt.Window.initGC(Window.java:477) at java.desktop/java.awt.Window.init(Window.java:497) at java.desktop/java.awt.Window.(Window.java:539) at java.desktop/java.awt.Frame.(Frame.java:423) at java.desktop/java.awt.Frame.(Frame.java:388) at java.desktop/javax.swing.SwingUtilities$SharedOwnerFrame.(SwingUtilities.java:1919) at java.desktop/javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:1995) at java.desktop/javax.swing.JWindow.(JWindow.java:183) at java.desktop/javax.swing.JWindow.(JWindow.java:135) at org.magic.gui.components.dialog.MTGSplashScreen.(MTGSplashScreen.java:30) at org.magic.api.main.MtgDesktopCompanion.(MtgDesktopCompanion.java:36) at org.magic.api.main.MtgDesktopCompanion.main(MtgDesktopCompanion.java:30)

nicho92 commented 4 years ago

Standard linux user can't open ports below 1024. Try to put 1025 then go to http://localhost:1025.

nicho92 commented 4 years ago

maybe you should restart app image

Thorgal-The-Viking commented 4 years ago

that worked. Thanks!