0
votes
0answers
77 views

uwsgi complains about python application not found

looks like quite common with uWSGI application, but still can't find any valuable solution. I ma working on ubuntu 12.04 with uwsgi 1.0.3 and python2.7 Here is my config.ini file: [uwsgi] uid = ...
0
votes
0answers
37 views

Run Django on Gunicorn with Python 3.3

How would one go around to run Django on Gunicorn using Python 3.3 on an Ubuntu 12.04 LTS Server? As Ubuntu 12.04 LTS is dependend in Django 2.7, Python 3.3 has to be installed side-by-side with ...
0
votes
1answer
146 views

Apache Processes in top more than MaxClients

We have Apache running with the worker MPM and have MaxClients set to 6, yet when I open up top I can see more than 6 Apache processes running. 13 visible in the screen dump below. Can someone explain ...
0
votes
2answers
56 views

Setting up mail delivery to Django on Ubuntu

I have a server running Python 2.7 and Django 1.6. I'd like to allow Django to send and receive emails with as little overhead as possible. I'd prefer not to even have a Mailbox set up for Django. ...
0
votes
1answer
61 views

WMS Service Tilecache Python 403 error

I´m trying to migrate a Webserver + Mapserver to a new Ubuntu 12.04 machine. Everythings (apache2, mapserver 6.2.1 ) working so far, except a tilecached wms service (tilecache 2.11-2 is installed) ...
1
vote
0answers
189 views

Ubuntu Locales Incorrect for Python Application

I have a NGINX -> UWSGI -> Django(python) stack installed on an Ubuntu AMI on Amazon EC2. I've run into a problem when accessing a file with unicode characters in the name. The exact output from the ...
0
votes
1answer
102 views

How to have PHP and mod_wsgi python app on the same domain?

I am using apache with mod_wsgi (python3) on ubuntu 12.04. I have a python app (bottle) which is at www.mysite.com/ In my python app I have routes like www.mysite.com/abbb?q=blab I would like a ...
0
votes
0answers
84 views

Ubuntu 12.04 64-bit virtualenv memory limit

We have a server running 64-bit Ubuntu 12.04, which is serving a django application running under virtual environment, along with a celery worker. The problem is no process in the server uses more ...
-1
votes
1answer
94 views

How install flask on server? [closed]

I developed an application with python flask framework.I have account in shared host. they support python and i have ssh access to server. But when i tried pip install flask and easy_install ...
1
vote
1answer
151 views

UWSGI can't import module 'mysite' with nginx and flask

I'm new to using uwsgi and nginx and I haven't been able to figure out why I am getting this error from uwsgi: ImportError: No module named mysite unable to load app 0 (mountpoint='my_ipaddr|') ...
-1
votes
2answers
89 views

Loading environment vars on sudo -u [closed]

I have a user named www-app and it has some environment vars set on its .bashrc file. Now from another user, say ubuntu how can I ran sudo -u www-app python script.py and will load all the environment ...
1
vote
1answer
515 views

Unable to install python2.7-dev on Ubuntu 12.04.2 LTS

The command $ sudo apt-get install python2.7-dev yields this result: Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be ...
0
votes
1answer
1k views

Ubuntu 13.04 errors with Python PIP install

After trying to use Ubuntu 13.04 instead of Ubuntu 12.10 to run my Chef recepis against I am getting an error when it tries to run sudo pip install cElementTree supervisor STDOUT: ...
0
votes
4answers
293 views

Apache taking ownership of file and folder

I have django site running on Ubuntu with apache2 configured with mod_wsgi. The media (folder where user uploaded files go) is owned by ubuntu user (with sudo access) and the group of media folder is ...
-6
votes
1answer
79 views

Deleted part of /usr/bin [closed]

I was navigating on my Ubuntu 12.10 64bit box through Windows WinSCP with root user and suddenly pressed "delete" "enter" when I was on usr directory. I immediately cancelled the delete process and ...
0
votes
1answer
124 views

python script crash prevent/reason check

I run a python script several days ago using 'python a.py &' on my Ubuntu 12.04. I assume it's running all the time, but just now I found it crashed 2 days ago. Is there any log information on ...
1
vote
1answer
134 views

amazon EC2 x11 problems

We are trying to set up a virtual development / research cloud environment for our students. Students need to be able to log-in, launch python IDE, and plot some graphs for their homework. We are ...
0
votes
0answers
133 views

Postgres segfault on Ubuntu 12.04 64

i have a unbelivable problem: Ubuntu server 12.04 64 bit running on Wmware Infrastructure, postgres 9.2 and django connecting via psycopg. Randomly postgres crashes with segfault, si i restart it an ...
0
votes
1answer
1k views

Ubuntu - Supervisord and virtualenv

I'm attempting to run a series of Python apps from supervisor. It works fine on Mac OSX, but when I attempt to run the same app on Ubuntu, supervisor doesn't seem to be activating the virtualenv so my ...
2
votes
2answers
1k views

Create an Amazon EC2 instance with automatic access to private S3

I was wondering. Say I have a file in a private S3 bucket, and I then deploy an EC2 instance which has something like that in its rc.local: GET http://privateamazons3url.com How can I make it so ...
1
vote
0answers
85 views

Supervisord leaking child processes launched through shell script

I'm using supervisor 3 to daemonize a python process, which is launched through a bash script that sets up some configuration for python. The bash script runs python program in the foreground, FWIW. ...
0
votes
1answer
242 views

Upstart can't determine my process' pid

I'm writing an upstart script for a small service I've written for my colleagues. My upstart job can start the service, but when it does it only outputs queryqueue start/running; note the lack of a ...
0
votes
2answers
393 views

uWSGI error: my master disconnected: i will kill myself. How it happened

error message: uWSGI worker 5 screams: UAAAAAAH my master disconnected: i will kill myself !!! I use uWSGI as server to hold my pyramid app on Ubuntu 12.04
1
vote
0answers
144 views

Apache will not start with mod_wsgi enabled

I'm trying to run Apache with mod_wsgi to run Python scripts. The server is running Ubuntu 12.04 with Zend Server installed, but when I enable the wsgi module Apache will not start. I get an error ...
1
vote
1answer
696 views

Accessing port 8000 on ubuntu in vmware fusion

Disclosure: on the server, I am a nooooob. There I said it. so I have a vm running ubuntu with a BRIDGED network connection and running a python web-server on port 8000. When I go to ...
0
votes
1answer
349 views

Setting Up Redis-py in ubuntu

I am trying to install redis-py or redis-rb (preferably redis-py) but none of the sites I visit and the blogs I have read have provided a solution that has been satisfactory. Can anyone please tell me ...
0
votes
2answers
609 views

Python script stops responding when run for a long time

I am running a python script as a service in Ubuntu 11.10(using upstart for that). When started, the script runs fine and responds as expected. But after the script is running in background for long ...
1
vote
0answers
337 views

Run python script as a service on Ubuntu 11.10

I am facing the following problem. I want to run a python script as a service on Ubuntu 11.10 system (already mentioned in the following link: ...
1
vote
3answers
339 views

How to execute further commands in a Linux startup script after starting a process

I am trying to write a startup script that executes an application (MapProxy) after a server reboot. My server runs Ubuntu 11.04 Natty 64 bit. In the script, I execute a python script exec python ...
2
votes
5answers
5k views

Postgres used in Ubuntu 12.04

I am trying to get django running on an ubuntu 12.04 release using postgres (clean install). To get it running it used to be that you would have to edit the /etc/postgresql/9.1/main/pg_hba.conf file. ...
3
votes
1answer
1k views

Installing mod_wsgi with python 2.7 on ubuntu

I tried to install mod_wsgi on my ubuntu server using the package manager, but noticed it depends on python 2.6. I'm using python 2.7, and would rather avoid installing 2.6... Does mod_wsgi really ...
0
votes
1answer
620 views

I alternated my system default python version to python2.7, but the apt-get still use python2.6

Ubuntu , I changed my system default python version from python2.6 -> python2.7. after sh-3.1$: update-alternatives --install /usr/bin/python python /usr/bin/python2.7 2 sh-3.1$: sudo ...
2
votes
1answer
651 views

How to reduce celeryd memory consumption?

I'm using celery 2.5.1 with django on a micro ec2 instance with 613mb memory and as such have to keep memory consumption down. Currently I'm using it only for the scheduler "celery beat" as a web ...
1
vote
1answer
118 views

MySQL in VMWare Ubuntu 11.10 64bit, Configuration

Can anyone suggest an optimal setting for what I'm doing? (Note that this is a one time job, after finishing my code, I'll put this back to development setting.) I am setting up a 64bit Ubuntu 11.10 ...
1
vote
1answer
275 views

Can't install python-setuptools with yum on Ubuntu. Missing repolist [closed]

I can't install on Ubuntu using the following command sudo yum install python-setuptools I get this message Setting up Install Process No package python-setuptool available. So I checked my ...
6
votes
4answers
5k views

Ubuntu 11.10 with Nginx and uWSGI

I'm trying to get a LNP [Linux Nginx Python] stack (is that even a thing? heh) going, but I'm having some difficulties. A lot of blog posts and documentation on doing this seems to revolve around ...
0
votes
3answers
491 views

Where to see logs of a program that crashes on Ubuntu Server?

I have been running a service (a python script using twistd library) as a non-root user that stays in the background. I've been noticing that it crashes at random times and I want to understand why. ...
4
votes
1answer
2k views

UWSGI and NGINX for Python Apps on Ubuntu 11.10

I am trying to find an optimal way to set up my server to use NGINX and UWSGI to serve python applications. The following has worked so far: Initial setup: sudo apt-get install nginx uwsgi ...
1
vote
3answers
410 views

How can I make check_nrpe wait for my remote script to finish executing?

I have a python script that's being used as a plugin for NRPE. This script checks to see if a process if running on a virtual machine by doing an SSH one-liner with a "ps ax | grep process" attached. ...
-2
votes
3answers
247 views

Ubuntu software stack to mimic Active Directory auth

I'm going to have an Ubuntu 11.10 box in a customer's data center running a custom webapp. The customer will not have ssh access to the box, but will need authentication and authorization to access ...
0
votes
1answer
467 views

Ubuntu Apache Gives Internal Server Error 500

So I'm trying to set up a OSQA server locally as a test run, so that when I set it up on a externally hosted server it will all go smoothly. I'm following this tutorial and have been going well so ...
1
vote
1answer
601 views

Is there a way to force pid in upstart script

I am running a uwsgi-python server under ubuntu 10.04. I use upstart to start/stop a uwsgi daemon(daemonize option is set for uwsgi). Start and stop commands work fine, but when i try to reload my ...
0
votes
1answer
145 views

Running Django test server on Amazon instance

I am trying to run basic Django app on Amazon like: managy.py runserver 80 It starts running, but I can't connect to Django from browser to this port, FF can't connect. My Security Groups are set up ...
2
votes
2answers
91 views

Is there a way to add a ppa using the python apt module?

I need to add a ppa to remote servers using a python script. The bash equivalent of what I want to do is: $ add-apt-repository ppa:user/ppa-name I'm assuming it would look something like this: ...
0
votes
1answer
1k views

Errors related to python version added to error log when I start apache2

When I start apache I am getting those errors: [Tue Jun 14 02:28:58 2011] [error] python_init: Python version mismatch, expected '2.6.5', found '2.6.6'. [Tue Jun 14 02:28:58 2011] [error] ...
3
votes
2answers
947 views

Attempting to run Django with start Apache2 mod_wsgi on Ubuntu Lucid Lynx without success

I have a small vps with a minimum install of ubuntu lucid-lynx with about 256mb memory, it's newly installed with nothing special running on it. I'm trying to deploy django to it, while I'm ...
1
vote
2answers
1k views

Postfix refusing to relay mail from local client

I'm trying to get a python script to send mail (using smtplib.SMTP), but postfix is refusing to relay the message. I don't use the Ubuntu 10.10 Virtualmin server as a mail server (I happen to use ...
1
vote
3answers
724 views

Why, when everything is working properly, an apache restart writes into error.log?

This is just a minor nitpic, but I wonder if anyone can tell me the reason - when I restart apache, these lines get written into /var/log/apache2/error.log [Thu Mar 24 10:20:56 2011] [warn] mod_wsgi: ...
2
votes
1answer
139 views

Is it safe to assume that python interpreter is installed on Debian/Ubuntu server?

Do servers get python as one of basic system packages? Can Debian or Ubuntu live without working python interpreter?
2
votes
3answers
224 views

Private Emails Between Computers In Network?

I have about a dozen computers connected in a network. All have Ubuntu 10.04 installed. Every computer is running unique processes, and sometimes I have the need to send a message from one computer ...