Replies: 1 comment
-
Hum... Removed symlink and ran update/upgrade then re-linked it and it worked (no clew as to what fixed it.) Never mind. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just installed MediaCMS on Ubuntu 20.04.6 LTS using single server and need some help (already searched the web for answers.)
celery_long.log shows:
[2023-12-04 14:20:39,627: INFO/MainProcess] Task produce_sprite_from_video[0fa11790-cedf-463e-83e2-4f183ba68193] received
[2023-12-04 14:20:39,635: INFO/MainProcess] Task encode_media[e7b2c8f0-1426-4413-93ec-7972f4920d13] received
[2023-12-04 14:20:39,636: INFO/ForkPoolWorker-16] encode_media[e7b2c8f0-1426-4413-93ec-7972f4920d13]: Encode Media started, friendly token lHh8yDuPP, profile id 1, force True
[2023-12-04 14:20:39,653: INFO/ForkPoolWorker-15] Task produce_sprite_from_video[0fa11790-cedf-463e-83e2-4f183ba68193] succeeded in 0.0242099640017841s: True
[2023-12-04 14:20:39,671: INFO/ForkPoolWorker-16] Task encode_media[e7b2c8f0-1426-4413-93ec-7972f4920d13] succeeded in 0.03545675800705794s: False <---- not sure what this means since it said "succeeded"
However the video does play if not encoded...
My first idea was to change MEDIA_ROOT = BASE_DIR + "/media_files/" in setting.y to MEDIA_ROOT = "/Nmve1n1/MediaCMS/media_files/" which sort of worked but had issues I could not figure out (think it had to do with database paths not pointing to the new path.)
My next idea was akin to the SMB share so I created a symlink:
ln -s /Nvme1n1/MediaCMS/media_files /home/mediacms.io/mediacms/media_files.
This seemed to work except for the celery_long.log:
[2023-12-04 14:16:20,734: ERROR/ForkPoolWorker-2] Task encode_media[508eb415-5e83-48f6-be36-06a0512f1260] raised unexpected: VideoEncodingError('device 60. 3.100 / 60. 3.100\n libavfilter 9. 12.100 / 9. 12.100\n libswscale 7. 5.100 / 7. 5.100\n libswresample 4. 12.100 / 4. 12.100\n libpostproc 57. 3.100 / 57. 3.100\n[in#0 @ 0x7041b80] Error opening input: No such file or directory\nError opening input file /home/mediacms.io/mediacms/Nvme0n1/MediaCMS/media_files/original/user/admin/b790554ac31a4ab5b9a004356bafe58f.Led_Zeppelin_Physical_Graffiti_Sick_Again_Lyrics.mp4.\nError opening input files: No such file or directory\n')
Traceback (most recent call last):
File "/home/mediacms.io/lib/python3.8/site-packages/celery/app/trace.py", line 477, in trace_task
R = retval = fun(*args, **kwargs)
File "/home/mediacms.io/lib/python3.8/site-packages/celery/app/trace.py", line 760, in protected_call
return self.run(*args, **kwargs)
File "/home/mediacms.io/mediacms/files/tasks.py", line 344, in encode_media
raise self.retry(exc=e, countdown=5, max_retries=1)
File "/home/mediacms.io/lib/python3.8/site-packages/celery/app/task.py", line 736, in retry
raise_with_context(exc)
File "/home/mediacms.io/mediacms/files/tasks.py", line 308, in encode_media
output = next(encoding_command)
File "/home/mediacms.io/mediacms/files/backends.py", line 72, in encode
raise VideoEncodingError(output[-1000:]) # output could be huge
files.backends.VideoEncodingError: device 60. 3.100 / 60. 3.100
libavfilter 9. 12.100 / 9. 12.100
libswscale 7. 5.100 / 7. 5.100
libswresample 4. 12.100 / 4. 12.100
libpostproc 57. 3.100 / 57. 3.100
[in#0 @ 0x7041b80] Error opening input: No such file or directory
Error opening input file /home/mediacms.io/mediacms/Nvme0n1/MediaCMS/media_files/original/user/admin/b790554ac31a4ab5b9a004356bafe58f.Led_Zeppelin_Physical_Graffiti_Sick_Again_Lyrics.mp4.
Error opening input files: No such file or directory
It appears the program expanded the symlink somehow...
Any help would be deeply appreciated (step by step please.)
Thanks!
-Ben
Beta Was this translation helpful? Give feedback.
All reactions