WebDirect Not Working - 502 Error

After noticing that FMS 22.0.4 still has the problem finding the license file upon start (I have to show FMS the file in Downloads folder every time), I tried to access WebDirect and got the error below.

Not sure why WebDIrect is not working.

Have Amazon Corretto 17 installed on server. Assuming this is OK.

Please advise.

Thanks,

502 - Web server received an invalid response while acting as a gateway or proxy server.

There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server.

Although Amazon Corretto might be ok, that does reinforce my thought that the CWP process is not working correctly.

Does the admin console show under Connectors/Web Publishing that both CWP and WebDirect are enabled? What happens if you connect to this URL on the server, using either a browser or curl?

http://127.0.0.1:16021/fmi/webd

If CWP & WebDirect working correctly, you should see the WebDirect login page. And if that’s true, then something in the web server (Apache/IIS/NGINX) is tweaked.

1 Like

Thanks very much for your reply!

I had Java installed which I use for other things, but it seems FMS now requires you do the separate Java install for its WP. Once I did that, WD worked again. I guess they made that Java install optional in case you didn’t use WP? No idea.

In any case, your reply helped me figure out the solution.

Thanks very much again! :grinning_face:

1 Like

You could actually use the same Java installation, but if doing outside of the FMS console, you’d need to do the extra steps listed under option #2: https://support.claris.com/s/article/Claris-FileMaker-Server-2023-and-Java-17?language=en_US

(I wonder a bit about using .bashrc on macOS, since the default shell on macOS is Zsh now, but it also depends on how the Java process is invoked)

Don't worry. Bash is still supported.

Only barely:

macOS: Bash 3.2.57(1)-release

Ubuntu 24: Bash 5.2.21(1)-release

But I was thinking more along of the lines that setting that environment variable in .bashrc has zero effect on the Zsh environment, so the change would have no effect there on which Java path was used.

True.

I was thinking that a shell command that specifies bash will use .bashrc :slight_smile:

FMS is so brittle, I’d rather do it the “Claris” way: Install Java how Claris wants it to work for FMS or be potentially left with more problems than still persist.