Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NextCloud calculates the available space wrong with external storage mounted #9260

Closed
Weiming-Hu opened this issue Apr 20, 2018 · 1 comment

Comments

@Weiming-Hu
Copy link

Steps to reproduce

  1. Set up the NextCloud normally
  2. Before first time login into NextCloud, mount an external hard drive to the server
  3. Create a folder on the external hard drive as the data folder for NextCloud

Expected behaviour

I'm mounting a 1 TB external hard drive and have created a folder on the drive as the data folder for NextCloud. However, NextCloud doesn't count this 1 TB when calculating free space. Right now, I have about 7.1 GB data uploaded and it is already complaining about 93% space full. My server has a total space of 8 GB. So I guess the 1 TB space is not counted.

Actual behaviour

It should have much more space available.

Server configuration

Operating system: Jessie Raspbian

Web server: Apache2

Database: sqlite

PHP version: 7.0

Nextcloud version: (see Nextcloud admin page) 12.0.6

Updated from an older Nextcloud/ownCloud or fresh install: updated from an older version of Nextcloud

Where did you install Nextcloud from: https://download.nextcloud.com/server/releases/nextcloud-11.0.2.tar.bz2

Signing status:

Signing status
No errors have been found.

List of activated apps:

App list
Enabled:
  - activity: 2.5.2
  - admin_audit: 1.2.0
  - bruteforcesettings: 1.0.3
  - comments: 1.2.0
  - dav: 1.3.1
  - deck: 0.3.1
  - drawio: 0.8.9
  - encryption: 1.6.0
  - federatedfilesharing: 1.2.0
  - federation: 1.2.0
  - files: 1.7.2
  - files_clipboard: 0.7.1
  - files_external: 1.3.0
  - files_markdown: 2.0.4
  - files_pdfviewer: 1.1.2
  - files_sharing: 1.4.0
  - files_texteditor: 2.4.1
  - files_trashbin: 1.2.0
  - files_versions: 1.5.0
  - files_videoplayer: 1.1.0
  - firstrunwizard: 2.1
  - gallery: 17.0.0
  - logreader: 2.0.0
  - lookup_server_connector: 1.0.0
  - nextcloud_announcements: 1.1
  - notifications: 2.0.0
  - oauth2: 1.0.5
  - password_policy: 1.2.2
  - provisioning_api: 1.2.0
  - serverinfo: 1.2.0
  - sharebymail: 1.2.0
  - survey_client: 1.0.0
  - systemtags: 1.2.0
  - theming: 1.3.0
  - twofactor_backupcodes: 1.1.1
  - unsplash: 1.1.1
  - updatenotification: 1.2.0
  - workflowengine: 1.2.0
Disabled:
  - richdocuments
  - user_external
  - user_ldap

Nextcloud configuration:

Config report
{
    "system": {
        "instanceid": "ocwod0wu4b31",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "192.168.1.137",
            "weiming.ddns.net"
        ],
        "datadirectory": "\/media\/Dell1TB\/nextcloud\/data",
        "overwrite.cli.url": "http:\/\/192.168.1.137\/nextcloud",
        "dbtype": "sqlite3",
        "version": "12.0.6.1",
        "logtimezone": "UTC",
        "installed": "1",
        "maintenance": false,
        "loglevel": 2,
        "filesystem_check_changes": 1,
        "quota_include_external_storage": true
    }
}

Are you using external storage, if yes which one: fuseblk

Are you using encryption: no

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

LDAP configuration (delete this part if not used)

LDAP config
[Symfony\Component\Console\Exception\CommandNotFoundException]  
  There are no commands defined in the "ldap" namespace.

Client configuration

Browser: Chrome

Operating system: Mac OS

Logs

Web server error log

Web server error log
NONE

Nextcloud log (data/nextcloud.log)

Nextcloud log

log.txt

@Weiming-Hu
Copy link
Author

This problem is resolved.

The problem is that I should set up the external hard drive properly on the raspberry. Make sure that:

  • You have mounted your external hard drive correctly. You can find the steps here.
  • Change the data folder. The steps can be found here. I used solution 1. The steps assume you are using mysql. So if you might need to convert your database if you are still using SQLite. If you are new to mysel, you can find a starting guide here.
  • Change the permission of the data folder. If you don't have the proper permission, the maintenance mode can't be turned off. You need to change your data folder permission to 0770.
  • After you turned off maintenance mode, if you see file sizes pending, you will need to do sudo -u www-data php /path/to/nextcloud/occ files:scan --all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant