Support intro
Sorry to hear youâre facing problems
help.nextcloud.com is for home/non-enterprise users. If youâre running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.
In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
example
Or for longer, use three backticks above and below the code snippet:
longer
example
here
Some or all of the below information will be requested if it isnât supplied; for fastest response please provide as much as you can
Nextcloud version: 27.1.4-fpm-alpine
Operating system and version: fpm-alpine
Apache or nginx version: nginx 1.25.3 (alpine)
PHP version: 8.2.13
The issue you are facing:
Getting an exception when trying to execute any occ
commands on a new deployment of Nextcloud 27, the output is:
> docker exec -it -u www-data nextcloud-app sh
> /var/www/html $ php occ -h
> An unhandled exception has been thrown:
> Symfony\Component\Console\Exception\LogicException: The command defined in "OCA\Support\Command\SystemReport" cannot have an empty name. in /var/www/html/3rdparty/symfony/console/Application.php:541
> Stack trace:
> #0 /var/www/html/lib/private/Console/Application.php(230): Symfony\Component\Console\Application->add(Object(OCA\Support\Command\SystemReport))
> #1 /var/www/html/lib/private/Console/Application.php(131): OC\Console\Application->loadCommandsFromInfoXml(Array)
> #2 /var/www/html/console.php(99): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
> #3 /var/www/html/occ(11): require_once('/var/www/html/c...')
> #4 (main)
Is this the first time youâve seen this error? (Y/N): Y
Steps to replicate it:
- Follow directions here (https://github.com/nextcloud/docker/blob/master/.examples/README.md) to deploy a full fpm-alpine NC + nginx proxy using the docker compose approach.
- Docker into the
app
container usingdocker exec -it -u www-data nextcloud-app sh
- Execute the command
php occ -h
The output of your Nextcloud log in Admin > Logging:
No logs
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'memcache.local' => '\\OC\\Memcache\\APCu',
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/html/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/www/html/custom_apps',
'url' => '/custom_apps',
'writable' => true,
),
),
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'nextcloud-redis',
'password' => '',
'port' => ===== REDACTED =====,
),
'instanceid' => '===== REDACTED =====',
'passwordsalt' => '===== REDACTED =====',
'secret' => '===== REDACTED =====',
'trusted_domains' =>
array (
0 => '===== REDACTED =====',
),
'datadirectory' => '/var/www/html/data',
'dbtype' => 'mysql',
'version' => '27.1.4.1',
'overwrite.cli.url' => '===== REDACTED =====',
'dbname' => 'nextcloud',
'dbhost' => 'nextcloud-db',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => '===== REDACTED =====',
'dbpassword' => '===== REDACTED =====',
'installed' => true,
);
Dockerfile for app
:
FROM nextcloud:27.1.4-fpm-alpine
RUN set -ex; \
\
apk add --no-cache \
ffmpeg \
imagemagick \
procps \
samba-client \
supervisor \
# libreoffice \
;
RUN set -ex; \
\
apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
imap-dev \
krb5-dev \
openssl-dev \
samba-dev \
bzip2-dev \
gmp-dev \
; \
\
docker-php-ext-configure imap --with-kerberos --with-imap-ssl; \
docker-php-ext-install \
bz2 \
imap \
gmp \
; \
pecl install smbclient; \
docker-php-ext-enable smbclient; \
\
runDeps="$( \
scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions \
| tr ',' '\n' \
| sort -u \
| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \
)"; \
apk add --virtual .nextcloud-phpext-rundeps $runDeps; \
apk del .build-deps
RUN mkdir -p \
/var/log/supervisord \
/var/run/supervisord \
;
COPY supervisord.conf /etc/supervisord.conf
ENV NEXTCLOUD_UPDATE=1
CMD ["/usr/bin/supervisord"]
Dockerfile for web
:
FROM nginx:alpine
COPY nginx.conf /etc/nginx/nginx.conf
Docker Compose file:
version: '3.7'
services:
db:
container_name: nextcloud-db
hostname: nextcloud-db
image: mariadb:10.6
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW ### --innodb-file-per-table=1 --skip-innodb-read-only-compressed
restart: always
volumes:
- db:/var/lib/mysql:Z
environment:
- MYSQL_PASSWORD={{{REDACTED}}}
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MARIADB_AUTO_UPGRADE=1
- MARIADB_DISABLE_UPGRADE_BACKUP=1
- MYSQL_ROOT_PASSWORD={{{REDACTED}}}
networks:
- nextcloud-default
redis:
container_name: nextcloud-redis
hostname: nextcloud-redis
image: redis:alpine
restart: always
networks:
- nextcloud-default
app:
build:
context: ./app
container_name: nextcloud-app
hostname: nextcloud-app
image: myown/nextcloud:27.1.4-fpm-alpine
restart: always
volumes:
- nextcloud:/var/www/html:z
- www2:/usr/local/etc/php-fpm.d
environment:
- MYSQL_HOST=nextcloud-db
- REDIS_HOST=nextcloud-redis
- MYSQL_PASSWORD={{{REDACTED}}}
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MARIADB_AUTO_UPGRADE=1
- MARIADB_DISABLE_UPGRADE_BACKUP=1
depends_on:
- db
- redis
networks:
- nextcloud-default
web:
build: ./web
container_name: nextcloud-web
hostname: nextcloud-web
image: myown/nginx:fpm-alpine-nextcloud
restart: always
volumes:
- nextcloud:/var/www/html:z,ro
environment:
- VIRTUAL_HOST={{{REDACTED}}}
- LETSENCRYPT_HOST={{{REDACTED}}}
- LETSENCRYPT_EMAIL={{{REDACTED}}}
depends_on:
- app
networks:
- nextcloud-default
- proxy-default
cron:
build:
context: ./app
container_name: nextcloud-cron
hostname: nextcloud-cron
image: myown/nextcloud:27.1.4-fpm-alpine
restart: always
volumes:
- nextcloud:/var/www/html:z
entrypoint: /cron.sh
depends_on:
- db
- redis
networks:
- nextcloud-default
volumes:
db:
name: "nextcloud-db"
driver_opts:
type: none
device: {{{REDACTED}}}
o: bind
nextcloud:
name: "nextcloud-nextcloud"
driver_opts:
type: none
device: {{{REDACTED}}}
www2:
name: "nextcloud-www2"
driver_opts:
type: none
device: {{{REDACTED}}}
o: bind
networks:
cyco-proxy-default:
name: proxy-default
external: true
nextcloud-default:
name: nextcloud-default