2019年6月8日土曜日

Internal error for NextCloud

再作成を行い、指定したnextcludのurlに移動するとInternal errorが発生してしまった。
以下、対処方法を記載する。

root@rasp-master:~# curl http://192.168.13.4:32222
=============================================================================================
Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.

More details can be found in the server log.
==============================================================================================


1)volume pathの削除
nextcloudで指定したVolumeのディレクトリを削除する。

例)rm -r /home/pi/nc-pv


2)NexstCloudの再作成を行う


3)config.phpの修正を行う。

例) /home/pi/nc-pv/config/config.php
============================================================================================
<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  '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,
    ),
  ),
  'passwordsalt' => '4qq/+kps2ytFW4ITOq4hTKzDq+UYT0',
  'secret' => '7aVXPVXzxwMz43cGTQt8hPXIBJZrGq8vboXBHTg70EnFFvYB',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => '192.168.13.4',  <---NextCloudのnode IPを記載する。
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '16.0.1.1',
  'overwrite.cli.url' => 'http://localhost',
  'dbname' => 'nextcloud',
  'dbhost' => 'db',
  'dbport' => '',
  'dbtableprefix' => '',
  'dbuser' => 'nextcloud',
  'dbpassword' => '**********',
);
===============================================================================================


結論:
過去に作成したconfigファイルが維持された状態で
NextCloudを再作成すると、Internal errorが発生するようだ。

0 件のコメント:

コメントを投稿

【AI×GitOps】Docker Composeから始めるRaspberry Pi 5 Kubernetesクラスタへの自動デプロイ設計

現在構築を進めている動画管理システム開発において、いきなりKubernetes(K8s)に展開するのではなく、 Docker Composeを中間地点に挟んで段階的にK8s+Argo CD(GitOps)へ移行するアーキテクチャ設計 をまとめました。 Bionic(AIアシスタン...