Opened 7 years ago

Closed 5 years ago

#5561 closed defect (no-action)

Cannot upload video and audio. Unhandled exception

Reported by: zoro Owned by:
Priority: critical Milestone:
Component: programming Keywords:
Cc: Parent Tickets:

Description

So I followed this steps exactly: https://raspiblog.noblogs.org/post/2018/02/11/installation-of-gnu-mediagoblin/

pyexiv2 did not work so I removed it from mediagoblin_ini
I have configured systemd services as per in the docs production deployment. I have successfully uploaded Images and PDF files but whenever I upload audio and/or video, I get the error:

in audio:

.
.
.
2018-02-11 13:27:08,456 INFO    [mediagoblin.media_types.audio.transcoders] 100% done...
2018-02-11 13:27:08,458 INFO    [mediagoblin.media_types.audio.transcoders] Done
2018-02-11 13:27:08,474 INFO    [mediagoblin.media_types.audio.transcoders] Quitting MainLoop gracefully...
2018-02-11 13:27:08,511 ERROR   [mediagoblin.processing.task] An unhandled exception was raised while processing <MediaEntry 12: btest>: 'float' object cannot be interpreted as an integer
2018-02-11 13:27:08,516 WARNING [mediagoblin.processing] No idea what happened here, but it failed: TypeError("'float' object cannot be interpreted as an integer",)
2018-02-11 13:27:08,660 WARNING [mediagoblin.processing] No idea what happened here, but it failed: TypeError("'float' object cannot be interpreted as an integer",)
.
.
.

in video upload:

.
.
.
2018-02-11 13:29:14,509 INFO    [mediagoblin.media_types] checking the contents with sniffer
2018-02-11 13:29:14,510 INFO    [mediagoblin.media_types.video.processing] Sniffing mediagoblin.media_types.video
2018-02-11 13:29:14,514 INFO    [mediagoblin.media_types.tools] Discovering /tmp/tmpnefj5irg...
2018-02-11 13:29:14,877 DEBUG   [mediagoblin.media_types.video.processing] Discovered: <GstPbutils.DiscovererInfo object at 0x70a8f2b0 (GstDiscovererInfo at 0x1a66470)>
2018-02-11 13:29:14,885 INFO    [mediagoblin.media_types] checked, found
2018-02-11 13:29:15,682 DEBUG   [mediagoblin.processing.task] Processing <MediaEntry 13: decayy>
2018-02-11 13:29:15,686 INFO    [mediagoblin.media_types.video.transcoders] Initializing VideoTranscoder...
2018-02-11 13:29:15,722 INFO    [mediagoblin.media_types.tools] Discovering /mnt/var/mediagoblin/media/queue/media_entries/31957130-a334-4f20-bc13-8d78bf33ca02/124887044.ogv...
2018-02-11 13:29:16,072 INFO    [mediagoblin.media_types.tools] Discovering /mnt/var/mediagoblin/media/queue/media_entries/31957130-a334-4f20-bc13-8d78bf33ca02/124887044.ogv...
2018-02-11 13:29:16,427 ERROR   [mediagoblin.processing.task] An unhandled exception was raised while processing <MediaEntry 13: decayy>: object() takes no parameters
2018-02-11 13:29:16,430 WARNING [mediagoblin.processing] No idea what happened here, but it failed: TypeError('object() takes no parameters',)
2018-02-11 13:29:16,517 WARNING [mediagoblin.processing] No idea what happened here, but it failed: TypeError('object() takes no parameters',)
.
.
.

I have reviewed all config and tickets but still no fix. I used python3, python2 appears to not work for me, also I use nginx, debian 9.3.

Attachments (1)

VIDEOUPLOADWEBMERROR.log (245.7 KB ) - added by zoro 7 years ago.
debug gstreamer upload webm lazyserver log

Download all attachments as: .zip

Change History (6)

comment:1 by ayleph, 7 years ago

It looks like there's a problem with your GStreamer packages. You might be missing some packages or you might have an old version. If you have trouble following the steps on someone's blog, perhaps you should contact the blog author for help.

comment:2 by zoro, 7 years ago

$ sudo apt-get install python-gi python3-gi \

gstreamer1.0-tools \
gir1.2-gstreamer-1.0 \
gir1.2-gst-plugins-base-1.0 \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-ugly \
gstreamer1.0-plugins-bad \
gstreamer1.0-libav \
python-gst-1.0

Reading package lists... Done
Building dependency tree
Reading state information... Done
gir1.2-gst-plugins-base-1.0 is already the newest version (1.10.4-1).
gir1.2-gstreamer-1.0 is already the newest version (1.10.4-1).
gstreamer1.0-libav is already the newest version (1.10.4-1).
gstreamer1.0-plugins-bad is already the newest version (1.10.4-1).
gstreamer1.0-plugins-good is already the newest version (1.10.4-1).
gstreamer1.0-plugins-ugly is already the newest version (1.10.4-1).
gstreamer1.0-tools is already the newest version (1.10.4-1).
python-gi is already the newest version (3.22.0-2).
python-gst-1.0 is already the newest version (1.10.4-1).
python3-gi is already the newest version (3.22.0-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

all gstreamer are installed. mediagoblin is installed using python3 and I do not know how to get backtrace to possibly get the errors. I will retry installation on python2 later

Last edited 7 years ago by zoro (previous) (diff)

comment:3 by zoro, 7 years ago

I have managed to fix the audio upload issue by following the patch: https://issues.mediagoblin.org/attachment/ticket/5457/0001-Use-audio-icon-when-spectrogram-fails.-Add-note-to-d.patch

it is related to the spectogram generator, since I am using python3 it wont work so It is just a static audio image now. Still, whenever I go to the uploaded item the audio player in my instance of mediagoblin is missing but I can download the audio file (webm or original).

I do still need help on the video upload it still says TypeError Object ... can you give me example on how to get the backtrace so I can show it to you. The gstreamer apt -get are all installed as shown in the above post. I really need help. Thank You

UPDATE: I have enabled gstreamer debug and added gstreamer version (
27 os.environGST_DEBUG = '4,python:4'
38 gi.require_version('GstPbutils', '1.0')
)

in the file /srv/mediagoblin/mediagoblin/mediagoblin/media_types/video/transcoders.py

$ ./lazyserver.sh --server-name=fcgi fcgi_host=127.0.0.1 fcgi_port=26543 -v
the log after uploading webm video is attached above.
https://issues.mediagoblin.org/attachment/ticket/5561/VIDEOUPLOADWEBMERROR.log

still the error appears to be in the python script?
...
2018-02-13 15:12:24,951 ERROR [mediagoblin.processing.task] An unhandled exception was raised while processing <MediaEntry 27: outro>: object() takes no parameters
2018-02-13 15:12:24,953 WARNING [mediagoblin.processing] No idea what happened here, but it failed: TypeError('object() takes no parameters',)
2018-02-13 15:12:27,689 WARNING [mediagoblin.processing] No idea what happened here, but it failed: TypeError('object() takes no parameters',)
...

Last edited 7 years ago by zoro (previous) (diff)

by zoro, 7 years ago

Attachment: VIDEOUPLOADWEBMERROR.log added

debug gstreamer upload webm lazyserver log

comment:4 by Ben Sturmfels, 5 years ago

Hi Zoro,

Sorry for the lack of response on this issue. Did you have any luck with resolving this? If you'd still like some help here, please let us know.

Regards,
Ben

comment:5 by Ben Sturmfels, 5 years ago

Resolution: noaction
Status: newclosed

Hi Zoro,

We haven't heard back from you, so I'll assume this has been resolved. Please get in touch if you need further assistance.

Regards,
Ben

Note: See TracTickets for help on using tickets.