Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: missing config / dependency checks #47

Open
5 of 8 tasks
cmwik opened this issue Jul 5, 2023 · 1 comment
Open
5 of 8 tasks

[Bug]: missing config / dependency checks #47

cmwik opened this issue Jul 5, 2023 · 1 comment

Comments

@cmwik
Copy link

cmwik commented Jul 5, 2023

⚠️ This issue respects the following points: ⚠️

Bug description

I attempted a fresh install of Nextcloud on a new Fedora 38 server today. I installed the PHP packages listed by setup-nextcloud.php, but actually two dependencies were missing from the list and caused critical errors to be logged. The packages on Fedora are called php-intl and php-process

There was also a critical out of memory error. The PHP default memory_limit of 128M is too low for Nextcloud. It would have been helpful if the installer had flagged this up so I could increase it before running the installer.

Steps to reproduce

  1. Install Fedora 38 Server minimal install. Install httpd, mod_ssl, mariadb-server, php-fpm, do basic web server config (vhost, TLS)
  2. Download https://download.nextcloud.com/server/installer/setup-nextcloud.php and pull it up in a browser
  3. Install additional PHP packages required by setup-nextcloud.php
  4. Go to Administration settings area of new install and see critical errors

Expected behavior

Packages that are required to avoid critical errors should be listed as dependencies. Required memory_limit setting should be checked prior to install.

Installation method

Community Web installer on a VPS or web space

Nextcloud Server version

25

Operating system

Other

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Fresh Nextcloud Server install

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "***REMOVED SENSITIVE VALUE***"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "27.0.0.8",
        "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "filelocking.enabled": true,
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379,
            "timeout": 0
        }
    }
}

List of activated Apps

Enabled:
  - activity: 2.19.0
  - calendar: 4.4.3
  - circles: 27.0.0
  - cloud_federation_api: 1.10.0
  - comments: 1.17.0
  - contacts: 5.3.2
  - contactsinteraction: 1.8.0
  - dashboard: 7.7.0
  - dav: 1.27.0
  - federatedfilesharing: 1.17.0
  - federation: 1.17.0
  - files: 1.22.0
  - files_pdfviewer: 2.8.0
  - files_rightclick: 1.6.0
  - files_sharing: 1.19.0
  - files_trashbin: 1.17.0
  - files_versions: 1.20.0
  - firstrunwizard: 2.16.0
  - logreader: 2.12.0
  - lookup_server_connector: 1.15.0
  - mail: 3.2.3
  - nextcloud_announcements: 1.16.0
  - notes: 4.8.0
  - notifications: 2.15.0
  - oauth2: 1.15.0
  - password_policy: 1.17.0
  - photos: 2.3.0
  - privacy: 1.11.0
  - provisioning_api: 1.17.0
  - recommendations: 1.6.0
  - related_resources: 1.2.0
  - richdocuments: 8.1.0
  - richdocumentscode: 23.5.103
  - serverinfo: 1.17.0
  - settings: 1.9.0
  - sharebymail: 1.17.0
  - spreed: 17.0.1
  - support: 1.10.0
  - survey_client: 1.15.0
  - systemtags: 1.17.0
  - text: 3.8.0
  - theming: 2.2.0
  - twofactor_backupcodes: 1.16.0
  - updatenotification: 1.17.0
  - user_status: 1.7.0
  - viewer: 2.1.0
  - weather_status: 1.7.0
  - workflowengine: 2.9.0
Disabled:
  - admin_audit: 1.17.0
  - bruteforcesettings: 2.7.0
  - encryption: 2.15.0
  - files_external: 1.19.0
  - suspicious_login: 5.0.0
  - twofactor_totp: 9.0.0
  - user_ldap: 1.17.0

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

No response

Additional info

No response

@cmwik cmwik added the bug label Jul 5, 2023
@joshtrichards
Copy link
Member

joshtrichards commented Jul 5, 2023

Hi @cmwik Thanks for participating in the community!

The old Web Installer could probably use some love. It's mostly intended for installation in shared hosting environments AFAIK. I think it largely a best effort / community supported endeavor. You're welcome to submit some PRs.

You may want to consider some of the other (more modern) installation approaches:

https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html

AIO in particular, but it really depends on you preferences and needs.

This Issue should probably get moved over to https://github.com/nextcloud/web-installer but it does bring up the point that the https://nextcloud.com/install page should probably not be highlighting the Web installer so prominently nor without clarity as to when it should be used / not used (the description there could maybe make clearer it's for "Shared hosting" or "Web space with limited access" or some other kind of hint along those lines).

@kesselb kesselb transferred this issue from nextcloud/server Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants