Unable to enable App "Forms" URGENT and CRITICAL

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 28.0.3
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 22.04.4
  • Web server and version (e.g, Apache 2.4.25):
    • replace me
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • nginx/1.18.0`
  • PHP version (e.g, 8.3):
    • PHP 8.2.26
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • After Reboot
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Hyper-V
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • Yes, CloudFlare

Summary of the issue you are facing:

I am unable to enable “Forms App” after reboot.
Forms app is very important for my production server. I ran into the issue after recovering my server from the Disaster recovery. Forms Doesn’t show on the dashboard, however it is enable on the settings.

Steps to replicate it (hint: details matter!):

  1. Forms is enabled on the settings.
  2. After in disable the forms app and try to enable, it doesn’t enable.
  3. Even I cannot remove the forms app.

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

Exception
App "forms" cannot be installed because appinfo file cannot be read.
could not enable apps

s","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0","version":"28.0.3.2","exception":{"Exception":"Exception","Message":"App \"forms\" cannot be installed because appinfo file cannot be read.","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/settings/lib/Controller/AppSettingsController.php","line":454,"function":"installApp","class":"OC\\Installer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"enableApps","class":"OCA\\Settings\\Controller\\AppSettingsController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1069,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":39,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Installer.php","Line":121,"message":"could not enable apps","exception":{},"CustomMessage":"could not enable apps"}}

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

PASTE

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

2025/03/11 16:21:46 [crit] 996#996: *1 connect() to unix:/var/run/php/php8.2-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 172.69.248.155, server: acloud.airblue.com, request: "PROPFIND /remote.php/dav/files/19497/ HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock:", host: 

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

installed' => true,
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => 'localhost',
    'port' => 6379,
    'timeout' => 3,
  ),
  'ldapIgnoreNamingRules' => false,
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
  'maintenance' => false,
  'mail_from_address' => 'support',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => '',
  'mail_smtphost' => '',
  'mail_smtpport' => '',
  'app_install_overwrite' =>
  array (
    0 => 'admin_notifications',
    1 => 'activitylog',
  ),
  'preview_max_x' => 800,
  'preview_max_y' => 800,
  'preview_max_scale_factor' => 8,
  'log_type' => 'file',

Apps

The output of occ app:list (if possible).

Tips for increasing the likelihood of a response

image

image

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

The appinfo file seems to be missing. You can check your apps/ folder. Within that folder there should be a forms folder for the forms app. You can delete the folder, when you enable the app again, and the folder is not present, it will download the current version from the app store.

Data for the forms app, should not be stored there (it is either in the database or in the appdata folder. However, when you do manual manipulations, I’d always do a backup first.

This version run out of support in December 2024!

And even in this major version, you are far from the latest minor version that includes a lot of bug fixes: Changelog unsupported - Nextcloud

2 Likes

Thank you so much,

The solution seemed to work, I have deleted the forms folder and Re-downloaded and Enabled. Now the Forms app is working normal.

Thank you again for saving my day.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.