[GMG-Devel] Got my instance up and running! (was: having issues with Celery)

Kushal Kumaran kushal.kumaran+goblin at gmail.com
Tue Jan 7 01:38:59 EST 2014


Damien Radtke <damienradtke at gmail.com> writes:

> Technically I'm running systemd, but my init script is stored in
> /etc/init.d and is modeled after
> this<https://github.com/joar/mediagoblin-init-scripts/blob/master/mediagoblin-celeryd.sh>one.
> The process is kicked off around line 115, and I haven't found a good
> way of shortening that call that gets the log and pid files right.
>

Well, someone has documented their mediagoblin setup under systemd here:
http://telavivmakers.org/index.php/InstallingMediaGoblin

Maybe it's of some help?  The unit file certainly looks simple enough.

>
> On Sun, Jan 5, 2014 at 11:51 PM, Kushal Kumaran <
> kushal.kumaran+goblin at gmail.com> wrote:
>
>> Damien Radtke <damienradtke at gmail.com> writes:
>>
>> > I recently colocated a Linux server for personal use, and finally got my
>> > Mediagoblin up and running: http://74.122.197.234:6543/
>> >
>> > It turns out that the problems I was having with Celery (most of them,
>> > anyway) were caused by a bug in the EXIF.py library, since it was
>> breaking
>> > on one of my jpg's (infinite loop near line 1732). Other images, however,
>> > seem to work fine.
>> >
>> > A couple things are still missing. I haven't tested it with anything
>> > besides images, e-mail registration doesn't work (not sure if I want to
>> > enable it, though), and I want to try and streamline some of the init
>> > scripts a little more. It turns out that Celery is a pain in the ass to
>> > properly daemonize, especially when compared with the paster that does it
>> > so well.
>> >
>>
>> What init system are you using on your server?  I'm running upstart on
>> my ubuntu server and the configuration is trivial.  My celeryd startup
>> script follows, which you might be interested in.  Even with sysvinit,
>> it should not be too complicated, other than the standard boilerplate.
>> Take a look at the start-stop-daemon utility if you're running debian.
>>
>> ===== File /etc/init/mediagoblin-celeryd.conf =====
>> author "Kushal Kumaran <kushal.kumaran at gmail.com>"
>> description "Mediagoblin celeryd process"
>>
>> start on started network-services
>> stop on stopping network-services
>>
>> env VENV=/srv/media.locationd.net/mediagoblin
>>
>> console log
>> chdir /srv/media.locationd.net/mediagoblin
>> umask 022
>>
>> setuid mg
>> setgid mg
>>
>> script
>>  CELERY_CONFIG_MODULE=mediagoblin.init.celery.from_celery
>>  export CELERY_CONFIG_MODULE
>>  $VENV/bin/celeryd --pool=eventlet -l INFO -f
>> /var/log/mediagoblin/celeryd.log
>> end script
>>
>> ===== End file =====
>>
>> > I may be blogging about this in the near future.
>> >
>> > Thanks for making such a great piece of software!
>>
>> --
>> regards,
>> kushal
>>
>> _______________________________________________
>> devel mailing list
>> devel at mediagoblin.org
>> http://lists.mediagoblin.org/listinfo/devel
>>
>>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: not available
URL: <http://lists.mediagoblin.org/pipermail/devel/attachments/20140107/284c8b50/attachment.sig>


More information about the devel mailing list