Problem Pentaho 9.1 when using CDE Dashboard - pentaho-cde

I have a problem in an installation of Pentaho 9.1 that I have made in our environment, and it is the following.
I have successfully installed Pentaho 9.1 CE in our environment, following the documentation correctly. Since we have an nginx balancer in front of us to redirect the requests that are made depending on which applications, send them to the corresponding web server.
For our Pentaho installation, we have changed the URL path, so that instead of accessing through http://servername/pentaho we access through http://servername/apps/dashboards/pentaho. The only change that has been made in Pentaho, is to change the path within Tomcat so that it takes this URL by renaming the folder where Pentaho is contained to apps#dashboards#pentaho.
In this way we correctly access the changed URL. But we have a problem, and that is that when we go to access the CDE plugin to generate dashboards, we see that it does not load and we cannot do anything. Opening "Developer Tools" of the browser (firefox, chrome...) in Console, I can see the following errors:
XHRPOST http://example.com/apps/plugin/pentaho-cdf-dd/api/syncronizer/syncronizeDashboard
[HTTP/1.1 404 Not Found 47ms]
XHRPOSThttp://example.com/apps/dashboards/pentaho/api/repos/pentaho-cdf-dd/tmp/.cache/lang/messages.properties
[HTTP/1.1 403 Forbidden 53ms]
XHRPOSThttp://example.com/apps/dashboards/pentaho/api/repos/pentaho-cdf-dd/tmp/.cache/lang/messages_en.properties
[HTTP/1.1 403 Forbidden 53ms]
XHRPOSThttp://example.com/apps/dashboards/pentaho/api/repos/pentaho-cdf-dd/tmp/.cache/lang/messages_es-ES.properties
[HTTP/1.1 403 Forbidden 52ms]
XHRGET http://example.com/apps/plugin/pentaho-cdf-dd/api/plugins/get
You can see that when you access File > New > CDE Dashboard it doesn't load because it doesn't build the full URL correctly, and that's why it returns a 404 on some calls.
How can I solve this problem?
Best regards

Related

GoLang SPA returning 500 Internal Server Error on Refresh only

I have a golang API app that is currently serving double-duty as a Single Page App server with static content using the method shown here: https://hackandsla.sh/posts/2021-11-06-serve-spa-from-go/
Everything is working great in terms of navigation until users try to refresh URIs with encoded JSON in them. For example:
/licenses
will refresh file and draw the page as it would normally have appeared through internal history.push()
/licenses/show/%7B"options":%7B"container":"home","field":"date","order":"desc"%7D,"license":"00001a"%7D
will cause the 500 error.
I did the initial development with IIS as a web server so these Refresh errors never happened in that environment. And when the server is ready to be deployed I plan to use Caddy and reverse proxy the API and am assuming it will handle the Refreshes with the same aplomb as IIS.
But for now I am hoping to run tests against my simple server so I'd like to solve this issue out of curiosity in addition to development expediency.
Bottom line: What cause golang http.ListenAndServe to return 500 errors?
UPDATE:
As I need to be able to test and hand off for others I have converted to a querystring which http.ListenAndServe is happy with:
/licenses/show/%7B"options":%7B"container":"home","field":"date","order":"desc"%7D,"license":"00001a"%7D
causes 500 error
/licenses/show?state=%7B"options":%7B"container":"home","field":"date","order":"desc"%7D,"license":"00001a"%7D
works fine

Drupal 7 Autocomplete

An AJAX HTTP request terminated abnormally.
Debugging information follows.
Path: htps://MYSITE/index.php?q=user/autocomplete
StatusText:
ResponseText:
ReadyState: 4
I get that error when I try to type in the autocomplete box that is installed from core drupal.
I've read up on documentation on patching these files https://www.drupal.org/node/1232416 and did so.
In my console I get an error of :
XMLHttpRequest cannot load htps://SITE_B. Redirect from htps://ANOTHERSITE' to 'htps://SITE_B' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'htps://MYSITE' is therefore not allowed access.
So I researched CORS and added htp://stackoverflow.com/questions/13421463/htaccess-access-control-allow-origin
suggestion about .htaccess but to no avail.
I'm running drupal 7.51 on Dev Desktop 2 on a localhost. As well I have it running live, but want to fix it locally first. Any suggestions will help, I've research for hours now.
After countless hours and cold showers, I found out my answer. There was a bad php script in one of the nodes that used Drupal_goto(). That is how I got XMLHttpRequest. I followed https://drupal.stackexchange.com/questions/22825/how-to-find-bad-php-node-that-makes-search-cron-fail to find out where my php script failed me at.

site - is currently unable to handle this request Http error 500

once i clicked on "Proceed to checkout" button, we are getting below error
The sitename.com is't working
www.sitename.co.nz is currently unable to handle this request
Http Error 500
even in backend when we open some orders, than also same error in order-view page.
we have shared hosting.
It was a problem with magento core file cc.php file , one of our devoloper edited it in wrong way, once i replaced the
original file, it worked fine.

Relationship between http 404 error and urls

I'm a bit confused with when http 404 will occurs.
Using Spring petclinic as example.
https://github.com/spring-projects/spring-petclinic/
Test and result
http://localhost:9966/petclinic/ -> load successfully
http://localhost:9966/petclinic/abdfef -> http 404
http://localhost:9966/ -> blank page
I clearly remember application will provide an 404 if I enter xxx://localhost:9966/
May I know what determines the 404 from happening ? and how do I enable it?
I'm going to pretend for this that your document root is /var/www
When you go to http://localhost:9966/petclinic/abdfef, your web server attempts to load /var/www/petclinic/abdfef, which doesn't exist.
When you go to http://localhost:9966/, it looks for /var/www/
It does exist, but it may not have an index or default file. Some web servers will display a 404 error, some will display a 403 error, and some will give you a list of all files in that directory. It depends on the web server as well as how you have the web server configured.
For more information

Can not Browse any Asp.Net File system website in any browser

I am making asp.net website in my system using web location File System. i try to browse my localhost website but it cannot be browse in any browser(Firefox,chrome etc). after searching error on google i also made changes in LAN setting of browser but still can't get any result.
In Chrome i am receiving following error
"This webpage is not available
The webpage at http://localhost:2625/Website/Default.aspx might be temporarily down or it may have moved permanently to a new web address.
Error 101 (net::ERR_CONNECTION_RESET): Unknown error."
In Firefox i am receiving following error
"The connection was reset
The connection to the server was reset while the page was loading."
How can i resolve this problem ?
i have resolved my problem.
i got help from following link
http://forums.asp.net/t/1437368.aspx

Resources