Sharing a directory via public link does not work - "This directory is unavailable [...]"

sharing
9.1.x

#1

Hey there,

I have a problem with the public sharing in ownCloud. It's possible for me to create and send (via mail) a public link referring to my ownCloud-directory but unfortunately it's not possible to see the content or upload new files. As mentioned below the following message appears:

"This directory is unavailable please check the logs or contact the administrator"

I've checked the logs but there hasn't been any error message. I appreciate any help you can provide.

Steps to reproduce

  1. Create a directory for public sharing
  2. Activate "share link" and "allow editing"
  3. Visit the shared link to upload some files

Expected behaviour

The shared directory should be publicly available through this link to download/upload some files.

Actual behaviour

It's possible to visit the shared link but the following message appears:
"This directory is unavailable please check the logs or contact the administrator"

The log file has no error.

Server configuration

Operating system:

Debian 8

Web server:

Apache 2 .4.10

Database:

mysql 14.14

PHP version:

5.6.30

ownCloud version:

9.1.6

Updated from an older ownCloud or fresh install:

Updated from ownCloud 8 some time ago

Where did you install ownCloud from:

From the official source as an archive file

The content of config/config.php:

"basic": {
    "license key": "",
    "date": "Thu, 21 Sep 2017 11:00:50 +0000",
    "ownCloud version": "9.1.6.2",
    "ownCloud version string": "9.1.6",
    "ownCloud edition": "",
    "server OS": "Linux",
    "server OS version": "Linux donovan 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2 (2017-04-30) x86_64",
    "server SAPI": "apache2handler",
    "webserver version": "Apache\/2.4.10 (Debian)",
    "hostname": "donovan.xxx.xxx",
    "user count": 32,
    "user directories": 32,
    "logged-in user": "ocadmin"
},
"integritychecker": {
    "passing": true,
    "enabled": true,
    "result": []
},

"config": {
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "XXX.XXX.XXX.100",
        "donovan.XXX.XXX"
    ],
    "datadirectory": "\/home\/data\/owncloud\/",
    "overwrite.cli.url": "\/owncloud",
    "dbtype": "mysql",
    "version": "9.1.6.2",
    "dbname": "oc_database",
    "dbhost": "localhost",
    "dbtableprefix": "oc_",
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "logtimezone": "Europe\/Berlin",
    "installed": true,
    "ldapIgnoreNamingRules": false,
    "loglevel": 4,
    "maintenance": false,
    "memcache.local": "\\OC\\Memcache\\APCu",
    "trashbin_retention_obligation": "auto",
    "enable_previews": true,
    "preview_libreoffice_path": "\/usr\/bin\/libreoffice",
    "preview_office_cl_parameters": "--headless --nologo --nofirststartwizard --invisible --norestore",
    "0": "-convert-to pdf -outdir",
    "overwritewebroot": "\/owncloud",
    "mail_from_address": "no_reply",
    "mail_smtpmode": "php",
    "mail_domain": "donovan.XXX.XXX"

List of activated apps:

Activity, Admin Config Report, Collaborative tags, Comments, Deleted files,
First run wizard, Gallery, LDAP user and group backend, Mail Template Editor,
PDF Viewer, Provisioning API, Share Files, Text Editor, Update notification,
Versions, Video player, Calendar, Contacts, Tasks

Are you using external storage, if yes which one: local/smb/sftp/...

No.

Are you using encryption:

No.

Are you using an external user-backend, if yes which one:

LDAP


#2

Does anyone have an idea?


#3

external storage? What about quota availability from the owner? This certainly should work and it must be a configuration issue as this is used with quite some users worldwide. Also checked with my implementation of a 9.1.6 server and primary storage.


#4

Hey hodyroff,

I do know that this feature should be working but it doesn't - that's why I am looking for help/hints in the first place. :slight_smile:

I'm using local storage and there is enough quota/free space. Even if there wasn't enough quota it should be possible to get access to this directory since the owner could create it and has access to it. (so it should be - at least - downloadable)

Repairing with occ etc didn't work for me either. My assumption is, that the database is messed to a certain degree. So I didn't notice it because I haven't been using the public sharing so far. I'd be glad if it would be some config issues - the content of the config file can be seen in my first post.

King regards
Kray


#5

Hello,

I’ve got the same Problem on OwnCloud 9.1.8.2 after upgrading from 8.1… The Share Link Button is here, but when I try to share the folder there are no files shown in the browser. When I click the download Button I get all the Files that are not shown, but in the folder downloaded on my computer. When I select a single file to share the link, I got the file shown up in the Browser…

Any Ideas? Solution how to fix?


#6

Hey rvr,

for me upgrading to OwnCloud 10 did the trick. I couldn’t try it because LDAP wasn’t out that time .

I don’t know what happened or changed but I’ve been able to create & share files again after upgrading. (It also fixed some calendar issues for me.)

Best


#7

Hey Kray, thanks for reply, yes I’m gonna try it today. Just afraid of my loseing my template :confused: in oc 10 is new formatting i think…