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

Error: This app cannot be enabled because it makes the server unstable #2574

Closed
Bazis007 opened this issue May 16, 2024 · 5 comments
Closed

Comments

@Bazis007
Copy link

Steps to reproduce

I press Update app, after that this app become non-workable.
I was try to disable/enable app, but got message "Error: This app cannot be enabled because it makes the server unstable"

I am update NC to 29 but got same result.

Expected behavior

Install / enable -> sucsess result

Actual behaviour

I got message "Error: This app cannot be enabled because it makes the server unstable"

Tasks app version

0.16.0

CalDAV-clients used

No response

Browser

No response

Client operating system

No response

Server operating system

No response

Web server

Apache

Database engine version

PostgreSQL

PHP engine version

PHP 8.2

Nextcloud version

Nextcloud Hub 8 (29.0.0)

Updated from an older installed version or fresh install

None

List of activated apps

Enabled:
  - calendar: 4.7.4
  - checksum: 1.2.4
  - cloud_federation_api: 1.12.0
  - dav: 1.30.1
  - deck: 1.13.0
  - drawio: 3.0.2
  - federatedfilesharing: 1.19.0
  - files: 2.1.0
  - files_downloadlimit: 2.0.0
  - files_external: 1.21.0
  - files_pdfviewer: 2.10.0
  - files_sharing: 1.21.0
  - files_trashbin: 1.19.0
  - files_versions: 1.22.0
  - lookup_server_connector: 1.17.0
  - notes: 4.10.0
  - oauth2: 1.17.0
  - onlyoffice: 9.2.0
  - photos: 2.5.0
  - previewgenerator: 5.5.0
  - privacy: 1.13.0
  - provisioning_api: 1.19.0
  - recommendations: 2.1.0
  - related_resources: 1.4.0
  - settings: 1.12.0
  - theming: 2.4.0
  - twofactor_backupcodes: 1.18.0
  - viewer: 2.3.0
  - workflowengine: 2.11.0
Disabled:
  - activity: 2.21.1 (installed 2.21.1)
  - admin_audit: 1.19.0 (installed 1.19.0)
  - bruteforcesettings: 2.9.0 (installed 2.9.0)
  - circles: 29.0.0-dev (installed 27.0.1)
  - comments: 1.19.0 (installed 1.17.0)
  - contactsinteraction: 1.10.0 (installed 1.8.0)
  - dashboard: 7.9.0 (installed 7.1.0)
  - encryption: 2.17.0
  - federation: 1.19.0 (installed 1.17.0)
  - files_downloadactivity: 1.16.0 (installed 1.16.0)
  - files_fulltextsearch: 28.0.0 (installed 28.0.0)
  - files_reminders: 1.2.0 (installed 1.0.0)
  - files_trackdownloads: 1.11.0 (installed 1.11.0)
  - firstrunwizard: 2.18.0 (installed 2.11.0)
  - logreader: 2.14.0 (installed 2.12.0)
  - nextcloud_announcements: 1.18.0 (installed 1.15.0)
  - notifications: 2.17.0 (installed 2.16.0)
  - password_policy: 1.19.0 (installed 1.17.0)
  - serverinfo: 1.19.0 (installed 1.19.0)
  - sharebymail: 1.19.0 (installed 1.16.0)
  - side_menu: 3.12.0 (installed 3.12.0)
  - support: 1.12.0 (installed 1.9.0)
  - survey_client: 1.17.0 (installed 1.14.0)
  - suspicious_login: 7.0.0 (installed 4.3.0)
  - systemtags: 1.19.0 (installed 1.17.0)
  - tasks: 0.16.0 (installed 0.16.0)
  - text: 3.10.0 (installed 3.8.0)
  - twofactor_totp: 11.0.0-dev
  - updatenotification: 1.19.1 (installed 1.16.0)
  - user_ldap: 1.20.0
  - user_status: 1.9.0 (installed 1.6.0)
  - weather_status: 1.9.0 (installed 1.6.0)
  - workflow_media_converter: 1.10.3 (installed 1.9.3)

Nextcloud configuration

{
    "system": {
        "htaccess.RewriteBase": "\/",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.averus.org",
            "onlyoffice.averus.org",
            "192.168.33.10"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "29.0.0.19",
        "overwrite.cli.url": "http:\/\/localhost",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "overwriteprotocol": "https",
        "maintenance": false,
        "loglevel": 3,
        "log_type": "file",
        "logfile": "nextcloud.log",
        "logdateformat": "F d, Y H:i:s",
        "theme": "",
        "enable_previews": true,
        "app_install_overwrite": [
            "spreed",
            "files_external_ipfs",
            "drawio",
            "checksum",
            "video_converter",
            "facerecognition",
            "duplicatefinder",
            "money",
            "fulltextsearch",
            "music",
            "richdocuments",
            "files_downloadactivity",
            "files_trackdownloads",
            "workflow_media_converter",
            "files_fulltextsearch"
        ],
        "enabledPreviewProviders": [
            "OC\\Preview\\Image",
            "OC\\Preview\\Movie",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MP3",
            "OC\\Preview\\MKV",
            "OC\\Preview\\MP4",
            "OC\\Preview\\AVI",
            "OC\\Preview\\mp4"
        ],
        "data-fingerprint": "9a1aca8f6838570b04bf1753a5690303"
    }
}

Web server error log

No response

Log file

No response

Browser log

No response

Additional info

No response

@raimund-schluessler
Copy link
Member

raimund-schluessler commented May 16, 2024

Tasks 0.16.0 is compatible with NC 28 and above. There seems to be something wrong with your server (configuration).

You can try to remove the app and reinstall it again. Clear the caches, restart your server and check the access rights in your apps folder. If this doesn't help, please ask for support in the forum.

@raimund-schluessler raimund-schluessler closed this as not planned Won't fix, can't repro, duplicate, stale May 16, 2024
@sjiawjbssj
Copy link

@Bazis007 I used "occ app:enable tasks" to enable it via command line and it seems to work fine now.

@Bazis007
Copy link
Author

@sjiawjbssj Thanks for advice. I was try to enable this app via command line. Apps is shown as enabled, but I see only nextcloud template, when click to tasks icon. I also try to make "fresh" install of nextcloud with lates versions, but got same problems.
I unable to enable tasks, calendar and many other apps. May be something was broken in NC. I don't know.
I am use docker compose for installation.

{"reqId":"qTVFWWuOFVCd9xLphiwS","level":3,"time":"May 21, 2024 19:09:49","remoteAddr":"192.168.33.198","user":"art","app":"index","method":"GET","url":"/apps/tasks/","message":"{\"Exception\":\"ReflectionException\",\"Message\":\"Class \\\"OCA\\\\Tasks\\\\Controller\\\\CollectionsController\\\" does not exist\",\"Code\":-1,\"Trace\":[{\"file\":\"/var/www/html/lib/private/Route/Router.php\",\"line\":469,\"function\":\"__construct\",\"class\":\"ReflectionClass\",\"type\":\"->\",\"args\":[\"OCA\\\\Tasks\\\\Controller\\\\CollectionsController\"]},{\"file\":\"/var/www/html/lib/private/Route/Router.php\",\"line\":161,\"function\":\"getAttributeRoutes\",\"class\":\"OC\\\\Route\\\\Router\",\"type\":\"->\",\"args\":[\"tasks\"]},{\"file\":\"/var/www/html/lib/private/Route/Router.php\",\"line\":279,\"function\":\"loadRoutes\",\"class\":\"OC\\\\Route\\\\Router\",\"type\":\"->\",\"args\":[\"tasks\"]},{\"file\":\"/var/www/html/lib/private/Route/Router.php\",\"line\":330,\"function\":\"findMatchingRoute\",\"class\":\"OC\\\\Route\\\\Router\",\"type\":\"->\",\"args\":[\"/apps/tasks/\"]},{\"file\":\"/var/www/html/lib/base.php\",\"line\":1050,\"function\":\"match\",\"class\":\"OC\\\\Route\\\\Router\",\"type\":\"->\",\"args\":[\"/apps/tasks/\"]},{\"file\":\"/var/www/html/index.php\",\"line\":49,\"function\":\"handleRequest\",\"class\":\"OC\",\"type\":\"::\",\"args\":[]}],\"File\":\"/var/www/html/lib/private/Route/Router.php\",\"Line\":469,\"message\":\"Class \\\"OCA\\\\Tasks\\\\Controller\\\\CollectionsController\\\" does not exist\",\"exception\":{},\"CustomMessage\":\"Class \\\"OCA\\\\Tasks\\\\Controller\\\\CollectionsController\\\" does not exist\"}","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36","version":"29.0.0.19"}

@sjiawjbssj
Copy link

@Bazis007 sadly that's beyond my knowledge. Maybe someone in the nextcloud forum can help you.

@Bazis007
Copy link
Author

@sjiawjbssj
UPD: Fixed by adding "proxy_redirect http://$host https://$host;" on my reverse proxy (nginx).
Thank you for support.

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