Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Feature: Setup Sanity check #7343

Open
lab-at-nohl opened this issue Nov 3, 2021 · 2 comments
Open

Feature: Setup Sanity check #7343

lab-at-nohl opened this issue Nov 3, 2021 · 2 comments
Assignees
Labels

Comments

@lab-at-nohl
Copy link
Member

Please introduce a framework to implement sanity checks into setup.php. Checks should run in batch on click (or initiated by CLI).

Possible features are:

  • Lately users had issues due to not eliminated files. E.g. matomo (piwik) does checks on file integrity. As a result it shows files that do not belong to the installation
  • To check on file permissions might be a good idea, too.
  • Also a common source for issues is an invalid DB structure. In my understanding the file <APP>/Setup/setup.xml provide the structure of the target model (whereas one cannot see if update scripts ran sucessfully)
  • Additional checks could test for utf8mb4 or similar
  • Functioning of httpd routing/rewrites for ActiveSync and WebDAV
@pschuele
Copy link
Member

hi Johannes,
good idea, I'll discuss that with the team.
we already have some kind of framework here: \Setup_Controller::checkRequirements - we could enhance that and add additional checks there.
it is also callable via cli:

$ php setup.php --check_requirements
OK - All requirements are met
The following optional binaries are missing:  tika

@pschuele
Copy link
Member

Also a common source for issues is an invalid DB structure. In my understanding the file /Setup/setup.xml provide the structure of the target model (whereas one cannot see if update scripts ran sucessfully)

this is already implemented as a separate cli function (chich shows the differences and even allows to fix the structure):

setup.php --compare -- otherdb=tine20other

caveat: you have make a fresh install into "tine20other" to be able to compare the 2 databases.

@pschuele pschuele added the Webserver webserver configuration label Jun 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants