Tagged: #permissions #php #chmod
-
AuthorPosts
-
May 12, 2020 at 2:29 am #36656
Hi everyone, I’m getting these permission warnings in WP’s debug log. The instance is on Bitnami and hosted on AWS Lightsail. It’s been confirmed they’re both properly configured so I was advised to reach out to Symbiostock.
Here’s the warning:
PHP Warning: chmod(): Operation not permitted in /opt/bitnami/ apps/wordpress/htdocs/wp-content/plugins/symbiostock-pro/symbiostock-init.php on line 22
This is the current permission of that particular file:
-rw-rw-r----- 1 bitnami daemon 29778 Apr 24 13:26 symbiostock-init.php
It appears that changing permissions for that particular file doesn’t solve the issue. It looks like the plugin uses different folders. Is it too much to ask which folders they are? Then I can update the permissions for the necessary folders.
Also, if anyone has solved this issue, please let me know what worked for you.
May 14, 2020 at 7:40 am #36678May 15, 2020 at 5:02 am #36684Hi Robin, thanks for your response!
We’re hitting errors when trying to process video previews. Whether it’s due directly to this, I’m not sure.
May 16, 2020 at 10:39 pm #36692Hi Christine – if you ever see errors like this, you can easily open that file in a text editor such as Notepad++ and go to that line to see what it’s trying to do. I don’t recommend you make any changes yourself unless you are very familiar with PHP.
This line relates to the program used to read and write metadata to images and shouldn’t have anything to do with video processing. Are you using Symbiostock Video?
May 19, 2020 at 1:35 am #36704Hi Robin, thanks for the clarifications! I was able resolve the permissions issue. But not the video issue. Symbiostock Video is installed and I ran the Symbiostock Video Diagnostic tool with success. It was able to render the test video.
However, we’re still getting the same error:
Error(s): Failed to create video preview for product ID: 68 | Dismiss error(s).The video is in the correct location at:
/opt/bitnami/apps/wordpress/htdocs/wp-content/uploads/ss_mediaHere’s the output code that diagnostic generated:
ffmpeg version 2.8.2-static http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2015 the FFmpeg developers\n built with gcc 5.2.1 (Debian 5.2.1-23) 20151028\n configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --enable-libass --enable-gnutls --enable-libvidstab --enable-libsoxr --enable-frei0r --enable-libfribidi --disable-indev=sndio --disable-outdev=sndio --cc=gcc\n libavutil 54. 31.100 / 54. 31.100\n libavcodec 56. 60.100 / 56. 60.100\n libavformat 56. 40.101 / 56. 40.101\n libavdevice 56. 4.100 / 56. 4.100\n libavfilter 5. 40.101 / 5. 40.101\n libswscale 3. 1.101 / 3. 1.101\n libswresample 1. 2.101 / 1. 2.101\n libpostproc 53. 3.100 / 53. 3.100\nInput #0, mov,mp4,m4a,3gp,3g2,mj2, from '/opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/symbiostock-video-diagnostic/test.mp4':\n Metadata:\n major_brand : mp42\n minor_version : 0\n compatible_brands: mp42mp41isomavc1\n creation_time : 2016-04-30 14:05:53\n Duration: 00:00:09.00, start: 0.000000, bitrate: 4699 kb/s\n Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 4438 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc (default)\n Metadata:\n creation_time : 2016-04-30 14:05:53\n handler_name : L-SMASH Video Handler\n encoder : AVC Coding\n Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 255 kb/s (default)\n Metadata:\n creation_time : 2016-04-30 14:05:53\n handler_name : L-SMASH Audio Handler\n[libx264 @ 0x48d3e60] using SAR=2800/2799\n[libx264 @ 0x48d3e60] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2\n[libx264 @ 0x48d3e60] profile High, level 3.0\n[libx264 @ 0x48d3e60] 264 - core 148 r209 7599210 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=35.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00\nOutput #0, mp4, to '/opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/symbiostock-video-diagnostic/result.mp4':\n Metadata:\n major_brand : mp42\n minor_version : 0\n compatible_brands: mp42mp41isomavc1\n encoder : Lavf56.40.101\n Stream #0:0(und): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 622x350 [SAR 2800:2799 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)\n Metadata:\n creation_time : 2016-04-30 14:05:53\n handler_name : L-SMASH Video Handler\n encoder : Lavc56.60.100 libx264\n Stream #0:1(und): Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, s16, 128 kb/s (default)\n Metadata:\n creation_time : 2016-04-30 14:05:53\n handler_name : L-SMASH Audio Handler\n encoder : Lavc56.60.100 libvo_aacenc\nStream mapping:\n Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))\n Stream #0:1 -> #0:1 (aac (native) -> aac (libvo_aacenc))\nPress [q] to stop, [?] for help\nframe= 31 fps=0.0 q=0.0 size= 0kB time=00:00:01.96 bitrate= 0.2kbits/s frame= 53 fps= 52 q=40.0 size= 14kB time=00:00:02.95 bitrate= 39.8kbits/s frame= 73 fps= 48 q=40.0 size= 38kB time=00:00:02.95 bitrate= 104.1kbits/s frame= 92 fps= 45 q=40.0 size= 61kB time=00:00:03.95 bitrate= 125.4kbits/s frame= 111 fps= 43 q=40.0 size= 87kB time=00:00:04.95 bitrate= 143.1kbits/s frame= 131 fps= 43 q=40.0 size= 116kB time=00:00:05.97 bitrate= 159.4kbits/s frame= 153 fps= 43 q=40.0 size= 146kB time=00:00:05.97 bitrate= 200.4kbits/s frame= 174 fps= 43 q=40.0 size= 173kB time=00:00:06.97 bitrate= 203.5kbits/s frame= 196 fps= 43 q=40.0 size= 200kB time=00:00:07.97 bitrate= 205.4kbits/s frame= 217 fps= 42 q=40.0 size= 226kB time=00:00:07.97 bitrate= 232.1kbits/s frame= 225 fps= 40 q=40.0 Lsize= 301kB time=00:00:09.01 bitrate= 272.9kbits/s\nvideo:150kB audio:141kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.975830%\n[libx264 @ 0x48d3e60] frame I:1 Avg QP:35.87 size: 2835\n[libx264 @ 0x48d3e60] frame P:102 Avg QP:36.88 size: 1148\n[libx264 @ 0x48d3e60] frame B:122 Avg QP:40.74 size: 273\n[libx264 @ 0x48d3e60] consecutive B-frames: 0.9% 75.6% 14.7% 8.9%\n[libx264 @ 0x48d3e60] mb I I16..4: 27.6% 72.1% 0.2%\n[libx264 @ 0x48d3e60] mb P I16..4: 0.4% 0.7% 0.0% P16..4: 44.4% 3.1% 1.3% 0.0% 0.0% skip:50.1%\n[libx264 @ 0x48d3e60] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 25.9% 0.2% 0.0% direct: 0.1% skip:73.7% L0:27.5% L1:72.2% BI: 0.2%\n[libx264 @ 0x48d3e60] 8x8 transform intra:66.5% inter:90.8%\n[libx264 @ 0x48d3e60] coded y,uvDC,uvAC intra: 26.7% 40.0% 4.9% inter: 4.5% 4.2% 0.0%\n[libx264 @ 0x48d3e60] i16 v,h,dc,p: 20% 35% 12% 33%\n[libx264 @ 0x48d3e60] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 9% 19% 25% 7% 11% 6% 11% 4% 10%\n[libx264 @ 0x48d3e60] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 25% 33% 4% 5% 1% 14% 1% 6%\n[libx264 @ 0x48d3e60] i8c dc,h,v,p: 73% 15% 7% 5%\n[libx264 @ 0x48d3e60] Weighted P-Frames: Y:0.0% UV:0.0%\n[libx264 @ 0x48d3e60] ref P L0: 59.5% 20.4% 14.8% 5.2%\n[libx264 @ 0x48d3e60] ref B L0: 87.6% 11.9% 0.5%\n[libx264 @ 0x48d3e60] ref B L1: 97.6% 2.4%\n[libx264 @ 0x48d3e60] kb/s:136.23\nffmpeg version 2.8.2-static http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2015 the FFmpeg developers\n built with gcc 5.2.1 (Debian 5.2.1-23) 20151028\n configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --enable-libass --enable-gnutls --enable-libvidstab --enable-libsoxr --enable-frei0r --enable-libfribidi --disable-indev=sndio --disable-outdev=sndio --cc=gcc\n libavutil 54. 31.100 / 54. 31.100\n libavcodec 56. 60.100 / 56. 60.100\n libavformat 56. 40.101 / 56. 40.101\n libavdevice 56. 4.100 / 56. 4.100\n libavfilter 5. 40.101 / 5. 40.101\n libswscale 3. 1.101 / 3. 1.101\n libswresample 1. 2.101 / 1. 2.101\n libpostproc 53. 3.100 / 53. 3.100\nInput #0, mov,mp4,m4a,3gp,3g2,mj2, from '/opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/symbiostock-video-diagnostic/test.mp4':\n Metadata:\n major_brand : mp42\n minor_version : 0\n compatible_brands: mp42mp41isomavc1\n creation_time : 2016-04-30 14:05:53\n Duration: 00:00:09.00, start: 0.000000, bitrate: 4699 kb/s\n Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 4438 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc (default)\n Metadata:\n creation_time : 2016-04-30 14:05:53\n handler_name : L-SMASH Video Handler\n encoder : AVC Coding\n Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 255 kb/s (default)\n Metadata:\n creation_time : 2016-04-30 14:05:53\n handler_name : L-SMASH Audio Handler\n[libvpx @ 0x4106500] v1.4.0-1490-g0134764\nOutput #0, webm, to '/opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/symbiostock-video-diagnostic/result.webm':\n Metadata:\n major_brand : mp42\n minor_version : 0\n compatible_brands: mp42mp41isomavc1\n encoder : Lavf56.40.101\n Stream #0:0(und): Video: vp8 (libvpx), yuv420p, 622x350 [SAR 2800:2799 DAR 16:9], q=-1--1, 200 kb/s, 25 fps, 1k tbn, 25 tbc (default)\n Metadata:\n creation_time : 2016-04-30 14:05:53\n handler_name : L-SMASH Video Handler\n encoder : Lavc56.60.100 libvpx\n Stream #0:1(und): Audio: vorbis (libvorbis), 48000 Hz, stereo, fltp (default)\n Metadata:\n creation_time : 2016-04-30 14:05:53\n handler_name : L-SMASH Audio Handler\n encoder : Lavc56.60.100 libvorbis\nStream mapping:\n Stream #0:0 -> #0:0 (h264 (native) -> vp8 (libvpx))\n Stream #0:1 -> #0:1 (aac (native) -> vorbis (libvorbis))\nPress [q] to stop, [?] for help\nframe= 15 fps=0.0 q=0.0 size= 4kB time=00:00:00.60 bitrate= 59.5kbits/s frame= 27 fps= 26 q=0.0 size= 51kB time=00:00:01.92 bitrate= 219.1kbits/s frame= 40 fps= 26 q=0.0 size= 64kB time=00:00:01.92 bitrate= 273.6kbits/s frame= 52 fps= 25 q=0.0 size= 76kB time=00:00:02.92 bitrate= 213.3kbits/s frame= 61 fps= 23 q=0.0 size= 88kB time=00:00:02.92 bitrate= 247.3kbits/s frame= 72 fps= 23 q=0.0 size= 104kB time=00:00:02.92 bitrate= 291.9kbits/s frame= 81 fps= 22 q=0.0 size= 117kB time=00:00:03.93 bitrate= 243.3kbits/s frame= 90 fps= 21 q=0.0 size= 129kB time=00:00:03.93 bitrate= 269.2kbits/s frame= 99 fps= 21 q=0.0 size= 142kB time=00:00:03.96 bitrate= 293.4kbits/s frame= 108 fps= 21 q=0.0 size= 155kB time=00:00:04.93 bitrate= 256.6kbits/s frame= 118 fps= 20 q=0.0 size= 168kB time=00:00:04.93 bitrate= 278.6kbits/s frame= 128 fps= 20 q=0.0 size= 176kB time=00:00:05.12 bitrate= 281.8kbits/s frame= 140 fps= 21 q=0.0 size= 201kB time=00:00:05.93 bitrate= 277.2kbits/s frame= 151 fps= 21 q=0.0 size= 212kB time=00:00:06.04 bitrate= 288.1kbits/s frame= 161 fps= 21 q=0.0 size= 228kB time=00:00:06.93 bitrate= 269.3kbits/s frame= 172 fps= 21 q=0.0 size= 243kB time=00:00:06.93 bitrate= 287.5kbits/s frame= 182 fps= 21 q=0.0 size= 257kB time=00:00:07.94 bitrate= 264.6kbits/s frame= 193 fps= 21 q=0.0 size= 271kB time=00:00:07.94 bitrate= 280.0kbits/s frame= 204 fps= 21 q=0.0 size= 280kB time=00:00:08.16 bitrate= 281.3kbits/s frame= 215 fps= 21 q=0.0 size= 280kB time=00:00:08.60 bitrate= 266.9kbits/s frame= 225 fps= 21 q=0.0 size= 315kB time=00:00:09.00 bitrate= 286.8kbits/s frame= 225 fps= 20 q=0.0 Lsize= 316kB time=00:00:09.00 bitrate= 287.2kbits/s\nvideo:225kB audio:81kB subtitle:0kB other streams:0kB global headers:4kB muxing overhead: 2.930143%
May 19, 2020 at 11:08 pm #36710Hi Christine,
Can you please try testing a very small video to see if it works? If it does, then it is very likely an issue with the resources on your server which are preventing larger videos from processing. The diagnostic tool for example has a video file within it – you can unzip this and upload it as a new product to see if it works.
May 20, 2020 at 1:41 am #36712Thanks for suggestion! So I tested with two videos:
– 1.5mb mp4 test video
– test.mp4 from the diagnostic tool (~5mb).Also for more info on the site:
– It’s hosted on AWS Lightsail
– PHP version is 7.3.14 (Supports 64bit values)
(please let me know if any other server info would help)I uploaded via FTP to this folder:
/opt/bitnami/apps/wordpress/htdocs/wp-content/uploads/ss_media/new/Than I ran the Processor script which moved the videos out of the new folder and added it to the ss_media folder.
However, the video previews are still not working on the product page. The thumbnail is just a photo of the placeholder image.
May 20, 2020 at 1:48 am #36713May 20, 2020 at 10:39 pm #36724Thanks, Robin. I sent you a PM with the info.
As for plesk, I ran
plesk version
and I’m not seeing that it’s installed on the instance.May 21, 2020 at 12:12 am #36725May 21, 2020 at 12:48 am #36727May 21, 2020 at 1:26 am #36728Thank you for your help!
-
AuthorPosts
You must be logged in to reply to this topic.