Hi steve,
Would like to update you from what i have been though the ResourceSpace with AWS S3.
Since
downloading the version through SVN in MAR 2020, i have tested the AWS
S3 and uploading and all are working thanks to you. ( i havent checked
if there are any updates on your AWS code, as i am used to Git and not
very familiar with SVN)
However, as a feedback.. i came across a few errors i faced here , hence
I have yet used to RS to its full extent .. the Errors are:
1.
uploading after sometime not success, but unless if bucket was public
access then i was able to upload again (re-apply non public bucket is ok
now)..not sure what happened previously.
2. One day, i get error 500 internal server.. Upon checking error, it was:
after that, i retry to upload but it will give the same error; so
unless i truncate database tables (`resource`, `resource_alt_files`,
`resource_custom_access`, `resource_data`, `resource_dimensions`,
`resource_keyword`, `resource_log`, `resource_node`,
`resource_related`), and also clear out my bucket, only then i may
proceed to upload success. Not exactly sure what was the issue.
3. Upon uploading as well..sometimes i get error duplicate chunk[2] of file;
although.. when testing on another pc, he error does not happen, so i am not sure what happened.
4.
Resources uploaded to s3 are not attached with their previews (hence
videos, docs, pdfs are not having preview fetched from s3). Meaning that
even when item is uploaded successfully and can be accessed (opened and
downloaded), but they will lack preview image in s3. I realized that
upon deleting a resource, i noticed the imgs generated on local, but not
on S3.
So
as you can see, jpgs are generated as preview on local for all, but
they're not uploaded to s3 to be considered as an attached item.
--------------------------------------
--------------------------------------
--------------------------------------
--------------------------------------
-End of report-
--------------------------------------
--------------------------------------
--------------------------------------
--------------------------------------
For your reference, my pc resources are:
Win10 Pro (build 19041.508).
Wamp 3.23 64bit - Php 7.3 &
MySql 5.7
Using Docker (2.4.0.0 - 48506 - stable) as linux container, and my configs are:
Docker:FROM alpine:3.11
VOLUME /etc/nginx/ssl
EXPOSE 80 443
ARG VERSION
RUN apk update && \
apk add openssl unzip nginx bash ca-certificates s6 curl ssmtp mailx php7 php7-phar php7-curl \
php7-fpm php7-json php7-zlib php7-xml php7-dom php7-ctype php7-opcache php7-zip php7-iconv \
php7-pdo php7-pdo_mysql php7-pdo_sqlite php7-pdo_pgsql php7-mbstring php7-session php7-bcmath \
php7-gd php7-mcrypt php7-openssl php7-sockets php7-posix php7-ldap php7-simplexml php7-fileinfo \
php7-mysqli php7-dev php7-intl imagemagick ffmpeg ghostscript exiftool subversion mysql-client && \
rm -rf /var/cache/apk/* && \
rm -rf /var/www/localhost && \
rm -f /etc/php7/php-fpm.d/www.conf
RUN apk upgrade
# ADD . /var/www/app
ADD docker/ /
RUN chmod +x /usr/local/bin/entrypoint.sh
COPY ./ /var/www/app
VOLUME /var/www/app
COPY custom-php.ini $PHP_INI_DIR/conf.d/
VOLUME /var/www/app/filestore
RUN rm -rf /var/www/app/docker && echo $VERSION > /version.txt
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD []
_______________________________
_______________________________
My RS Configs:$mysql_server = 'host.docker.internal';
$mysql_db = 'resourcespace';
$mysql_username = 'root';
$mysql_password = '';
$mysql_bin_path = '/usr/bin';
$baseurl = '
http://localhost:8001';
$imagemagick_path = '/usr/bin';
$ghostscript_path = '/usr/bin';
$exiftool_path = '/usr/bin';
$antiword_path = '/usr/bin';
$ffmpeg_path = '/usr/bin';
$config_windows = '';
$defaultlanguage = 'en-US';
$email_notify = '[private]';
$email_from = ;
$debug_log = true;
$debug_log_location = dirname(_FILE_)."/../filestore/logs.txt";
# Secure keys
$spider_password =
'[private]'
;
$scramble_key =
'[private]'
;
$api_scramble_key =
'[private]'
;
#SMTP settings
$use_smtp = true;
$use_phpmailer = true;
$smtp_secure = 'tls';
$smtp_host = '
email-smtp.us-east-1.amazonaws.com';
$smtp_port = 587;
$smtp_auth = true;
$smtp_username = '[private]';
$smtp_password = '[private]';
$homeanim_folder = 'filestore/system/slideshow_0e307dcc49b9eeb';
$merge_filename_with_title = true;
$merge_filename_with_title_default = 'replace';
/*
New Installation Defaults
-------------------------
The following configuration options are set for new installations only.
This
provides a mechanism for enabling new features for new installations
without affecting existing installations (as would occur with changes to
config.default.php)
*/
// Set imagemagick default for new installs to expect the newer version with the sRGB bug fixed.
$imagemagick_colorspace = "sRGB";
$contact_link=false;
$slideshow_big=true;
$home_slideshow_width=1920;
$home_slideshow_height=1080;
$themes_simple_view=true;
$themes_category_split_pages=true;
$theme_category_levels=8;
$stemming=true;
$case_insensitive_username=true;
$user_pref_user_management_notifications=true;
$themes_show_background_image = true;
$use_zip_extension=true;
$collection_download=true;
$ffmpeg_preview_force = true;
$ffmpeg_preview_extension = 'mp4';
$ffmpeg_preview_options = '-f mp4 -ar 22050 -b 650k -ab 32k -ac 1';
$daterange_search = true;
$upload_then_edit = false; //on false, filename title replace feature success
$search_filter_nodes = true;
$defaultlanguage="en"; # default language, uses ISO 639-1 language codes ( en, es etc.)
$disable_languages=true;
$purge_temp_folder_age=90;
$syncdir=str_replace("include","",dirname(_FILE_))."filestore"; # The sync folder
$storagedir
= str_replace("include","",dirname(_FILE_))."filestore"; // Filestore
location, such as “/var/www/resourcespace/filestore”.
$originals_separate_storage = false;
$purge_temp_folder_age = '';
$exiftool_write = true;
$exiftool_write_metadata = true;
$replace_resource_preserve_option = false;
$replace_resource_preserve_default = false;
$replace_batch_existing = false;
$custompermshowfile = false;
$aws_s3 = true; // Enable AWS S3 original file storage?
//$aws_bucket = ''; // replaced at the top to group it with the DB configs
$aws_bucket = '[private]';
$aws_region = 'ap-southeast-1'; // AWS region the S3 bucket is located in.
$aws_storage_class = 'STANDARD'; // AWS S3 storage class.
$aws_tmp_purge = 5; // Time in minutes to purge the AWS tmp folder.
_______________________________
_______________________________
_______________________________
RS Check page result: ResourceSpace version SVN Trunk
MySQL version 5.7.23 (client-encoding: latin1) OK
PHP version 7.3.22 (config: /etc/php7/php.ini) OK
PHP large file support (64 bit platform)? OK
PHP.INI value for 'memory_limit' 200M OK
PHP.INI value for 'post_max_size' 100M OK
PHP.INI value for 'upload_max_filesize' 100M OK
Is
the PHP timezone the same as the one MySQL uses? FAIL: PHP timezone
is "Asia/Kuala_Lumpur" and MySQL timezone is "Malay Peninsula Standard
Time"
PHP GD version bundled (2.1.0 compatible) OK
PHP EXIF extension FAIL
PHP ZIP extension OK
Installed
PHP extensions Core PDO Phar Reflection SPL SimpleXML Zend OPcache
bcmath cgi-fcgi ctype curl date dom fileinfo filter gd hash iconv intl
json ldap libxml mbstring mcrypt mysqli mysqlnd openssl pcre pdo_mysql
pdo_pgsql pdo_sqlite posix readline session sockets standard xml zip
zlib
Write access to /var/www/app/filestore OK
Write
access to filestore/system/slideshow_0e307dcc49b9eeb FAIL:
filestore/system/slideshow_0e307dcc49b9eeb not writable. Open
permissions to enable home animation cropping feature in the transform
plugin.
Blocked browsing of 'filestore' directory OK
Amazon Web Services (AWS) Simple Storage Service (S3) Based Original Filestore Bucket: [private]
Bucket located in region: ap-southeast-1
Bucket owner: [private]
Owner ID: [private] OK
ImageMagick Version: ImageMagick 7.0.9-7 Q16 x86_64 2019-12-03
https://imagemagick.org OK
FFmpeg ffmpeg version 4.2.4 Copyright (c) 2000-2020 the FFmpeg developers OK
Ghostscript GPL Ghostscript 9.50 (2019-10-15) OK
ExifTool 11.79 OK
Last scheduled task execution (days) Never WARNING
_______________________________
_______________________________
_______________________________
AWS config page result:Use AWS S3 object-based original file filestore? Yes
AWS key pair (key / secret) set? Yes / Yes
Using original file separated filestore ($originals_separate_storage = true)? No
ResourceSpace
parameters check ($exiftool_write = true, $exiftool_write_option =
true, $force_exiftool_write_metadata = true,
$replace_resource_preserve_option = false,
$replace_resource_preserve_default = false, $replace_batch_existing =
false, and $custompermshowfile = false)? FAIL
Storage directory set ($storagedir)? /var/www/app/filestore OK
Purge temp folder age ($purge_temp_folder_age): days OK
S3 bucket accessible? [private] OK
Bucket located in region: ap-southeast-1 OK
Bucket owner: [private] OK
Owner ID: 01c89c2e594053df77b416af9903639cdb611ddf919041937a4a0d79b0abb1e1
S3 bucket storage class: Standard Storage
Relevance
matching will not be effective and periodic e-mail reports will not be
sent. Ensure batch/cron.php is executed at least once daily via a cron
job or similar.
=======================
=========End of references==============
=======================
That is all what i
have to report and feedback, apologize for late reporting as i actually
planned to submit this earlier time but i got busy with personal stuff
due to covid19 as well as other projects.
Do let me know if you need anything further or have any suggestion or if anything not very clear.
Thank you.
Regards,
Abdulaziz