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

Not able to access on QNAP Container Station #1

Closed
sw-dev1 opened this issue May 25, 2016 · 8 comments
Closed

Not able to access on QNAP Container Station #1

sw-dev1 opened this issue May 25, 2016 · 8 comments

Comments

@sw-dev1
Copy link

sw-dev1 commented May 25, 2016

Hi,

On QNAP Container Station the install finishes and server starts according to the console, but there is no URL for accessing the container. Port 8080 is used by QNAP administration. Usually A new port is assigned automatically, but not iin this case. Extract from console:

INFO: Binding org.glyptodon.guacamole.net.basic.rest.activeconnection.ActiveConnectionRESTService to GuiceManagedComponentProvider with the scope "PerRequest"
May 25, 2016 6:53:12 PM com.sun.jersey.spi.inject.Errors processErrorMessages
WARNING: The following warnings have been detected with resource and/or provider classes:
WARNING: A sub-resource method, public void org.glyptodon.guacamole.net.basic.rest.activeconnection.ActiveConnectionRESTService.patchTunnels(java.lang.String,java.util
.List) throws org.glyptodon.guacamole.GuacamoleException, with URI template, "/", is treated as a resource method
May 25, 2016 6:53:12 PM org.apache.jasper.EmbeddedServletOptions
SEVERE: The scratchDir you specified: /var/lib/tomcat7/work/Catalina/localhost/_ is unusable.
May 25, 2016 6:53:12 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
May 25, 2016 6:53:12 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 34213 ms

Any ideas?

Thanks!

@tuxflo
Copy link
Owner

tuxflo commented May 27, 2016

Hi!
You have to specify the port you want to use inside the advanced settings of the Container Station.
Advanced settings screenshot
The port 8080 is only used inside the container, so you have map any port (for example 54321) of the NAS to the container.
According to the Screenshot above:
Replace 3321 on the Host side with the port you want to use (for example 54321) and replace the 3321 on the container side with 8080.
If you are starting the container from commandline you can use the command listed in the READE.md file replacing with 54321.
The VNC should then be accesible by visiting http://nas_url:54321
Just let me know if you have any other questions.

@sw-dev1 sw-dev1 closed this as completed Apr 2, 2018
@oywino
Copy link

oywino commented Dec 3, 2022

And how do you do this if you need to use HOST mode ?

@tuxflo
Copy link
Owner

tuxflo commented Dec 4, 2022

Hi @oywino
the image is currently not built for network_mode host, because out of the box it uses port 8080, which is already in use from the QNAP GUI.
I think one can change the port, but I don't know exactly where to do that.

@oywino
Copy link

oywino commented Dec 4, 2022

Hi @oywino the image is currently not built for network_mode host, because out of the box it uses port 8080.

Hi @tuxflo
I found that it can be done using docker compose;

    network_mode: host

    ports:
      - 49155:80

@tuxflo
Copy link
Owner

tuxflo commented Dec 4, 2022

Usually network mode host and ports don't work together, are you sure that those lines are doing the correct port remapping?

@oywino
Copy link

oywino commented Dec 4, 2022

What do you mean: "are sound" ?

@tuxflo
Copy link
Owner

tuxflo commented Dec 4, 2022

Sorry, it was caused by the autocompletion of the Android keyboard. I edited the previous comment. I just asked if the code is really working that way because usually network_mode host ignores the port settings.

@oywino
Copy link

oywino commented Dec 5, 2022

Well, the thing is that if I use:

 network_mode: host

    ports:
      - 49155:80

Then it works perfectly, but if I use Bridge mode with Static IP, then port mapping is ignored. And I don't understand why.

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

3 participants