Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Medien hochladen funktioniert nicht #199

Closed
Rillke opened this issue Mar 6, 2020 · 5 comments
Closed

Medien hochladen funktioniert nicht #199

Rillke opened this issue Mar 6, 2020 · 5 comments

Comments

@Rillke
Copy link
Contributor

Rillke commented Mar 6, 2020

Beim Klicken auf "Medien hochladen" sehe ich im Netzwerkinspektor einen POST-Request:

image

POST https://staging.studip.uni-halle.de/plugins.php/opencast/upload/upload_file/?cid=47994b76c309fd2885800fb6e6cd3b9d&uuid=7ed8e3d201819606da043e5ae7db961f

-----------------------------9819284361650019881690093150
Content-Disposition: form-data; name="series_id"
-----------------------------9819284361650019881690093150
Content-Disposition: form-data; name="title"
Bunny3
-----------------------------9819284361650019881690093150
Content-Disposition: form-data; name="creator"
no name
-----------------------------9819284361650019881690093150
Content-Disposition: form-data; name="recordDate"
2020-03-06
-----------------------------9819284361650019881690093150
Content-Disposition: form-data; name="startTime"
10:00
-----------------------------9819284361650019881690093150
Content-Disposition: form-data; name="contributor"
no name
-----------------------------9819284361650019881690093150
Content-Disposition: form-data; name="subject"
Medienupload, Stud.IP
-----------------------------9819284361650019881690093150
Content-Disposition: form-data; name="language"
de
-----------------------------9819284361650019881690093150
Content-Disposition: form-data; name="description"
test
-----------------------------9819284361650019881690093150
Content-Disposition: form-data; name="video"; filename="Big_Buck_Bunny_first_23_seconds_1080p.ogv"
Content-Type: video/ogg
OggS....

Der series_id Parameter ist leer. Die Serie wurde aber von StudIP in Opencast angelegt.

Der StudIP Server antwortet mit 302 (Found) location: /plugins.php/opencast/course/index?cid=47994b76c309fd2885800fb6e6cd3b9d

Diese Seite enthält keine Hinweise auf einen erfolgreichen Upload.

Und das Video kommt nie in Opencast an.

Das hat, wenn ich mich recht erinnere in früheren Versionen dieses Plugins funktioniert.

@Rillke
Copy link
Contributor Author

Rillke commented Mar 7, 2020

Ich habe mal spaßeshalber den Code von https://raw.githubusercontent.com/blueimp/jQuery-File-Upload/master/js/jquery.fileupload.js in der JavaScript Konsole ausgeführt. Damit wurde die Datei in Chunks hochgeladen und ich erhielt folgende Meldung:
image

In Opencast kam das Video jedoch nie als Episode an und die Opencast Logs (Level: Info) enthalten keine Hinweise.

@tgloeggl
Copy link
Member

tgloeggl commented Mar 9, 2020

Das hängt wahrscheinlich mit #197 zusammen und wird behoben sein, wenn das dortige Problem behoben ist.

@Rillke
Copy link
Contributor Author

Rillke commented Mar 9, 2020

@tgloeggl Habe den WYSIWYG editor eingeschaltet. Chunked upload funktioniert damit. Episode/Video kommt immer noch nicht in Opencast an. Welche Logs/ Verzeichnisse sollte ich mir ansehen?

@Rillke
Copy link
Contributor Author

Rillke commented Mar 9, 2020

@tgloeggl Danke für Version 1.2.103. Damit muss ich den WYSIWYG editor nicht mehr eineschalten, um den Uploade-Forschrittsbalken zu erhalten. Dennoch sehe ich als Admin keine neuen Events in der Opencast UI nach dem Hochladen in StudIP. Schreibt das Plugin Logs oder hast du Ideen, wie ich das Problem debuggen könnte?

@Rillke
Copy link
Contributor Author

Rillke commented Mar 9, 2020

Aha, it was an issue with file permissions:

# ls -lha /tmp/studip41/opencast
total 8,0K
drwxr-xr-x 2 root     root     4,0K Mär  9 17:00 .
drwxr-xr-x 5 www-data www-data 4,0K Mär  9 18:50 ..

# chown -R www-data:www-data /tmp/studip41/opencast

Our plugin CLI installer might have been run under the wrong user account some long time ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants