No Mail notification if i share a Folder with a user

Hello,

I’m useing nc 12 on a Webhosting service and its Working Good.

One thing i mentioned and i hope someone can help me.

Is it a normal behavior that no Mail notification is send if i share a Folder with a existing nextcloud User? If i share a Folder with a user and enter a Mail adress a Mail notification is send.

So the Mail Configuration is ok.the Test Mail was sent correctly too.

Is this a Bug or a expected behavior?

In my log i See this error:
Error
PHP
2017-05-27T08:40:30+0200
unlink(/tmp/oc_tmp_2R9nbf-.png): Operation not permitted at /var/www/vhosts/hosting6723.af944.netcup.net/httpdocs/cloud/lib/private/legacy/helper.php#223

Is this Problem or can i ignore it?
Thanks for help.
Greeting

Hi,

i figured out, that the feature to send a mail if a share a folder was removed.
The mail will be sent with an cron job (Activity App).

i created a cron job. If i run the cronjob i get the following result:

Your data directory is invalid

Please check that the data directory contains a file “.ocdata” in its root.

Cannot create “data” directory

This can usually be fixed by giving the webserver write access to the root directory. See https://docs.nextcloud.org/ser…?to=admin-dir_permissions

The data directory was not moved. It is since the first installation outside of the nextcloud folder.

Hi,

But does your data folder really contain the empty file .ocdata?

> ls -al /var/ncdata/ | grep ocdata
-rw-r-----  1 www-data www-data         0 May 24 21:52 .ocdata

Hi Schmu,

thanks for your reply.

Yes the folder contain the .ocdata file. But i solved the problem.

I’m running nextcloud on a webhosting service. In my config file the datadirectory path was this:
'datadirectory' => '/var/www/vhosts/hostingxxxx.afxxx.netcup.net/files-nc',

I had to change it to this:
'datadirectory' => ((php_sapi_name() != 'cli') ? '/var/www/vhosts/hostingxxxx.afxxx.netcup.net' : '') . '/files-nc',

Now the cronjob is running fine.
I’m not a programmer and a user in the webhosting forum told me this code. Maybe this can be improved in the nextcloud config in the future?

1 Like