I installed graphhopper. According to https://github.com/graphhopper/graphhopper/issues/118 I should look into jetty's server logs.
Where are the logs of jetty server?
Is there an exception or stacktrace in them?
Do I need to enable them or are they automatically generated?
System: Debian.
Where are the logs of jetty server?
Is there an exception or stacktrace in them?
Do I need to enable them or are they automatically generated?
System: Debian.
The logs are printed directly to the console. Your problem is with the port - why not use the default 8989?
Related
I setup a django "hello world" app IIS (Windows Server 2012). The application is run successfully using the Django web server. However, when I tried to install in on IIS (following the instructions provided here) I get an HTTP 500 error with the message "python.exe - The FastCGI process exited unexpectedly".
I have seen numerous related posts on stackoverflow, but nothing seems to work for me. Based on the guidance
I have checked file permissions on both the app and virtual environment folder but they in my opinion this should not be the issue as the users IUSR and IIS_IUSRS can Read & execute, Read and List folder contents.
I have tried also to run wfastcgi-enable based on the instructions provided by this post but I get the error "ensure your user has sufficient privileges and try again". Please note that I tried running it both from an "elevated" command line and also power shell with no results.
I have reinstalled python to make sure it is installed for "all users" (as suggested by this post) but I get an error "0x80070659 - This installation is forbidden by system policy".
I looked in the Event viewer but I could not find something useful.
My questions:
Is there a specific log that I should check? How could I find it?
My django app does not have a web.config file. Should I create one?
My setup: Windows Server 2012 R2, IIS 8.5, Python 3.9.1
My current set up has a Django project running on Windows 2016 IIS.
The project is hosted on GitHub for collaboration and I would like to set up a GitHub webhook so whenever there's a push to master branch from any of the collaborators, the IIS Server will run a "git pull" to update the project on the server.
What is normally the setup for this?
What I have tried so far is to create an endpoint in the Django project, this endpoint whenever called will run Python subprocess to run "git pull" command in the project itself. However, whenever I run it, it get a 500 response from IIS.
Thanks #VonC for helping.
I have looked to the log (which was the one in XML) but it wasn't much help.
What I'm posting here was my workaround, not exactly to the answer for the question above.
I used django-background-tasks to add the command subprocess.run(['git', 'pull']) as a task to run later (after a few seconds after that by the #background decorator).
Error 500 means the IIS server throws an error.
You need to check said IIS server logs in order to check at what point in the execution of the webhook endpoint script the error occurs.
How can I allow public access to jetty-ajp service? I am able to connect locally ajp://localhost:8009/ but not from a remote node using schema ajp://192.168.2.1:8009/ . I achieved it with port forwarding but want to know if there is an another way.
Thanks,
AJP is not supported by Eclipse Jetty.
If you must use Apache Httpd as a front end of Eclipse Jetty, know that the Eclipse Jetty project recommends using the mod_proxy services of Apache Httpd.
See:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=425244
https://github.com/eclipse/jetty.project/issues/134
If you are running an older version of Jetty that had AJP support, know that all of those versions are now EOL (End of Life).
https://www.eclipse.org/jetty/documentation/current/what-jetty-version.html
I'm working with Django Rest Framework and Django Rest Framework JWT, but I'm running into an issue in regards to local behavior vs external behavior.
When I make a POST request to get a JWT token, everything works as desired both locally and on my EC2 instance. However, once I have the token, when I make a request to my server that requires authentication, only my local server returns the expected response. On my deployed server, I get the following error:
{"detail":"Authentication credentials were not provided."}
What I've tried so far:
Editing http.conf by sshing into my server and enabling WSGIPathAuthorization. (saw a similar post here and tried the solution)
What could be causing this behavior? My local machine and my deployed code are identical, leading me to believe that this has something to do with server-side configuration.
All help is appreciated. Thanks!
You mentioned ElasticBeanstalk.
You can add this to your container commands which will be executed during deployment.
01_wsgipass:
command: 'echo "WSGIPassAuthorization On" >> ../wsgi.conf'
Simply restarting Apache after enabling WSGPPathAuthorization fixed my error. For those of you who encounter something similar, here's what I did:
SSH into the server
Navigate to where your http.conf file is stored (in Apache, this is usually
etc/httpd/http.conf)
Edit http.conf, adding WSGIPathAuthorization On.
Restart Apache by running sudo service httpd restart.
This problem usually occurs when you do configure wsgi with apache on EC2 instance.
Bascially its the problem in apache configuration,
it has nothing to do with AWS EC2.
As apache bydefault do not process Authorization headers, so in order to make that happen we need to configure its files.
For ubuntu
cd /etc/apache2/apache2.conf
paste the following line
WSGIPassAuthorization On
My rap projects runs on an equinox jetty server. The bundles are started and I'm able to connect to it by going to localhost. Now I want to configure the equinox jetty bundle with some personal settings but I don't have a clue where to start.
Is there some way to configure it?
Thanks
In my memories, you have to make a Jetty fragment with an /etc/jetty.xml or default-jetty.xml file.