Having redis cluster with php7, when I try to create an image, I have the error:
500 Internal Server Error
:"Internal Server Error","errorDescription":"A DBAL error occured while writing var\/site\/storage\/images
Steps to Reproduce:
- Access your installation as admin in admin interface
- Create one image. Having your developer tools active, publish the image.
On the publishing action, we can see a notification error and on developer tools, we can see the error referred above.
If I go to my dfs var dir (/mnt/ezdfs/var/site/storage/images/3/8/1/0/183-1-eng-GB/imagem04.jpg), I can see that the image was created.
If I create some object such Folders or articles, without attachments, then I have no errors.
More info about my cluster environment:
My cluster configuration is set with 4 servers as:
- Server1(Varnish in round robin) -
- Server2 (ezdfs1)(with ezplatform) -> 10.0.5.2
- Server3 (ezdfs1)(with ezplatform) -> 10.0.5.3
- Server4 (with MariaDB DB) - 10.0.5.4
I have redis server on both server2 (10.0.5.2) and server3(10.0.5.3) configured as cluster (Master/Slave)
Regarding sessions, I have in php.ini:
session.save_handler = redis
session.save_path = "tcp: ;sessions are kept in first server
And I have my ezplatform set as:
# Repositories configuration, setup default repository to support solr if enabled
# Siteaccess configuration, with one siteaccess per default
# System settings, grouped by siteaccess and/or siteaccess group
# As of 5.4 only use "http"
# "single_http" and "multiple_http" are deprecated but will still work.
# Pool to use for cache, needs to be differant per repository (database).
# These reflect the current installers, complete installation before you change them. For changing var_dir
# it is recommended to install clean, then change setting before you start adding binary content, otherwise you'll
# need to manually modify your database data to reflect this to avoid exceptions.
# System languages. Note that by default, content, content types, and other data are in eng-GB locale,
# so removing eng-GB from this list may lead to errors or content not being shown, unless you change
# all eng-GB data to other locales first.
# Fill in your Varnish server(s) address(es).
purge_servers: [http: session:
# new doctrine connection for the dfs legacy_dfs_cluster metadata handler.
# declare the handlers
# The last part, $var_dir$/$storage_dir$, is required for legacy compatibility
drivers: [ Redis ]