I spent two days, trying to use ownCloud on DietPi 6.1 without success.
I cannot use Apache2 or Ngnix because they will not start web service.
If I use lighttpd, then owncloud will not allow me to use client app on windows. It shows something like the attached picture.
I then spent hours looking for answer and found ownCloud does not support lighttpd!
opened 08:10AM - 21 Sep 15 UTC
closed 04:24PM - 15 Aug 16 UTC
Type:Bug
app:files_external
### Steps to reproduce
1. enable external storage: WebDAV
2. set up external ser… ver with WebDAV: Raspian 7; lighttpd; mod_webdav
3. confirm WebDAV on external server to be working with Nautilus and Cadaver
4. connect WebDAV in OwnCloud UI, green dot appears
5. navigate to mounted drive: "unknown error"
### Expected behaviour
List all files and folders of mounted drive.
### Actual behaviour
WebDAV web GUI shows green dot. Only directories listed, if files are in a directory "unknown error".
I tested it, if I only put directories in the mounted root, things work just fine.
### Server configuration
**Operating system**:
Debian 7
**Web server:**
lighttpd
**Database:**
sqlite
**PHP version:**
5.4.45-0+deb7u1
**ownCloud version:** (see ownCloud admin page)
8.1.1
**Updated from an older ownCloud or fresh install:**
fresh install
**List of activated apps:**
```
External storage support 0.2.3
```
**The content of config/config.php:**
```
... needed?
```
**Are you using external storage, if yes which one:** local/smb/sftp/...
WebDAV
**Are you using encryption:** yes/no
no
**Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/...
no
### Client configuration
### Logs
#### Web server error log
```
... blank
```
#### ownCloud log (data/owncloud.log)
```
/eventsource.php:99) at \/var\/www\/owncloud\/lib\/private\/response.php#103","level":3,"time":"2015-09-21T07:57:28+00:00"}
{"reqId":"mrQH2LOK3WzkZCnE5euV","remoteAddr":"188.102.104.209","app":"index","message":"Exception: {\"Exception\":\"Sabre\\\\HTTP\\\\ClientHttpException\",\"Message\":\"Not Found\",\"Code\":404,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Client.php(235): Sabre\\\\HTTP\\\\Client->send(Object(Sabre\\\\HTTP\\\\Request))\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/dav.php(262): Sabre\\\\DAV\\\\Client->propFind('Video\\\/Video', Array)\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/dav.php(690): OC\\\\Files\\\\Storage\\\\DAV->propfind('Video\\\/Video')\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/common.php(605): OC\\\\Files\\\\Storage\\\\DAV->getPermissions('Video\\\/Video')\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/wrapper\\\/encryption.php(149): OC\\\\Files\\\\Storage\\\\Common->getMetaData('Video\\\/Video')\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/wrapper\\\/wrapper.php(543): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Encryption->getMetaData('Video\\\/Video')\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/cache\\\/scanner.php(113): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->getMetaData('Video\\\/Video')\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/cache\\\/scanner.php(141): OC\\\\Files\\\\Cache\\\\Scanner->getData('Video\\\/Video')\\n#8 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/cache\\\/scanner.php(344): OC\\\\Files\\\\Cache\\\\Scanner->scanFile('Video\\\/Video', 1, 425, NULL, true)\\n#9 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/cache\\\/scanner.php(267): OC\\\\Files\\\\Cache\\\\Scanner->scanChildren('Video', true, 1, Array, true)\\n#10 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/cache\\\/scanner.php(419): OC\\\\Files\\\\Cache\\\\Scanner->scan('Video', true, 1)\\n#11 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/utils\\\/scanner.php(124): OC\\\\Files\\\\Cache\\\\Scanner->backgroundScan()\\n#12 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files\\\/ajax\\\/scan.php(55): OC\\\\Files\\\\Utils\\\\Scanner->backgroundScan('')\\n#13 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/route\\\/route.php(154) : runtime-created function(1): require_once('\\\/var\\\/www\\\/ownclo...')\\n#14 [internal function]: __lambda_func(Array)\\n#15 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/route\\\/router.php(274): call_user_func('\\\\x00lambda_157400', Array)\\n#16 \\\/var\\\/www\\\/owncloud\\\/lib\\\/base.php(873): OC\\\\Route\\\\Router->match('\\\/apps\\\/files\\\/aja...')\\n#17 \\\/var\\\/www\\\/owncloud\\\/index.php(40): OC::handleRequest()\\n#18 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/http\\\/lib\\\/Client.php\",\"Line\":154}","level":4,"time":"2015-09-21T07:57:32+00:00"}
{"reqId":"mrQH2LOK3WzkZCnE5euV","remoteAddr":"188.102.104.209","app":"PHP","message":"Cannot modify header information - headers already sent by (output started at \/var\/www\/owncloud\/lib\/private\/eventsource.php:99) at \/var\/www\/owncloud\/lib\/private\/response.php#103","level":3,"time":"2015-09-21T07:57:32+00:00"}
```
I verified this with a Virtual Machine build and the result is the same.
Any solution?
Hi, and thanks for your report:
There seem to be a deeper configuration/system issue, as Nginx and Apache2 both do not start.
Did you test this on fresh DietPi installation?
Can you in case provide the output of:
systemctl status apache2
systemctl status nginx
/var/log/apache2/error.log
/var/log/nginx/error.log
and copy&paste of the installation process, running dietpi-software
depending on webserver you are testing. Note to install just one at a time.
ownCloud and Nextcloud do not officially support, because sabre.io , their webdav backend, notes years ago, that Lighttpd does not fully support all their features. But noone from ownCloud/Nextcloud did ever validate/recheck this. We however did intensive tests with Lighttpd ownCloud/Nextcloud and webdav (via desktop and mobile clients) and never faced any issues.
So your issue seems to be deeper nature. Could you please provide:
systemctl status lighttpd
systemctl status php7.0-fpm
Nextcloud log
/var/log/lighttpd error log (don’t know exact name at the moment .