Here is what I have:
root@relay-2:/var/run/baruwa# ps aux |grep baruwa
www-data 2391 0.0 1.2 121336 12816 ? S 06:19 0:00
/usr/bin/uwsgi --ini /usr/share/uwsgi/conf/default.ini --ini
/etc/uwsgi/apps-enabled/baruwa.ini --daemonize /var/log/uwsgi/app/baruwa.log
www-data 2430 0.0 2.8 246288 29332 ? S 06:19 0:00
/usr/bin/uwsgi --ini /usr/share/uwsgi/conf/default.ini --ini
/etc/uwsgi/apps-enabled/baruwa.ini --daemonize /var/log/uwsgi/app/baruwa.log
www-data 2431 0.0 2.5 246056 25592 ? S 06:19 0:00
/usr/bin/uwsgi --ini /usr/share/uwsgi/conf/default.ini --ini
/etc/uwsgi/apps-enabled/baruwa.ini --daemonize /var/log/uwsgi/app/baruwa.log
root 3118 0.0 0.0 9388 924 pts/0 S+ 06:31 0:00 grep
--color=auto baruwa
root@relay-2:/var/run# ls -l baruwa
total 4
-rw-r--r-- 1 root root 5 Mar 14 06:19 celeryd.pid
root@relay-2:/var/run# ls -l /var/log/baruwa
total 0
-rw-r--r-- 1 celeryd celeryd 0 Mar 13 17:47 celeryd.log
On 03/13/2013 11:19 PM, John Liss wrote:
Just a guess,
It might not have perms to make the log file...
I have:
drwxr-xr-x 2 celeryd celeryd 4096 Mar 12 18:40 baruwa/ under
/var/log/baruwa
How are you starting baruwa? With /etc/init.d/baruwa start ?
Use:
# ps aux |grep baruwa
celeryd 28502 2.3 3.0 552180 31112 ? Sl 22:14 0:04
python /usr/share/pyshared/baruwa/manage.py celeryd --time-limit=300
-E --beat -s /var/lib/baruwa/celerybeat-schedule -f
/var/log/baruwa/celeryd.log -l INFO
celeryd 28512 0.0 2.6 183240 26776 ? S 22:14 0:00
python /usr/share/pyshared/baruwa/manage.py celeryd --time-limit=300
-E --beat -s /var/lib/baruwa/celerybeat-schedule -f
/var/log/baruwa/celeryd.log -l INFO
celeryd 28518 0.3 2.9 491192 29756 ? S 22:14 0:00
python /usr/share/pyshared/baruwa/manage.py celeryd --time-limit=300
-E --beat -s /var/lib/baruwa/celerybeat-schedule -f
/var/log/baruwa/celeryd.log -l INFO
root 28600 0.0 0.0 9384 928 pts/0 S+ 22:17 0:00 grep
--color=auto baruwa
To see if it is running.
*From:*[email protected]
[mailto:[email protected]] *On Behalf Of *Raymond Norton
*Sent:* Wednesday, March 13, 2013 8:02 PM
*To:* Baruwa users list
*Subject:* Re: [Baruwa] Can't get celeryd to run / log empty
Just removed apparmor altogether and rebooted. Still get error
celeryd is not running. Remove /var/run/celryd.pid, restarted baruwa
and it recreated the pid, but still says celeryd is not running.
Nothing in the celeryd log.
Is there another log I can look at that might reveal the issue?
On 03/13/2013 06:54 PM, Jeremy McSpadden wrote:
Apparmor ?
--
Jeremy McSpadden
Flux Labs, Inc | http://www.fluxlabs.net
<http://www.fluxlabs.net/> | Endless Solutions
Office : 850-250-5590x101 <tel:850-250-5590;101> | Cell :
850-890-2543 <tel:850-890-2543> | Fax : 850-254-2955
<tel:850-254-2955>
On Mar 13, 2013, at 6:46 PM, "Raymond Norton" <[email protected]
<mailto:[email protected]>> wrote:
The only error I see is that celeryd is not running, but yet,
there is a pid
On Mar 13, 2013, at 6:09 PM, Jeremy McSpadden
<[email protected] <mailto:[email protected]>> wrote:
Not seeing any errors.
--
Jeremy McSpadden
Flux Labs, Inc | http://www.fluxlabs.net
<http://www.fluxlabs.net/> | Endless Solutions
Office : 850-250-5590x101 <tel:850-250-5590;101> | Cell :
850-890-2543 <tel:850-890-2543> | Fax : 850-254-2955
<tel:850-254-2955>
On Mar 13, 2013, at 5:52 PM, "Raymond Norton"
<[email protected] <mailto:[email protected]>> wrote:
I am setting up a Baruwa 1.1.2-4 box (Ubuntu 12.04)
and am having trouble getting celeryd to run. As in
the past, it always runs till I reboot the box the
first time. (everything else is working)
I nulled both the rabbitmq log and celeryd.log and
restarted box. This is what I have:
/var/log/baruwa/celeryd.log is empty, but there is a
celery.pid file in /var/run/baruwa
Rabbitmq log:
=INFO REPORT==== 13-Mar-2013::17:48:17 ===
Starting RabbitMQ 3.0.4 on Erlang R14B04
=INFO REPORT==== 13-Mar-2013::17:48:17 ===
Limiting to approx 924 file handles (829 sockets)
=INFO REPORT==== 13-Mar-2013::17:48:17 ===
Memory limit set to 398MB of 995MB total.
=INFO REPORT==== 13-Mar-2013::17:48:17 ===
Disk free limit set to 1000MB
=INFO REPORT==== 13-Mar-2013::17:48:17 ===
msg_store_transient: using rabbit_msg_store_ets_index
to provide index
=INFO REPORT==== 13-Mar-2013::17:48:17 ===
msg_store_persistent: using rabbit_msg_store_ets_index
to provide index
=INFO REPORT==== 13-Mar-2013::17:48:17 ===
started TCP Listener on [::]:5672
/etc/hosts:
relay-2
/etc/default/baruwa:
CELERYD_CHDIR="/usr/share/pyshared/baruwa"
CELERYD="/usr/share/pyshared/baruwa/manage.py celeryd"
export DJANGO_SETTINGS_MODULE="settings"
CELERYD_NODES=$(hostname -s)
CELERYD_OPTS="--time-limit=300 -E --beat -s
/var/lib/baruwa/celerybeat-schedule"
CELERYD_LOG_FILE=/var/log/baruwa/celeryd.log
CELERYD_PID_FILE=/var/run/baruwa/celeryd.pid
CELERYD_USER="celeryd"
CELERYD_GROUP="celeryd"
Rabbitmq and settings.py are configured the same for
user, database and password
Rabbitmq config:
rabbitmqctl add_user baruwa password
rabbitmqctl add_vhost baruwa
rabbitmqctl set_permissions -p baruwa baruwa ".*" ".*"
".*"
rabbitmqctl delete_user guest
settings.py :
DATABASES = {
'default': {
# Add 'postgresql_psycopg2', 'postgresql',
'mysql', 'sqlite3'
# or 'oracle'.
'ENGINE': 'django.db.backends.mysql',
# Or path to database file if using sqlite3.
'NAME': 'baruwa',
# Not used with sqlite3.
'USER': 'baruwa',
# Not used with sqlite3.
'PASSWORD': 'password',
# Set to empty string for localhost. Not used
with sqlite3.
'HOST': 'localhost',
# Set to empty string for default. Not used
with sqlite3.
'PORT': '',
'OPTIONS': { 'init_command': 'SET
storage_engine=INNODB, SESSION TRANSACTION ISOLATION
LEVEL READ COMMITTED;' },
--
Raymond Norton
LCTN
952.955.7766
_______________________________________________
Keep Baruwa FREE - http://pledgie.com/campaigns/12056
--
This message has been scanned for viruses and
dangerous content by *MailScanner*
<http://www.mailscanner.info/>, and is
believed to be clean.
--
This message has been scanned for viruses and
dangerous content by *MailScanner* <http://www.mailscanner.info/>,
and is
believed to be clean.
--
This message has been scanned for viruses and
dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
believed to be clean.
_______________________________________________
Keep Baruwa FREE - http://pledgie.com/campaigns/12056
_______________________________________________
Keep Baruwa FREE - http://pledgie.com/campaigns/12056