mediagoblin-devel
[Top][All Lists]
Advanced

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

Re: [GMG-Devel] unsaved pending instance, orphan, not attached to any pa


From: Nagarjuna G
Subject: Re: [GMG-Devel] unsaved pending instance, orphan, not attached to any parent MediaEntry
Date: Sun, 8 Apr 2012 22:50:54 +0530

On Sun, Apr 8, 2012 at 8:01 PM, Nagarjuna G <address@hidden> wrote:
> On Sun, Apr 8, 2012 at 7:21 PM, Christopher Allan Webber
> <address@hidden> wrote:
>> Nagarjuna G <address@hidden> writes:
>>
>>> I tested for a video, a small ogv file.  First after a while  I get
>>> "Internal server error",  however I noticed the server was busy
>>> transcoding the video.  After completing the transcoding, it failed
>>> with the folloiwng error.
>>
>> After enabling new media types, you need to run:
>>
>>  ./bin/gmg dbupdate
>>
>> We should probably have it spit out a relevant error on startup if
>> dbupdate needs to be run! :)
>
> I ran dbupdate.  Now the error changed to old error:
>
>  <class 'sqlalchemy.orm.exc.FlushError'>: Instance <VideoData at
> 0x3a79110> is an unsaved, pending instance and is an orphan (is not
> attached to any parent 'MediaEntry' instance via that classes'
> 'video__media_data' attribute)
>

After a brief session with the developers the following things were
done to fix the problem.

1. SQLAlchemy upgrade, it was SQLAlchemy==0.6.3.
2. git pull from the latest from master, chance noticed in app.py,
after this error's disappeared and successful upgrade message starting
appearing for video and jpg images as well. Earlier it appeared it
happened only for the png images.  (I don;t understand the reason why?
 may be png does not need any additional processing of the image?)
3. celeryd was not running, so ran the easycelery.sh.

Currently running two scripts: paster and easycelery.sh.

The site is now working fine.

There are two other issues, which I will report in another thread

cheers
GN


reply via email to

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