Page 1 of 1

Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException

Posted: November 3rd, 2021, 1:41 am
by hannesrr
Dear All,

I greet you cordially and take the opportunity to make the following query.

I have several tablets in the field and they have been sending data through an HTTP URL; both CSEntry and CSWeb use version 7.6.1. It was working properly. But two day ago, my users can not longer sync their data. When they try to sync the error below appears:
ERROR_CSWEB03.11.2021.JPG
ERROR_CSWEB03.11.2021.JPG (24.84 KiB) Viewed 5735 times
Due to this error, I reviewed the case and found that users can still connect to CSWeb through port 443 of the HTTPS URL, and with this workaround they can synchronize their data.

I have checked the log and find the following:

[2021-11-02 12:27:28] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /"" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php line 136 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /\" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php:136, Symfony\\Component\\Routing\\Exception\\NoConfigurationException(code: 0): at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/Routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:182)"} []
[2021-11-02 14:57:30] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /"" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php line 136 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /\" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php:136, Symfony\\Component\\Routing\\Exception\\NoConfigurationException(code: 0): at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/Routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:182)"} []
[2021-11-02 14:57:41] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /"" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php line 136 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /\" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php:136, Symfony\\Component\\Routing\\Exception\\NoConfigurationException(code: 0): at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/Routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:182)"} []
[2021-11-02 14:57:54] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /"" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php line 136 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /\" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php:136, Symfony\\Component\\Routing\\Exception\\NoConfigurationException(code: 0): at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/Routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:182)"} []
[2021-11-02 15:12:36] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /"" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php line 136 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /\" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php:136, Symfony\\Component\\Routing\\Exception\\NoConfigurationException(code: 0): at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/Routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:182)"} []
[2021-11-02 15:52:08] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /"" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php line 136 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /\" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php:136, Symfony\\Component\\Routing\\Exception\\NoConfigurationException(code: 0): at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/Routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:182)"} []
[2021-11-02 16:00:48] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /"" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php line 136 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /\" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php:136, Symfony\\Component\\Routing\\Exception\\NoConfigurationException(code: 0): at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/Routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:182)"} []
[2021-11-02 16:08:26] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /"" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php line 136 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /\" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php:136, Symfony\\Component\\Routing\\Exception\\NoConfigurationException(code: 0): at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/Routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:182)"} []
[2021-11-02 16:13:03] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /"" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php line 136 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /\" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php:136, Symfony\\Component\\Routing\\Exception\\NoConfigurationException(code: 0): at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/Routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:182)"} []
[2021-11-02 16:13:08] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /"" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php line 136 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /\" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php:136, Symfony\\Component\\Routing\\Exception\\NoConfigurationException(code: 0): at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/Routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:182)"} []
[2021-11-02 16:13:13] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /"" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php line 136 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /\" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php:136, Symfony\\Component\\Routing\\Exception\\NoConfigurationException(code: 0): at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/Routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:182)"} []
[2021-11-02 16:13:23] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /"" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php line 136 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /\" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php:136, Symfony\\Component\\Routing\\Exception\\NoConfigurationException(code: 0): at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/Routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:182)"} []
[2021-11-02 16:14:56] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /"" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php line 136 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /\" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php:136, Symfony\\Component\\Routing\\Exception\\NoConfigurationException(code: 0): at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/Routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:182)"} []
[2021-11-02 16:22:50] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /"" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php line 136 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /\" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php:136, Symfony\\Component\\Routing\\Exception\\NoConfigurationException(code: 0): at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/Routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:182)"} []
[2021-11-02 17:07:57] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /*"" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php line 136 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /*\" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php:136, Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException(code: 0): No routes found for \"/*/\". at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/Routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:70)"} []
[2021-11-02 22:35:57] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /"" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php line 136 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /\" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php:136, Symfony\\Component\\Routing\\Exception\\NoConfigurationException(code: 0): at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/Routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:182)"} []
[2021-11-02 22:37:07] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /"" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php line 136 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /\" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php:136, Symfony\\Component\\Routing\\Exception\\NoConfigurationException(code: 0): at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/Routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:182)"} []
[2021-11-02 22:37:18] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /"" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php line 136 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /\" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php:136, Symfony\\Component\\Routing\\Exception\\NoConfigurationException(code: 0): at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/Routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:182)"} []
[2021-11-02 22:37:28] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /"" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php line 136 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /\" at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php:136, Symfony\\Component\\Routing\\Exception\\NoConfigurationException(code: 0): at /home/gruplvbk/public_html/csweb761/vendor/symfony/symfony/src/Symfony/Component/Routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:182)"} []


Could you help, with this problem.
Regards,

Hannes RodrĂ­guez :geek:
Lima, PerĂș

Re: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException

Posted: November 3rd, 2021, 9:28 am
by aaronw
The fact that switching ports fixed the issue, my assumption is that the previous port you were using was blocked. It's likely no non-secure (http) sites can be accessed through the server. Plausible explanations could be 1) IT staff made Apache configurations changes to the server 2) During setup Apache was configured to not run on port 80, but was never restarted (until the other day).

Could you attach the sync.log from a device that was failing to sync? There may be additional error information in there.

Re: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException

Posted: November 3rd, 2021, 10:20 am
by hannesrr
Hello,
Thank for your response.
Here I send you the sync.log, for more details.
sync (2).log
(7.6 KiB) Downloaded 221 times

Re: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException

Posted: November 3rd, 2021, 11:56 am
by aaronw
The error being issued is a 301 Moved Permanently. This occurs when you use an HTTP URL, and not when you use an HTTPS URL. If you want to use the non-secure HTTP connection I would check with your system admins and ask them to look at the Apache configurations. This is an issue with the server configuration and not CSEntry / CSWeb.