Unable to open the apps Mail, Calendar, Contacts. CSS Files in Data Directory do not exist

css

#1

Nextcloud 14.0.1
Raspbian stretch
Apache 2.4.25
PHP 7.0.30-0+deb9u1 (cli) (built: Jun 14 2018 13:50:25) ( NTS )

The issue you are facing:

Can’t open any of the following apps: Mail/Calendar/Contacts. Clicking on the Icon after a short while I allways get “Internal Server Error”

I deleted and reinstalled the apps via web interface. Checked folder permissions. Disabled theming via occ. All with no result.

The folder /var/nextcloud/data/appdata_ocjy1wevnr4b/css/calendar/ does not exist

Is this the first time you’ve seen this error? (Y/N):

I have never seen these apps working in my installation but never bothered to find out why

Steps to replicate it:

  1. Download and activate any of the following apps Mail/Calendar/Contacts
  2. Try to open the app via web interface (Link-Icon)

The output of your Nextcloud log in Admin > Logging:

Error	PHP	touch(): Unable to create file /var/nextcloud/data/appdata_ocjy1wevnr4b/css/calendar/861d-2009-app.min.css.deps because No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#206	2018-10-08T00:10:46+0200

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

$CONFIG = array (
  'instanceid' => 'XXX',
  'passwordsalt' => 'XXX',
  'secret' => 'XXX',
  'trusted_domains' =>
  array (
    0 => 'localip',
    1 => 'XXX',
    2 => 'XXX',
    3 => 'XXX',
  ),
  'datadirectory' => '/var/nextcloud/data',
  'overwrite.cli.url' => 'http://maylocalip/nextcloud',
  'dbtype' => 'mysql',
  'version' => '14.0.1.1',
  'installed' => true,
  'maintenance' => false,
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbuser' => 'XXX',
  'dbpassword' => 'XXX',
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpsecure' => 'tls',
  'mail_smtpauth' => 1,
  'mail_from_address' => 'XXX',
  'mail_domain' => 'XXX',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'mail_smtphost' => 'XXX',
  'mail_smtpport' => '25',
  'mail_smtpname' => 'XXX',
  'mail_smtppassword' => 'XXX',
  'theme' => '',
  'loglevel' => 0,
);

The output of your Apache/nginx/system log in /var/log/____:

[Sun Oct 07 06:25:04.796262 2018] [core:notice] [pid 3320] AH00094: Command line: '/usr/sbin/apache2'
[Sun Oct 07 17:07:42.245395 2018] [:error] [pid 16843] [client 202.98.250.73:19691] script '/var/www/nextcloud/help.php' not found or unable to stat
[Sun Oct 07 17:07:43.158882 2018] [:error] [pid 19444] [client 202.98.250.73:36060] script '/var/www/nextcloud/java.php' not found or unable to stat
[Sun Oct 07 17:07:45.733753 2018] [:error] [pid 19271] [client 202.98.250.73:42299] script '/var/www/nextcloud/_query.php' not found or unable to stat
[Sun Oct 07 17:07:46.633340 2018] [:error] [pid 17084] [client 202.98.250.73:16831] script '/var/www/nextcloud/test.php' not found or unable to stat
[Sun Oct 07 17:07:50.234853 2018] [:error] [pid 16842] [client 202.98.250.73:30958] script '/var/www/nextcloud/logon.php' not found or unable to stat
[Sun Oct 07 17:07:51.104954 2018] [:error] [pid 17776] [client 202.98.250.73:8130] script '/var/www/nextcloud/help-e.php' not found or unable to stat
[Sun Oct 07 17:07:51.954075 2018] [:error] [pid 17794] [client 202.98.250.73:20365] script '/var/www/nextcloud/license.php' not found or unable to stat
[Sun Oct 07 17:07:53.833175 2018] [:error] [pid 16838] [client 202.98.250.73:2472] script '/var/www/nextcloud/log.php' not found or unable to stat
[Sun Oct 07 17:07:54.706795 2018] [:error] [pid 16843] [client 202.98.250.73:49668] script '/var/www/nextcloud/hell.php' not found or unable to stat
[Sun Oct 07 17:07:55.529692 2018] [:error] [pid 19444] [client 202.98.250.73:57737] script '/var/www/nextcloud/pmd_online.php' not found or unable to stat
[Sun Oct 07 17:07:56.418437 2018] [:error] [pid 19271] [client 202.98.250.73:48293] script '/var/www/nextcloud/x.php' not found or unable to stat
[Sun Oct 07 17:07:57.223566 2018] [:error] [pid 17084] [client 202.98.250.73:20774] script '/var/www/nextcloud/shell.php' not found or unable to stat
[Sun Oct 07 17:07:58.124086 2018] [:error] [pid 17775] [client 202.98.250.73:9527] script '/var/www/nextcloud/htdocs.php' not found or unable to stat
[Sun Oct 07 17:07:58.959903 2018] [:error] [pid 16839] [client 202.98.250.73:9006] script '/var/www/nextcloud/desktop.ini.php' not found or unable to stat
[Sun Oct 07 17:07:59.799193 2018] [:error] [pid 16842] [client 202.98.250.73:19511] script '/var/www/nextcloud/z.php' not found or unable to stat
[Sun Oct 07 17:08:00.651975 2018] [:error] [pid 17776] [client 202.98.250.73:18376] script '/var/www/nextcloud/lala.php' not found or unable to stat
[Sun Oct 07 17:08:01.449909 2018] [:error] [pid 17794] [client 202.98.250.73:54857] script '/var/www/nextcloud/lala-dpr.php' not found or unable to stat
[Sun Oct 07 17:08:02.332609 2018] [:error] [pid 16838] [client 202.98.250.73:9461] script '/var/www/nextcloud/wpo.php' not found or unable to stat
[Sun Oct 07 17:08:03.170611 2018] [:error] [pid 16843] [client 202.98.250.73:62930] script '/var/www/nextcloud/text.php' not found or unable to stat
[Sun Oct 07 17:08:04.017630 2018] [:error] [pid 19444] [client 202.98.250.73:17736] script '/var/www/nextcloud/wp-config.php' not found or unable to stat
[Sun Oct 07 17:08:04.845966 2018] [:error] [pid 19271] [client 202.98.250.73:34413] script '/var/www/nextcloud/muhstik.php' not found or unable to stat
[Sun Oct 07 17:08:05.672254 2018] [:error] [pid 17084] [client 202.98.250.73:15189] script '/var/www/nextcloud/muhstik2.php' not found or unable to stat
[Sun Oct 07 17:08:06.564125 2018] [:error] [pid 17775] [client 202.98.250.73:11186] script '/var/www/nextcloud/muhstiks.php' not found or unable to stat
[Sun Oct 07 17:08:07.387929 2018] [:error] [pid 16839] [client 202.98.250.73:18183] script '/var/www/nextcloud/muhstik-dpr.php' not found or unable to stat
[Sun Oct 07 17:08:08.261707 2018] [:error] [pid 16842] [client 202.98.250.73:17869] script '/var/www/nextcloud/lol.php' not found or unable to stat
[Sun Oct 07 17:08:09.094744 2018] [:error] [pid 17776] [client 202.98.250.73:5115] script '/var/www/nextcloud/uploader.php' not found or unable to stat
[Sun Oct 07 17:08:09.951432 2018] [:error] [pid 17794] [client 202.98.250.73:15276] script '/var/www/nextcloud/cmd.php' not found or unable to stat
[Sun Oct 07 17:08:10.816828 2018] [:error] [pid 16838] [client 202.98.250.73:36593] script '/var/www/nextcloud/cmx.php' not found or unable to stat
[Sun Oct 07 17:08:11.634970 2018] [:error] [pid 16843] [client 202.98.250.73:44741] script '/var/www/nextcloud/cmv.php' not found or unable to stat
[Sun Oct 07 17:08:12.509334 2018] [:error] [pid 19444] [client 202.98.250.73:11585] script '/var/www/nextcloud/cmdd.php' not found or unable to stat
[Sun Oct 07 17:08:14.397957 2018] [:error] [pid 19271] [client 202.98.250.73:28323] script '/var/www/nextcloud/knal.php' not found or unable to stat
[Sun Oct 07 17:08:15.254374 2018] [:error] [pid 17084] [client 202.98.250.73:39233] script '/var/www/nextcloud/cmd.php' not found or unable to stat
[Sun Oct 07 17:08:16.103244 2018] [:error] [pid 17775] [client 202.98.250.73:42403] script '/var/www/nextcloud/shell.php' not found or unable to stat
[Sun Oct 07 17:08:16.941295 2018] [:error] [pid 16839] [client 202.98.250.73:63211] script '/var/www/nextcloud/appserv.php' not found or unable to stat
[Sun Oct 07 17:08:24.877676 2018] [:error] [pid 17084] [client 202.98.250.73:13620] script '/var/www/nextcloud/wuwu11.php' not found or unable to stat
[Sun Oct 07 17:08:25.701021 2018] [:error] [pid 17775] [client 202.98.250.73:8673] script '/var/www/nextcloud/xw.php' not found or unable to stat
[Sun Oct 07 17:08:26.537324 2018] [:error] [pid 16839] [client 202.98.250.73:12306] script '/var/www/nextcloud/xw1.php' not found or unable to stat
[Sun Oct 07 17:08:27.417825 2018] [:error] [pid 16842] [client 202.98.250.73:34745] script '/var/www/nextcloud/9678.php' not found or unable to stat
[Sun Oct 07 17:08:28.221893 2018] [:error] [pid 17776] [client 202.98.250.73:64529] script '/var/www/nextcloud/wc.php' not found or unable to stat
[Sun Oct 07 17:08:29.068573 2018] [:error] [pid 17794] [client 202.98.250.73:9060] script '/var/www/nextcloud/xx.php' not found or unable to stat


#2

hello ,
if u upgrade nextcloud to version 14 some of apps not working bcoz they not support nc-14,but u don’t need to worry just go to app section and update them and activate them.


#3

tried that:


#4

OK,
after upgrading NC custom coding or files we added are removed, so once you need to compare backup with new files, may be this helps you.


#5

All the config I have done is in config.php and the apache config. Since I never used these apps and they never really worked there is no custome code within those apps. As far as I remember they did not work before the update.
So no it does not really help. But thank you anyways!


#6

After all I think the Error message is quite specific I just cant figure out how to fix it.

  • Is it a permission issue

  • or is my theming incompatible with the apps? (just changed colors and the background over the standard theming tools in the webinterface)

  • How should the CSS files normally get into the /data directory?

  • I could not find those files to copy them manually.


#7

In which folder did you install Nextcloud?
Is it /var/nextcloud/ or /var/www/nextcloud/?
The apache log report /var/www/nextcloud/, but the Nextcloud-log reports /var/nextcloud/, which is also in config.php under datadirectory…

Also according to the apache log a client is looking for a lot of scripts that do not belong the nextcloud under /var/www/nextcloud/


#9

nextcloud installation is under /var/www/nextcloud/
data directory is under /var/nextcloud/data because its a USB-Stick mounted in this directory


#10

I think it is a permission issue with the data folder.
In order for php to write in the data folder, it must belong recursively to the webserver user.
What is the output of:
ls -l /var/www/nextcloud/config/config.php
and
ls -ld /var/nextcloud/data


#11
-rw-r----- 1 www-data www-data 1077 Okt  7 23:52 /var/www/nextcloud/config/config.php
drwxr-x--- 8 www-data www-data 4096 Okt  7 23:43 /var/nextcloud/data

#12

Hmm… running out of ideas…
Have you tried to create the folder from Nextclouds error message manually?

sudo -u www-data mkdir -p /var/nextcloud/data/appdata_ocjy1wevnr4b/css/calendar/ 

Does that work or is there an error message? And does the calendar afterwards work?


#13

It seems truncating the oc_filescache solved the issue.

Now I am running into multiple other issues (with login, theming and the appereance of NC), all of wich don’t happen on a regular basis or with some sort of apperant rule behind so that I have not extensively assesed them yet but

the apps I had problems with seem to work properly now!