You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ron Hinds <ro...@garageiq.com> on 2022/03/25 18:08:48 UTC
Failed to load uri_worker_map file
Windows Server 2016 Standard, IIS 10, Tomcat 8.5.77, Tomcat Connector
1.2.48 x86-64, Gitbucket 4.37.2
Everything works fine as long as I postfix :8080 to the URL
http://www.example.com:8080/gitbucket
But if I try it without the :8080, I get a 404 error
http://www.example.com/gitbucket
It also puts an entry in the isapi_redirect log
[Fri Mar 25 17:43:50.841 2022] [6136:636] [error]
uri_worker_map_load::jk_uri_worker_map.c (1270): Failed to load
uri_worker_map file C:\Program Files\Apache Software Foundation\Tomcat
8.5\conf\uriworkermap.properties (errno=2, err=No such file or directory).
Obviously, the file exists in that location. I've also made sure that
the account the webserver runs under (IIS_IUSRS) has permissions to that
file/folder. This server is on my internal LAN, so no firewall issues
are preventing access to it.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Failed to load uri_worker_map file
Posted by Christopher Schultz <ch...@christopherschultz.net>.
Ron,
On 3/25/22 14:08, Ron Hinds wrote:
> Windows Server 2016 Standard, IIS 10, Tomcat 8.5.77, Tomcat Connector
> 1.2.48 x86-64, Gitbucket 4.37.2
>
> Everything works fine as long as I postfix :8080 to the URL
>
> http://www.example.com:8080/gitbucket
This is what the user types into the browser, or this is what you have
configured in IIS for the redirector URL for the proxy?
> But if I try it without the :8080, I get a 404 error
>
> http://www.example.com/gitbucket
If this is what the user types, then your IIS config is not correct ;)
> It also puts an entry in the isapi_redirect log
>
> [Fri Mar 25 17:43:50.841 2022] [6136:636] [error]
> uri_worker_map_load::jk_uri_worker_map.c (1270): Failed to load
> uri_worker_map file C:\Program Files\Apache Software Foundation\Tomcat
> 8.5\conf\uriworkermap.properties (errno=2, err=No such file or directory).
>
> Obviously, the file exists in that location.
Is that indeed obvious? It's not obvious to us.
> I've also made sure that
> the account the webserver runs under (IIS_IUSRS) has permissions to that
> file/folder. This server is on my internal LAN, so no firewall issues
> are preventing access to it.
A 404 error indicates that there are no network problems (e.g.
firewall). The error message you see in the IIS log shows you that
*something* is happening, it's just not what you expect.
See Thomas's response about file permissions. Are you *sure* you have
them correct?
-chris
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
AW: Failed to load uri_worker_map file
Posted by "Thomas Hoffmann (Speed4Trade GmbH)" <Th...@speed4trade.com.INVALID>.
> -----Ursprüngliche Nachricht-----
> Von: Ron Hinds <ro...@garageiq.com>
> Gesendet: Freitag, 25. März 2022 19:09
> An: users@tomcat.apache.org
> Betreff: Failed to load uri_worker_map file
>
> Windows Server 2016 Standard, IIS 10, Tomcat 8.5.77, Tomcat Connector
> 1.2.48 x86-64, Gitbucket 4.37.2
>
> Everything works fine as long as I postfix :8080 to the URL
>
> http://www.example.com:8080/gitbucket
>
> But if I try it without the :8080, I get a 404 error
>
> http://www.example.com/gitbucket
>
> It also puts an entry in the isapi_redirect log
>
> [Fri Mar 25 17:43:50.841 2022] [6136:636] [error]
> uri_worker_map_load::jk_uri_worker_map.c (1270): Failed to load
> uri_worker_map file C:\Program Files\Apache Software Foundation\Tomcat
> 8.5\conf\uriworkermap.properties (errno=2, err=No such file or directory).
>
> Obviously, the file exists in that location. I've also made sure that the account
> the webserver runs under (IIS_IUSRS) has permissions to that file/folder.
> This server is on my internal LAN, so no firewall issues are preventing access
> to it.
>
Hello,
IIS uses several accounts, especially virtual user accounts might be used.
Some information is listed here: https://docs.microsoft.com/en-us/iis/manage/configuring-security/application-pool-identities
Make sure, that also the virtual user "IIS AppPool\<sitename>" has read access to this file.
You can also use procmon to check where IIS is searching for this file and whether there is a permission issue.
When using procmon, make sure to set the filters well, otherwise you will get no or tons of lines.
Another method would be to temporarily grant all users full access to this folder to determine, whether it’s a permission issue.
Greetings, Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org