IT/Software/Web Applications/NextCloud: Difference between revisions
Walttheboss (talk | contribs) |
Walttheboss (talk | contribs) (→Tricks) |
||
Line 24: | Line 24: | ||
*The update will still run. | *The update will still run. | ||
==== If your update Hangs or fails. ==== | ====If your update Hangs or fails.==== | ||
Sometimes things happen. | Sometimes things happen. | ||
Line 41: | Line 41: | ||
There are lots of things to fix when upgrading from 19 to 20. | There are lots of things to fix when upgrading from 19 to 20. | ||
You should add caching | You should add caching | ||
*Install APCu from the Package Manager | *Install APCu from the Package Manager | ||
*Add this line to the bottom of your /nextcloud/config/config.php | *Add this line to the bottom of your /nextcloud/config/config.php | ||
<code>'memcache.local' => '\OC\Memcache\APCu',</code> | <code>'memcache.local' => '\OC\Memcache\APCu',</code> | ||
Line 77: | Line 79: | ||
<code>sudo -u www-data php /var/www/html/next.msgcnx/occ maintenance:mode --off | <code>sudo -u www-data php /var/www/html/next.msgcnx/occ maintenance:mode --off | ||
</code> | </code> | ||
==== Removing Errors ==== | |||
===== Strict Transport Headers ===== | |||
===== Caching ===== | |||
Install APCu from the package manager | |||
Add this line to your NextCloud config.php at the bottom. | |||
'memcache.local' => 'OC\Memcache\APCu', | |||
===== Database errors ===== | |||
These all have to be handled one at a time. Follow the onscreen instructions. | |||
<br /> |
Revision as of 05:31, 20 December 2020
This is an amazing tool that as of now (May 1 2020) is getting amazingly fast development.
As with most things of this sort the prices will soon appear and it will become a paid product
Install
Configure
Make sure you have a big directory outside of www AND that the directory is web-writeable and mounted at boot.
Update
This can now(since 17) be done via the gui. Older versions need:
sudo -u www-data php /var/www/html/next.msgcnx/updater/updater.phar
To Update: Click on the picture of the main admin user. Click on Settings
Now you will see "Administration" on the left. Click on "Overview"
Read the Update Check notes carefully and attend to them one by one.
- php version is the limit from version 19.04 on Ubuntu Server 18.04
Sometimes due to a permissions issue it will say in read that .ocdata is not there.
- The update will still run.
If your update Hangs or fails.
Sometimes things happen.
Maybe you get this error:
Upgrade stuck at “Step 4 is currently in process. Please reload this page later”
Repair with
sudo -u www-data php /path/to/occ maintenance:repair
works for me to, but you may need to use:(specify php version)
sudo -u www-data php7.2 /path/to/occ maintenance:repair
There are lots of things to fix when upgrading from 19 to 20. You should add caching
- Install APCu from the Package Manager
- Add this line to the bottom of your /nextcloud/config/config.php
'memcache.local' => '\OC\Memcache\APCu',
Then restart apache
Buried in your php config files is apcu.ini
Add this line
'apc.enable_cli=1
Tricks
Syncing Files
- This very important in the self hosted world. How do we put and get files outside of the app itself.
- This can easily be done though you need root access.
- Use rsync or similar to sync or copy programs right into the directories.
- Then you need to run an occ (OwnCloudCommand) program with php to rescan for files. Then it will add all the files to the database.
sudo -u www-data php /var/www/html/mir.next.msgvte/occ --verbose --unscanned files:scan --all
- -u will specify the user
- php runs the current version of php.
- --verbose or -V tell you more as it happens.
- --unscanned will only check what has not been scanned. HUGE time savings.
- files:scan is the actual command or program that runs.
Maintenance Mode
You can turn it on and off with the following command.
The command below is one of the two. We hope you can figure out which one it is and which one is the other!
sudo -u www-data php /var/www/html/next.msgcnx/occ maintenance:mode --off
Removing Errors
Strict Transport Headers
Caching
Install APCu from the package manager
Add this line to your NextCloud config.php at the bottom.
'memcache.local' => 'OC\Memcache\APCu',
Database errors
These all have to be handled one at a time. Follow the onscreen instructions.