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 件のコメント:

コメントを投稿

Roo Code + LM Studio 最強ローカルAI開発環境

 AIによるコード生成が当たり前になった今、エンジニアが次に求めるのは「自分のコードベースをすべて把握した上での提案」です。VS Code拡張の  Roo Code(旧Cline)  は、プロジェクト全体をスキャンして記憶する「セマンティック検索(RAG)」機能を備えています。 ...