mediagoblin-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Kushal Kumaran
Subject: Re: [GMG-Devel] Got my instance up and running! (was: having issues with Celery)
Date: Tue, 07 Jan 2014 12:08:59 +0530
User-agent: Notmuch/0.17+7~gc734dd7 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-pc-linux-gnu)

Damien Radtke <address@hidden> 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 <
> address@hidden> wrote:
>
>> Damien Radtke <address@hidden> 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 <address@hidden>"
>> 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
>> address@hidden
>> http://lists.mediagoblin.org/listinfo/devel
>>
>>

Attachment: pgpbDW95Fr5yn.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]