Image transcoder error 14.0.0-DEV4

172.16.0.1 - - [20/Apr/2024:21:20:37 +0000] "GET /image_transcoder.php?o=bx_photos_cover&h=12&dpx=2&t=1713648036 HTTP/1.1" 404 66954 "http://0.0.0.0:8888/view-organization-profile/test?owner=1" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36" "-"

Image transcoder generates an error when uploading the image, the upload is completed successfully but the file is not processed. What are the reasons why I can get this error? I have set these permissions to files and folders. I use docker, the latest version master from github.

sudo chmod 777 cache cache_public logs tmp storage
sudo chmod +x plugins/ffmpeg/ffmpeg.exe
sudo chmod +x periodic/cron.php
sudo find ./logs -type f -exec chown 666 {} \;
sudo find ./logs -type d -exec chown 777 {} \;
sudo find ./tmp -type f -exec chown 666 {} \;
sudo find ./tmp -type d -exec chown 777 {} \;
sudo find ./storage -type f -exec chown 666 {} \;
sudo find ./storage -type d -exec chown 777 {} \;

my server audit:

Requirements
PHP:
version = 8.1.28 - OK
allow_url_fopen = On - OK
allow_url_include = Off - OK
magic_quotes_gpc = Off - OK
memory_limit = 128 MB - OK
post_max_size = 1 GB - OK
upload_max_filesize = 1 GB - OK
register_globals = Off - OK
safe_mode = Off - OK
disable_functions - OK
php module: curl = curl - OK
php module: gd = gd - OK
php module: mbstring = mbstring - OK
php module: json = json - OK
php module: fileinfo = fileinfo - OK
php module: zip = zip - OK
php module: openssl = openssl - OK
php module: exif = exif - OK
MySQL:
version = 11.3.2 - OK
Web-server: nginx/1.25.5
rewrite_module - UNDEFINED
OS:
Linux c27a6f134b67 6.2.0-26-generic #26~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Jul 13 16:27:29 UTC 2 x86_64
Hardware:
Hardware requirements can not be determined automatically - manual server audit may be required.
Site setup
UNA version = 14.0.0-DEV4 - OK
Files and folders permissions - please click here to find out if permissions are correct.
ffmpeg -
ffmpeg version 4.4-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'

if you don't know if output is correct then manual server audit may be required.
Mail sendingclick here to send test email
Cron jobs -
no crontab for www-data

if you are unsure if output is correct then manual server audit may be required
Last cron jobs execution - 20 Apr 2024 10:58:01 pm
Site optimization
PHP:
PHP accelerator = ZendOPcacheOK
PHP setup = fpm-fcgiOK
MySQL:
key_buffer_size = 128 MBOK
max_heap_table_size = 16 MBOK
tmp_table_size = 16 MBOK
thread_cache_size = 151 - OK
Web-server:
User-side caching for static contentclick here to check it in Google Page Speed
If it is not enabled then please consider implement this optimization, since it improve perceived site speed and save the bandwidth.
To apply this optimization you need to have expires_module - UNDEFINED
Server-side content compression - can be checked manually or in "Page Speed" tool build-in into browser.
If it is not enabled then please consider implement this optimization, since it improve perceived site speed and save the bandwidth.
To apply this optimization you need to have deflate_module - UNDEFINED
UNA:
DB cache = On (File based cache engine) - OK
Pages cache = On (File based cache engine) - OK
Page blocks cache = On (File based cache engine) - OK
Templates Cache = On (FileHtml based cache engine) - OK
CSS files cache = OnOK
JS files cache = OnOK
Compression for CSS/JS cache = OnOK
Manual Server Audit

Some things can not be determined automatically, manual server audit is required to check it. If you don't know how to do it by yourself you can submit Server Audit Request.
  • 116
  • More
Replies (6)
    • Hello @ORV !

      As I advised you before - it's better to use the UNA package from the Market https://unacms.com/view-product/una-platform, not the current development package form GitHub. About your issue - did you setup the Cron Jobs? do they work (it's possible to check via the Studio->Dashboard->Server audit area, the Last Cron Jobs execution line)?

      • IInstalling the application as it is from that zip in a single server makes no sense. If this application is not in the cloud, the server will crash soon when more users enter. I will test the version 14.0.0-A3 from github but It seems you didn't read the post, there are also details about cronjobs, the application was installed as it is from github with all containers from docker-compose, I only made a small change in nginx config file because I use nginx as a proxy and caddy as a reverse proxy, and php.ini increasing memory and i add my network to the doker-compose file and .env file with my server variable. I only use docker for my apps in my k8 cluster, so cronjobs works perfectly there in a post is a server audit details from Studio->Dashboard->Server audit area (but it is possible that the cronjob container is not working correctly, I will check and possibly add a new user with sudo permissions):

        Last cron jobs execution - 20 Apr 2024 10:58:01 pm
        
        • Ok, got it about your installation. So if you use Nginx, then it's better apply that setup from @Alex T⚜️ https://unacms.com/cmts-view/z9tfe0?sys=bx_forum&cmt_id=43244

          Also, this recent thread maybe useful too https://unacms.com/d/image-transcoder.

          And yes, the Cron Jobs should be executed not so long ago.

          • I don't know how the image is built, for the cronjob I used your settings on github also i add  in the service area in docker-compose file 
            

            to make the container visible in the network for all the services some extra line:

                    extra_hosts:
                        - "host.docker.internal:host-gateway"
            
            • Related to the Alex post I think it is incorrect to define the domain name in a service docker container for the application or in the UNA app server. the application must run in localhost or any ip address and any port depend of the setup, the domain must be defined only in the reverse proxy server or a web server level, so you can run multiple containers with the app in a swarm or a cluster with more many containers or on several servers in bachend, each service can be scalable and extended in the cloud without problems. Otherwise, a social network cannot be built in a single server, this is just an illusion

              • I've replied here regarding this issue - https://unacms.com/cmts-view/z9tfe0?sys=bx_forum&cmt_id=48608

                Also official UNA Docker image has parameter UNA_AUTO_HOSTNAME to set it automatically.

                Login or Join to comment.