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

Doesn't seem to work on Mac Monerey #99

Closed
SigmaOutdoors opened this issue Feb 7, 2022 · 3 comments
Closed

Doesn't seem to work on Mac Monerey #99

SigmaOutdoors opened this issue Feb 7, 2022 · 3 comments
Assignees

Comments

@SigmaOutdoors
Copy link

SigmaOutdoors commented Feb 7, 2022

It started with it just spinning on startup waiting for geoserver to start with a host platform warning.

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Waiting for GeoServer to be Up and running
Waiting for GeoServer to be Up and running
Waiting for GeoServer to be Up and running
Waiting for GeoServer to be Up and running
Waiting for GeoServer to be Up and running
Waiting for GeoServer to be Up and running
Waiting for GeoServer to be Up and running

I found some information that said I should try --platform linux/amd64 which I did

docker run --name gs --detach -p 8080:8080 --platform linux/amd64 geosolutionsit/geoserver

Now it seems to "start" as far as the logs are concerned but I can't get to

http://localhost:8080/geoserver

I tried just downloading the Tomcat Docker image on it's own and spinning it up. I can get to the same ports so it isn't some kind of network/firewall issue that I can see.

Current "It seems like it started" Logs

Waiting for GeoServer to be Up and running
Waiting for GeoServer to be Up and running
Waiting for GeoServer to be Up and running
07-Feb-2022 17:37:29.989 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
Waiting for GeoServer to be Up and running
07-Feb-2022 17:37:30.132 INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [3449] milliseconds
07-Feb-2022 17:37:30.447 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
07-Feb-2022 17:37:30.448 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.58]
07-Feb-2022 17:37:30.482 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/geoserver]
@randomorder
Copy link
Member

randomorder commented Feb 8, 2022

Hi @SigmaOutdoors
Please try the following to understand whether or not geoserver is running in the container:

docker exec -it gs bash -c 'curl -v localhost:8080/geoserver'

You should get an HTTP 302 redirect

*   Trying 127.0.0.1:8080...
* Connected to localhost (127.0.0.1) port 8080 (#0)
> GET /geoserver HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/7.74.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 302
< X-Frame-Options: SAMEORIGIN
< Location: /geoserver/index.html
< Content-Length: 0
< Date: Tue, 08 Feb 2022 08:46:08 GMT
<
* Connection #0 to host localhost left intact

Also make sure no other service or container is running already on port 8080

@SigmaOutdoors
Copy link
Author

SigmaOutdoors commented Feb 8, 2022

OK so oddly enough, my Mac rebooted midday yesterday for no reason (crash I suspect). This is very rare as it is a new Macbook pro. Today (post reboot) I ran exactly the same docker command as yesterday and it geoserver came up. In answer to your suggestion, yesterday when it was hanging I did shell into the container and ran that exact curl command to try and debug myself and it also hung, that is when I reached out to you guys (forgot to mention that).

So it was one of two things, maybe Docker Desktop for Mac was having some issues and needed the reboot, which would be odd because as I said tomcat was working. The only other thing I did was download install & run the geoserver platform independent binary (which worked without issue), and yes I made sure to stop this before running the docker version. This obviously should have zero bearing on docker geoserver working or not. So in short, I don't know what happened. It is working and I appreciate you getting back to me.

I should also add that it came up with and without the --platform linux/amd64 flag.

@randomorder
Copy link
Member

no problem. Glad it's working and thanks for reporting

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

No branches or pull requests

2 participants