Package: ejabberd Version: 17.08-3 Severity: normal My ejabberd server has been running successfully with mod_http_upload without issue for some time. Yesterday, after performing a reboot of the server, sending images failed. /var/log/ejabberd/error.log shows the following entry when an attempt is made to upload an image:
2017-11-29 23:02:25.498 [error] <0.509.0>@mod_http_upload:process:371 Cannot store file /var/www/ejabberd/file_upload/b706e1f6bfeeeb3ec03fb853c495ed10de004e5d/ nCs5LyydsHSYAaIlo71MHii36OZcRBj7N2WbmqD6/ClkSaG0aRdCwn3gE3_RBrg.gif from 192.168.10.100 for ejabberd.stoutner.com: "permission denied" The file permissions for /var/www/ejabberd and subfolders are 750 with ejabberd as the user and group. This configuration has always worked previously. When running as the ejabberd user I can successfully navigate to these folders and create files. Also, most interestingly, when the file permissions of /var/www/ejabberd and subfolders are changed to 777, it still fails with the "permission denied" error. On November 22 I upgraded to the latest packages in Debian testing, which included several Erlang packages. It is possible that one of those updates only took effect on November 28 when the server was rebooted. Other than that, I can't think of any changes that have occurred with the server that would explain the sudden appearance of this error after the reboot. -- System Information: Debian Release: buster/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 4.13.0-1-amd64 (SMP w/6 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE= (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages ejabberd depends on: ii adduser 3.116 ii debconf [debconf-2.0] 1.5.65 ii erlang-asn1 1:20.1.6+dfsg-1 ii erlang-base [erlang-abi-17.0] 1:20.1.6+dfsg-1 ii erlang-crypto 1:20.1.6+dfsg-1 ii erlang-inets 1:20.1.6+dfsg-1 ii erlang-jiffy 0.14.11+dfsg-2 ii erlang-lager 3.5.2-1 ii erlang-mnesia 1:20.1.6+dfsg-1 ii erlang-odbc 1:20.1.6+dfsg-1 ii erlang-p1-cache-tab 1.0.10-1 ii erlang-p1-iconv 1.0.5-1 ii erlang-p1-stringprep 1.0.9-1 ii erlang-p1-tls 1.0.15-1 ii erlang-p1-utils 1.0.9-1 ii erlang-p1-xml 1.1.23-1 ii erlang-p1-xmpp 1.1.14-2 ii erlang-p1-yaml 1.0.10-1 ii erlang-p1-zlib 1.0.2-1 ii erlang-public-key 1:20.1.6+dfsg-1 ii erlang-ssl 1:20.1.6+dfsg-1 ii erlang-syntax-tools 1:20.1.6+dfsg-1 ii erlang-xmerl 1:20.1.6+dfsg-1 ii init-system-helpers 1.51 ii lsb-base 9.20170808 ii openssl 1.1.0g-2 ii ucf 3.0036 ejabberd recommends no packages. Versions of packages ejabberd suggests: ii apparmor 2.11.1-3 pn apparmor-utils <none> pn ejabberd-contrib <none> pn erlang-luerl <none> ii erlang-p1-mysql 1.0.3-1 pn erlang-p1-oauth2 <none> pn erlang-p1-pam <none> pn erlang-p1-pgsql <none> pn erlang-p1-sip <none> pn erlang-p1-sqlite3 <none> pn erlang-p1-stun <none> pn erlang-redis-client <none> ii imagemagick 8:6.9.7.4+dfsg-16 ii imagemagick-6.q16 [imagemagick] 8:6.9.7.4+dfsg-16 pn libunix-syslog-perl <none> pn yamllint <none>