NextCloud : Table ‘oc_external_mounts’ doesn’t exist

131 x served & 16 x viewed

J’ai eu l’erreur : Table ‘nextcloud.oc_external_mounts‘ doesn’t exist , pour fixer le problème j’ai fait :

Pour avoir l’erreur j’ai modifié le fichier /usr/share/nginx/nextcloud/config/config.php :

  'installed' => true,
  'maintenance' => false,
  'theme' => '',
  'debug' => true,
  'loglevel' => '2',
  'logtimezone' => 'Europe/Paris',
  'log_type' => 'owncloud',
  'logfile' => '/var/log/nextcloud.log',
  'log_rotate_size' => '104857600',

Pour le fix du problème :

$ sudo -u www-data php /usr/share/nginx/nextcloud/occ maintenance:repair
...
$ sudo -u www-data php /usr/share/nginx/nextcloud/occ upgrade
Nextcloud is already latest version
$ sudo -u www-data php /usr/share/nginx/nextcloud/occ  app:enable files_external
files_external enabled
$ sudo -u www-data php /usr/share/nginx/nextcloud/occ upgrade
Nextcloud is already latest version

A noter que j’ai aussi modifier la configuration de PHP : /etc/php/7.2/fpm/php.ini

[PHP]
engine = On
short_open_tag = Off
precision = 14
output_buffering = 4096
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func =
serialize_precision = -1
disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
disable_classes =
zend.enable_gc = On
expose_php = Off
max_execution_time = 120
max_input_time = 120
memory_limit = 512M
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
display_errors = On
display_startup_errors = On
log_errors = On
log_errors_max_len = 4024
ignore_repeated_errors = On
ignore_repeated_source = Off
report_memleaks = On
html_errors = On
variables_order = "GPCS"
request_order = "GP"
register_argc_argv = Off
auto_globals_jit = On
post_max_size = 8M
auto_prepend_file =
auto_append_file =
default_mimetype = "text/html"
default_charset = "UTF-8"
doc_root =
user_dir =
enable_dl = Off
file_uploads = On
upload_max_filesize = 20M
max_file_uploads = 20
allow_url_fopen = On
allow_url_include = Off
default_socket_timeout = 60

J’ai vu cette erreur j’ai donc grandement augmenté la mémoire et le temps (Par défaut c’est 128M et j’ai mis 512M).

PHP message: PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 4096 bytes) in 
/usr/share/nginx/nextcloud/lib/private/Log/LogDetails.php on line 99" while reading response header from upstream, 
client: 127.0.0.1, server: 127.0.0.1, request: "GET /cron.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "127.0.0.1"

Pour relancer le service : sudo systemctl restart php7.2-fpm.service .

A suivre.

 

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Time limit is exhausted. Please reload CAPTCHA.