Dispatcher has detected a cyclic routing causing stability problems in phalcon - phalcon

When i am trying to access any controller following error is coming.
My code is working fine in my local machine where Apache server is running.
When i am uploading same code in my server machine and try to use. Below given error is coming.
In my server NGINX web sever is running.
Dispatcher has detected a cyclic routing causing stability problems
#0 [internal function]: Phalcon\Mvc\Dispatcher->_throwDispatchException('Dispatcher has ...',
1)
#1 [internal function]: Phalcon\Dispatcher->dispatch()
#2 /home/vtermina/public_html/api/v2/public/index.php(31): Phalcon\Mvc\Application->handle()
#3 {main}

This error occurs in two cases:
you have declared two same named routes
you are dispatching actions from A to B to A couple of times.
If secont, it is possible that your NGNIX configuration prevets Phalcon from receiving full list of parameters. But it will be difficult to guess it out w/o any code and configuration.

Related

Yii logs showing exception for wp-login.php, however, I don't have WordPress

I am using Yii 1.x, Yii internal log file is showing an exception for wp-login.php, however, I don't have WordPress installed on my server. (I get this message on my local as well)
XXXX/XX/XX XX:XX:XX [error] [exception.CHttpException.404] exception 'CHttpException' with message 'Unable to resolve the request "wp-login.php".' in /var/www/html/framework/web/CWebApplication.php:286
Stack trace:
#0 /var/www/html/framework/web/CWebApplication.php(141): CWebApplication->runController('wp-login.php')
#1 /var/www/html/framework/base/CApplication.php(180): CWebApplication->processRequest()
#2 /var/www/html/index.php(18): CApplication->run()
#3 {main}
REQUEST_URI=/wp-login.php
Can anyone tell me why I am receiving such error?
This is log for 404 Not Found error. So this only means that someone is trying to access /wp-login.php URL in your domain. WordPress is the most popular CMS and internet is full of bots which searches WordPress installation on every server/domain and tries to brute-force login form. So you should not worry about it - if you don't have a WordPress installation, then bot definitely will not be able to login into it. :)
But it may be good idea to exclude 404 HTTP errors from regular application logs - bots will generate hundreds of such logs in your app, and usually you want to ignore it (as opposed to regular logs).
[
'class' => 'CFileLogRoute',
'levels' => 'error, warning',
'except' => [
'exception.CHttpException.404',
],
],

Troubleshooting Web App process restarting

Our web app process is restarting regularly and we are unable to determine the reason.
When looking into Application Events (using the 'Diagnostics and solve problems' blade in the Azure Portal), there exists a bunch of the following Info logs by 'IIS AspNetCore Module'
Event ID 1005:
Failed to gracefully shutdown process '14040'.
Event ID 1001:
Application 'MACHINE/WEBROOT/APPHOST/myapplication__xxxx' started process '31628' successfully and is listening on port '17663'.
There is nothing fishy with general resource usage and nothing in our application logs.
What is the best way to troubleshoot the reason behind these process restarts?
EDIT 1:
After fiddling around with web logging in the Web App's Diagnostic Logs, I now get an error logged from W3SVC-WP after each restart, but the message is nonsense:
1<br/>5<br/>50000780
EDIT 2:
Event Id 2284 refers to this:
FailedRequestTracing module failed to write buffered events to log
file for the request that matched failure definition. No logs will be
generated until this condition is corrected. The problem happened at
least %1 times in the last %2 minutes. The data is the error.
I'm not sure if this could be related to our Diagnostic Logs configuration, but seems unlikely.
EDIT 3:
As per Brando Zhang's suggestion, I've used the Web App Crash Diagnoser extension and tried monitoring 2nd Chance Unhandled Exceptions on both my application process AND on w3wp, but nothing is dumped.
From how I understand it, 1st Chance Exceptions will not crash the process, so no need to monitor these.
Very likely application is crashing due to fatal exception and causing the restarts.
On Azure App Service platform.You can use the Diagnostics as a
Service (DaaS) to troubleshoot this
It can also do an analysis and tell you the root cause most of the time.More step by step infofrmation can be found on this msdn blog .Also refer tips for using crash diagnoser

Apache Solr Http Transport Exception

I've implemented Solr on an Ubuntu 14.04 server and it works - I can login, see the dashboard, the core, no errors, etc…
Now I'm trying to install/config "Open Semantic Search" - looks like a promising tool! - and when try to hit the main page I get this error:
Error:
exception 'Apache_Solr_HttpTransportException' with message ''404' Status: Not Found' in /var/www/html/search/Apache/Solr/Service.php:338 Stack trace: #0 /var/www/html/search/Apache/Solr/Service.php(1170): Apache_Solr_Service->_sendRawGet('http://localhos...') #1 /var/www/html/search/index.php(749): Apache_Solr_Service->search('*:*', 0, 10, Array) #2 {main}
I've messed about with the "Open Semantic Search" config file, changed localhost to the ip, tried different paths, looked through the service.php and index.php, used the domain vs. localhost - I'm just at a loss. I think it's a path issue - maybe permissions?
If anyone has a solution - great! But if someone could just explain that error to me like I was born in the 60's ;) that would be awesome.

Endeca initialize_services.bat error

I'm trying to create a sample application in endeca. When i run the initailze_services.bat I'm getting the following error log.
[01.30.15 11:54:07] SEVERE: Caught an exception while checking provisioning.
Caused by com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
com.endeca.soleng.eac.toolkit.application.Application setDefinition - Caught exception while defining application 'ATGen'.
Caused by com.endeca.eac.client.EACFault sun.reflect.NativeConstructorAccessorImpl newInstance0 - null
Failure to initialize EAC application.
I tried solving this issue by deleting the state folder in platform services and then running it again. But still the same issue persists. Any help appreciated.
EACCommunicationException can mean a few things:
The EAC Central Server isn't running (fixed by ensuring that you've successfully started all Endeca services (Platform Services and Tools and Frameworks)
EAC Central Server is running, but couldn't be reached (fixed by ensuring you have the correct port and hostname specified for eacHost and eacPort in config/scripts/AppConfig.xml, and that you have no firewall rules blocking communication with EAC Central Server)

Error when deploying Silverlight5 app: Load operation failed for query

I am having trouble deploying a Silverlight5 application. I'm releasing to a Windows server 2003 R2 running IIS6. This is the error that I get:
Load Error -
System.ServiceModel.DomainServices.Client.DomainOperationException:
Load operation failed for query 'GetvSiteSetupStatus'.
[HttpWebRequest_WebException_RemoteServer]
Arguments: NotFound
Debugging resource strings are unavailable. Often the key and arguments provide
sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.10411.0&File=System.Windows.dll&Key=HttpWebRequest_WebException_RemoteServer
---> System.ServiceModel.CommunicationException: [HttpWebRequest_WebException_RemoteServer]
From what I can see the control loads, but no data is shown. Running Profiler on the server shows that the queries are not run on the database at all. I suspect it to be a WCF issue, but don't know where to start looking. The error is not very clear.
Any help will be appreciated.
Thanks
I figured out my error. I was testing my page with .html instead of .aspx.