New answers tagged

1

Short answer: you need some form of seperate django server, yes. Long answer: nginx itself can only serve static files. It can read any file on your server and send it out via HTTP, but that is it. It does not speak PHP, Python, Java, ... by itself. If you would point nginx to a python file, it would just treat it as a text file and display the source code, ...


0

the OpenStack service listening on Port 8777 is 'Ceilomenter' for cloud telemetry - ceiliometer can run as evenlet or behind Apache as WSGI - if Apache is not starting it's presumed that it's configured to serve the ceilometer API - and conflicting with the eventlet process, look for something like this in your Apache sites: Listen 8777 <VirtualHost ...


1

I had transport = paramiko in my ansible.cfg to fix a different bug but seems to be causing issues with ForwardAgent=yes. Just removed the transport and it's working again.


0

All recipient in TO, CC, BCC will be passed on {recipient} parameter in your script. For example if you have a@example.net and b@example.net in TO address p@example.com in CC address z@example.org in BCC address me@example.info as sender then postfix will call your script with /usr/local/bin/my_script.py -f me@example.info -- a@example.net ...


0

The prefered way to do this is to use pythons logging module and write directly from inside the script instead of redirecting the output.


0

I would bet that you have one query which is particularly slow. When this runs the connections pile up behind it. I'd start by identifying the problematic query and then figure out how to fix it.


0

There's a great answer posted by silvado The code referenced is very similar to what you're trying to do. They give a great example using the paramiko.SSHClient library. http://stackoverflow.com/questions/14236346/elegant-way-to-test-ssh-availability If that doesn't work, there's also the option to use subprocess + OpenSSH: ...


1

My initial thoughts would be to check permissions on each level of the directory structure. It appears that at some point one of the directories does not provide permissions to the apache user which would be executing the django code. There are a lot of really fantastic posts about this topic already, you may find this one helpful. ...


0

Noap, you cant run python scripts by replacing the index.html. Doing so, you are serving a python file to the client/web-browser where he doesnt know how to interpret it. As you correctly stated, you may use uWSGI in order to execute python scripts on your server.


0

ssl.SSLError: [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed This suggests that the hostname you are connecting with doesn't match the hostname in the certificate. With mosquitto_pub try using the --insecure option. Alternatively, you've not got the right chain of CA certificates and so the server ...


1

You shouldn't install that old Ubuntu OS on modern HP hardware. Use period-correct hardware (DL-series G7) or virtualize. Here's HP's Ubuntu support matrix.


4

First - Let's take a step back... Looking at the Ubuntu LTS information, 10.04 LTS is no longer supported by Canonical and I would not install new server workloads on it. I'd explore all other alternatives before I deployed 10.04 for anything that matters. Seriously. If the problem is Python 2.6. A better question is: How can I install Python 2.6 on Ubuntu ...


0

Ubuntu has a link for Old Ubuntu Releases, including Ubuntu 10.04.4 LTS (Lucid Lynx).


1

sudo emerge cyrus-sasl sudo USE="minimal" emerge openldap Now you can install python-ldap package from pip.


0

I assume you are running ansible-playbook /blah/tasks/whatever.yml? If so, that's your problem. The proper structure for a playbook is: --- name: my playbook roles: - Arole - Brole # other playbok attributes tasks: - name: copy stuff copy: src=foo dest=bar - name: include cool tasks include: ../tasks/snafu.yml when: ...


0

i had the same problem. you can see the logs of the script with: cat /var/log/awslogs-agent-setup.log there were some problems with the locals and a export LC_ALL=C solved it for me.



Top 50 recent answers are included