ownCloud¶
ownCloud is a file sync and share platform.
Default Login Credentials¶
After installing from SynoCommunity:
- Username:
admin - Password:
admin
Warning
Change these credentials immediately after logging in.
Using the occ Command¶
The occ command (ownCloud console) is a powerful command-line tool for administrative tasks.
1. Enable SSH¶
Ensure SSH is enabled on your DiskStation. See FAQ-ssh for instructions.
2. Define Shortcuts¶
For DSM 6:
For DSM 7:
3. Run occ Commands¶
Replace --version with any other occ command you need to run.
Files Not in Sync¶
If your files are not updating correctly in the Files view after modifying them outside of the web interface (e.g., via WebDAV), ownCloud may not be detecting changes automatically.
Fix Steps¶
-
Set up
occas described above -
Enable maintenance mode:
-
Adjust filesystem change detection:
-
Disable maintenance mode:
Database Migration (SQLite to MariaDB)¶
Starting with version 10.15.0, the ownCloud package transitions from SQLite to MariaDB back-end. This includes optimized configurations to eliminate all warnings in the settings screen.
Prerequisites¶
- Install
redisfrom the SynoCommunity repository - Enable SSH and connect to your DiskStation
Setup Shortcuts¶
For DSM 6:
For DSM 7:
oc_home=/var/services/web_packages/owncloud
oc_occ=/var/services/web_packages/owncloud/occ
oc_usr=sc-owncloud
Migration Steps¶
-
Save your MySQL root password:
-
Set a random password for the database user:
-
Enable maintenance mode:
-
Add HSTS to Apache configuration:
-
Prepare for migration:
-
Open MariaDB 10 in DSM and enable the TCP/IP connection
-
Create a new MySQL database:
-
Disable maintenance mode:
-
Perform the database conversion:
For DSM 6:
sudo -u $oc_usr $oc_php $oc_occ db:convert-type --port=3307 --password=$oc_upwd --all-apps mysql oc_admin 127.0.0.1 owncloud
For DSM 7:
sudo -u $oc_usr $oc_php $oc_occ db:convert-type --password=$oc_upwd --all-apps mysql oc_admin 127.0.0.1 owncloud
-
Continue with memory caching and file locking configuration:
-
Set up background jobs:
Note
After upgrading to ownCloud version 10.15.0, you may encounter login issues with messages such as "You took too long to login, please try again." To resolve this, clear your browser's cache for cookies and site data.