Nextcloud: Difference between revisions
m →FAQ Tag: wikieditor |
Tag: wikieditor |
||
| (28 intermediate revisions by the same user not shown) | |||
| Line 5: | Line 5: | ||
*[https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html OCC commands] | *[https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html OCC commands] | ||
==Nextcloud configuration== | |||
*[https://docs.nextcloud.com/server/stable/admin_manual/installation/index.html Installation and configuration] | |||
*[https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/index.html Server configuration] | |||
| | ||
==Office on Nextcloud== | |||
===Collabora (Nextcloud Office)=== | |||
https://sdk.collaboraonline.com/docs/installation/index.html | |||
===OnlyOffice=== | |||
= Installing = | = Installing = | ||
| Line 18: | Line 29: | ||
=HOWTO= | =HOWTO= | ||
==Tuning Nextcloud== | |||
*[https://docs.nextcloud.com/server/32/admin_manual/installation/server_tuning.html Server tuning] | |||
==Troubleshooting Nextcloud== | |||
Probably start with | |||
occ setupcheck | |||
==Use Elasticsearch== | ==Use Elasticsearch== | ||
Install electricsearch and check: | Install electricsearch and check: | ||
| Line 38: | Line 57: | ||
==Nextcloud in snap== | ==Nextcloud in snap== | ||
* [https://github.com/nextcloud-snap/nextcloud-snap/wiki/How-to-backup-your-instance Backing up, migrating nextcloud snap instance] | |||
* [https://github.com/nextcloud-snap/nextcloud-snap/wiki/How-to-add-samba-shares-and-local-shares How to add samba shares and local shares] | |||
===Accessing external media=== | |||
sudo snap connect nextcloud:removable-media | |||
===Change cron interval=== | |||
snap set nextcloud nextcloud.cron-interval=5m | |||
See [https://github.com/nextcloud-snap/nextcloud-snap nextcloud-snap] | See [https://github.com/nextcloud-snap/nextcloud-snap nextcloud-snap] | ||
===Location of logs=== | ===Location of logs=== | ||
| Line 61: | Line 90: | ||
====Rescan files==== | ====Rescan files==== | ||
occ files:scan username | |||
or | or | ||
occ files:scan --all | |||
= FAQ = | = FAQ = | ||
==Checks== | |||
===Your web server is not properly set up to resolve `.well-known` URLs, failed on: `/.well-known/webfinger`=== | |||
Failing check seems to be a bug | |||
===Your installation has no default phone region set.=== | |||
nextcloud.occ config:system:set default_phone_region --value="NL" | |||
===No memory cache has been configured.=== | |||
documented | |||
== This instance is running in debug mode == | |||
occ config:system:get debug | |||
and set | |||
occ config:system:set debug --value false --type bool | |||
Run occ as | ==Find previous versions of file== | ||
"Versioning creates backups of files which are accessible via the Versions tab on the Details sidebar" but WHERE is that sidebar?? | |||
Somehow you do get that if you go to the file via Activities | |||
==Access through untrusted domain== | |||
trusted_domains setting, check | |||
occ config:system:get trusted_domains | |||
and add your domain/network there | |||
occ config:system:set trusted_domains 1 --value="192.168.1.0/24" | |||
etc | |||
Run occ as web user | |||
sudo -u www-data php occ whatevercommand | sudo -u www-data php occ whatevercommand | ||
| Line 111: | Line 171: | ||
== Access forbidden CSRF check failed == | == Access forbidden CSRF check failed == | ||
Maybe you have the site open in multiple tabs? | |||
==Import data== | ==Import data== | ||
| Line 128: | Line 186: | ||
[https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/email_configuration.html https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/email_configuration.html] | [https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/email_configuration.html https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/email_configuration.html] | ||
===AxiosError: Request failed with status code 400=== | |||
=== Request failed with status code 500 === | === Request failed with status code 500 === | ||
===Request does not pass strict cookie check=== | |||
clear cookies? | |||
=== Unexpected error during account creation === | === Unexpected error during account creation === | ||
| Line 157: | Line 220: | ||
===Change ldap admin password=== | ===Change ldap admin password=== | ||
occ ldap:set-config "s01" "ldap_agent_password" "newpass123" | occ ldap:set-config "s01" "ldap_agent_password" "newpass123" | ||
==ldap user login failed== | |||
Very well hidden: in LDAP/AD Configuration under "Advanced" check "Configuration Active" | |||
occ ldap:show-config | |||
ldapConfigurationActive | |||
== Can't find ldap user == | == Can't find ldap user == | ||
| Line 176: | Line 246: | ||
==getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive== | ==getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive== | ||
??? | ??? | ||
==ONLYOFFICE cannot be reached. Please contact admin== | |||
Administration Settings->ONLYOFFICE enable | |||
=Nextcloud apps= | =Nextcloud apps= | ||
Latest revision as of 08:44, 19 March 2026
Links
Nextcloud configuration
Office on Nextcloud
Collabora (Nextcloud Office)
https://sdk.collaboraonline.com/docs/installation/index.html
OnlyOffice
Installing
Installing on Ubuntu
Requirements
PHP modules
apt install php8.1-gd php8.1-mysql php8.1-curl php8.1-mbstring php8.1-intl php8.1-gmp php8.1-bcmath php-imagick php8.1-xml php8.1-zip libapache2-mod-php8.1
HOWTO
Tuning Nextcloud
Troubleshooting Nextcloud
Probably start with
occ setupcheck
Use Elasticsearch
Install electricsearch and check:
curl -XGET 'localhost:9200/?pretty'
Install the apps:
Search->Full text search Search->Full text search - Elasticsearch Platform
Configure search:
Settings->Full text search Search platform: "Elasticsearch" Address of the Servlet http://localhost:9200
'Navigation icon' ???
Fix "login throttled"
occ security:bruteforce:reset your-ip
Nextcloud in snap
Accessing external media
sudo snap connect nextcloud:removable-media
Change cron interval
snap set nextcloud nextcloud.cron-interval=5m
See nextcloud-snap
Location of logs
/var/snap/nextcloud/current/logs
Location of data
/var/snap/nextcloud/common/nextcloud/data/
<your installation>/data/nextcloud.log
List all configuration
nextcloud.occ config:list
Editing config in nextcloud snap
nextcloud.occ config:xxx
also try for example
nextcloud.occ config:system:get auth.storeCryptedPassword
FAQ
Nextcloud is not installed - only a limited number of commands are available
You need to run
sudo nextcloud.manual-install username password
Rescan files
occ files:scan username
or
occ files:scan --all
FAQ
Checks
Your web server is not properly set up to resolve `.well-known` URLs, failed on: `/.well-known/webfinger`
Failing check seems to be a bug
Your installation has no default phone region set.
nextcloud.occ config:system:set default_phone_region --value="NL"
No memory cache has been configured.
documented
This instance is running in debug mode
occ config:system:get debug
and set
occ config:system:set debug --value false --type bool
Find previous versions of file
"Versioning creates backups of files which are accessible via the Versions tab on the Details sidebar" but WHERE is that sidebar?? Somehow you do get that if you go to the file via Activities
Access through untrusted domain
trusted_domains setting, check
occ config:system:get trusted_domains
and add your domain/network there
occ config:system:set trusted_domains 1 --value="192.168.1.0/24"
etc
Run occ as web user
sudo -u www-data php occ whatevercommand
Upgrading
Web upgrader is under "Overview", not "Version"
On command line
sudo -u www-data php --define apc.enable_cli=1 /var/www/nextcloud/updater/updater.phar
run this again to upgrade to next major version
Check for expected files, The following extra files have been found:
Probably files in install root dir
Stops at X Create backup
Check data/updater.log
Stop maintenance mode
runuser -u www-data -- php occ maintenance:mode --off
apache error log: Client denied by server configuration: .ocdata
That's from the Overview test cycle, so in fact a good sign
Authentication
nextcloud and yubikey
Works using the U2F app
Location of the logfile
Could be:
/var/www/nextcloud/data/nextcloud.log
or where you told it to be in config.php
File encoding for /<user>/files/foo.txt is not UTF-8. This may cause problems.
file contains non-UTF-8 characters
The files you are trying to upload exceed the maximum size for file uploads on this server.
???
Access forbidden CSRF check failed
Maybe you have the site open in multiple tabs?
Import data
occ files:scan <userid>
or in snap:
(sudo) nextcloud.occ files:scan <userid>
Uknown user 1
It needs the user ID, not name
https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/email_configuration.html
AxiosError: Request failed with status code 400
Request failed with status code 500
Request does not pass strict cookie check
clear cookies?
Unexpected error during account creation
Try enabling mail_smtpdebug
MP4 not playing
Could be HCEV/H.265 which is not supported by browsers because of patents. Try converting with ffmpeg.
Update needed
And occ upgrade failing, try setting version in config.php to version reported by occ --version
The PHP OPcache module is not loaded
try uncommenting
opcache.memory_consumption
and remember to restart php-fpm as well as apache
nextcloudcmd
Nextcloud Office is not configured
This installation does not have a built in server. Install it from the App Store. Collabora?
Nextcloud using ldap backend
Change ldap admin password
occ ldap:set-config "s01" "ldap_agent_password" "newpass123"
ldap user login failed
Very well hidden: in LDAP/AD Configuration under "Advanced" check "Configuration Active"
occ ldap:show-config ldapConfigurationActive
Can't find ldap user
Even though admin interface "verify user" works:
php occ ldap:check-user foo
Cannot check user existence, because disabled LDAP configurations are present.
Admin interface, under LDAP / AD integration ->Advanced "Configuration active"
php occ ldap:check-user foo --force
LDAP Operations error. Anonymous bind might not be allowed.
Save password and try again
getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
???
ONLYOFFICE cannot be reached. Please contact admin
Administration Settings->ONLYOFFICE enable
Nextcloud apps
Notes
Rename note
Has to be done in the Files dialogs
