# Cannot access WWW and limited OCC after NC32 Upgrade

**URL:** <https://help.nextcloud.com/t/cannot-access-www-and-limited-occ-after-nc32-upgrade/232968>\
**Category:** ℹ️ Support\
**Tags:** nc32, app\_api, groupfolders-app, php84, collabora-built-in\
**Created:** [September 27, 2025, 2:57pm UTC](https://help.nextcloud.com/t/cannot-access-www-and-limited-occ-after-nc32-upgrade/232968 "2025-09-27T14:57:01Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![dc33](https://help.nextcloud.com/letter_avatar/dc33/32/5_5575768a8748004e209b776fc1b2916d.png) [@dc33](https://help.nextcloud.com/u/dc33)\
**Post date:** [September 27, 2025, 2:57pm UTC](https://help.nextcloud.com/t/cannot-access-www-and-limited-occ-after-nc32-upgrade/232968/1 "2025-09-27T14:57:01Z")

</div>

> **Support intro**
>
> ## Sorry to hear you’re facing problems. 🙁
> 
> _The community help forum ([help.nextcloud.com](http://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](http://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:
> 
> - [Official documentation](https://docs.nextcloud.com) (searchable and regularly updated)
> - [How to topics and FAQs](https://help.nextcloud.com/c/how-to-faqs/9)
> - [Forum search](https://help.nextcloud.com/search)
> 
> (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).

## The Basics

- Nextcloud Server version _(e.g., 29.x.x)_:
  - `32 (Latest upgrade)`

- Operating system and version _(e.g., Ubuntu 24.04)_:
  - `Ubuntu (25.04 I believe)`

- Web server and version _(e.g, Apache 2.4.25)_:
  - `Apache 2.4.63`

- Reverse proxy and version \_(e.g. nginx 1.27.2)
  - `SOPHOS UTM`

- PHP version _(e.g, 8.3)_:
  - `PHP8.4`

- Is this the first time you’ve seen this error? (Yes / No):
  - `Yes`

- When did this problem seem to first start?
- 
  - `Directly after upgrade`

- Installation method _(e.g. AlO, NCP, Bare Metal/Archive, etc.)_
  - `Bare metal / Archive`

- Are you using CloudfIare, mod\_security, or similar? _(Yes / No)_
  - `No`

### Summary of the issue you are facing:

After upgrading, when viewing WWW or trying to use some features of OCC I am receiving an internal server error / command line error message.

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

1. Upgrade to 32 from previous latest version

2. Problem appears.

### Log entries

#### Nextcloud & Command line errors

```auto
{"reqId":"2ygyOZukr1zmi3aGIMmK","level":3,"time":"2025-09-27T14:46:40+00:00","remoteAddr":"10.33.1.218","user":"dc","app":"activitylog","method":"GET","url":"/index.php/apps/dashboard/","message":"/appinfo/app.php is not supported anymore, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36","version":"32.0.0.13","data":{"app":"activitylog"}}
{"reqId":"2ygyOZukr1zmi3aGIMmK","level":3,"time":"2025-09-27T14:46:40+00:00","remoteAddr":"10.33.1.218","user":"dc","app":"browser_warning","method":"GET","url":"/index.php/apps/dashboard/","message":"/appinfo/app.php is not supported anymore, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36","version":"32.0.0.13","data":{"app":"browser_warning"}}
{"reqId":"2ygyOZukr1zmi3aGIMmK","level":3,"time":"2025-09-27T14:46:40+00:00","remoteAddr":"10.33.1.218","user":"dc","app":"index","method":"GET","url":"/index.php/apps/dashboard/","message":"OCP\\Util::numericToNumber(): Argument #1 ($number) must be of type string|int|float, null given, called in /var/www/html/lib/private/Files/Cache/Cache.php on line 162","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36","version":"32.0.0.13","exception":{"Exception":"TypeError","Message":"OCP\\Util::numericToNumber(): Argument #1 ($number) must be of type string|int|float, null given, called in /var/www/html/lib/private/Files/Cache/Cache.php on line 162","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Files/Cache/Cache.php","line":162,"function":"numericToNumber","class":"OCP\\Util","type":"::"},{"file":"/var/www/html/apps/groupfolders/lib/Folder/FolderManager.php","line":597,"function":"cacheEntryFromData","class":"OC\\Files\\Cache\\Cache","type":"::"},{"function":"{closure:OCA\\GroupFolders\\Folder\\FolderManager::getFoldersForGroups():593}","class":"OCA\\GroupFolders\\Folder\\FolderManager","type":"->","args":[" ***sensitive parameters replaced***"]},{"file":"/var/www/html/apps/groupfolders/lib/Folder/FolderManager.php","line":593,"function":"array_map"},{"file":"/var/www/html/apps/groupfolders/lib/Folder/FolderManager.php","line":888,"function":"getFoldersForGroups","class":"OCA\\GroupFolders\\Folder\\FolderManager","type":"->"},{"file":"/var/www/html/apps/groupfolders/lib/AppInfo/Capabilities.php","line":47,"function":"getFoldersForUser","class":"OCA\\GroupFolders\\Folder\\FolderManager","type":"->"},{"file":"/var/www/html/apps/groupfolders/lib/AppInfo/Capabilities.php","line":41,"function":"hasFolders","class":"OCA\\GroupFolders\\AppInfo\\Capabilities","type":"->"},{"file":"/var/www/html/lib/private/CapabilitiesManager.php","line":61,"function":"getCapabilities","class":"OCA\\GroupFolders\\AppInfo\\Capabilities","type":"->"},{"file":"/var/www/html/lib/private/Template/JSConfigHelper.php","line":142,"function":"getCapabilities","class":"OC\\CapabilitiesManager","type":"->"},{"file":"/var/www/html/lib/private/TemplateLayout.php","line":237,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->"},{"file":"/var/www/html/lib/private/Template/Template.php","line":115,"function":"getPageTemplate","class":"OC\\TemplateLayout","type":"->"},{"file":"/var/www/html/lib/public/AppFramework/Http/TemplateResponse.php","line":195,"function":"fetchPage","class":"OC\\Template\\Template","type":"->"},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":163,"function":"render","class":"OCP\\AppFramework\\Http\\TemplateResponse","type":"->"},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":153,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/html/lib/private/Route/Router.php","line":321,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/html/lib/base.php","line":1061,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/html/index.php","line":25,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/html/lib/public/Util.php","Line":323,"message":"OCP\\Util::numericToNumber(): Argument #1 ($number) must be of type string|int|float, null given, called in /var/www/html/lib/private/Files/Cache/Cache.php on line 162","exception":{},"CustomMessage":"OCP\\Util::numericToNumber(): Argument #1 ($number) must be of type string|int|float, null given, called in /var/www/html/lib/private/Files/Cache/Cache.php on line 162"}}

COMMAND LINE ERROR WHEN USING OCC

# time sudo -u '#33' php ./occ files:scan dc
Starting scan for user 1 out of 1 (dc)
An unhandled exception has been thrown:
TypeError: OCP\Util::numericToNumber(): Argument #1 ($number) must be of type string|int|float, null given, called in /var/www/html/lib/private/Files/Cache/Cache.php on line 162 and defined in /var/www/html/lib/public/Util.php:323
Stack trace:
#0 /var/www/html/lib/private/Files/Cache/Cache.php(162): OCP\Util::numericToNumber()
#1 /var/www/html/apps/groupfolders/lib/Folder/FolderManager.php(597): OC\Files\Cache\Cache::cacheEntryFromData()
#2 [internal function]: OCA\GroupFolders\Folder\FolderManager->{closure:OCA\GroupFolders\Folder\FolderManager::getFoldersForGroups():593}()
#3 /var/www/html/apps/groupfolders/lib/Folder/FolderManager.php(593): array_map()
#4 /var/www/html/apps/groupfolders/lib/Folder/FolderManager.php(888): OCA\GroupFolders\Folder\FolderManager->getFoldersForGroups()
#5 /var/www/html/apps/groupfolders/lib/Mount/MountProvider.php(51): OCA\GroupFolders\Folder\FolderManager->getFoldersForUser()
#6 /var/www/html/apps/groupfolders/lib/Mount/MountProvider.php(55): OCA\GroupFolders\Mount\MountProvider->getFoldersForUser()
#7 /var/www/html/lib/private/Files/Config/MountProviderCollection.php(56): OCA\GroupFolders\Mount\MountProvider->getMountsForUser()
#8 /var/www/html/lib/private/Files/Config/MountProviderCollection.php(113): OC\Files\Config\MountProviderCollection->getMountsFromProvider()
#9 /var/www/html/lib/private/Files/SetupManager.php(205): OC\Files\Config\MountProviderCollection->addMountForUser()
#10 /var/www/html/lib/private/Files/SetupManager.php(316): OC\Files\SetupManager->{closure:OC\Files\SetupManager::setupForUser():204}()
#11 /var/www/html/lib/private/Files/SetupManager.php(204): OC\Files\SetupManager->setupForUserWith()
#12 /var/www/html/lib/private/legacy/OC_Util.php(49): OC\Files\SetupManager->setupForUser()
#13 /var/www/html/lib/private/Files/Utils/Scanner.php(95): OC_Util::setupFS()
#14 /var/www/html/lib/private/Files/Utils/Scanner.php(187): OC\Files\Utils\Scanner->getMounts()
#15 /var/www/html/apps/files/lib/Command/Scan.php(165): OC\Files\Utils\Scanner->scan()
#16 /var/www/html/apps/files/lib/Command/Scan.php(255): OCA\Files\Command\Scan->scanFiles()
#17 /var/www/html/3rdparty/symfony/console/Command/Command.php(326): OCA\Files\Command\Scan->execute()
#18 /var/www/html/core/Command/Base.php(218): Symfony\Component\Console\Command\Command->run()
#19 /var/www/html/3rdparty/symfony/console/Application.php(1078): OC\Core\Command\Base->run()
#20 /var/www/html/3rdparty/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand()
#21 /var/www/html/3rdparty/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun()
#22 /var/www/html/lib/private/Console/Application.php(187): Symfony\Component\Console\Application->run()
#23 /var/www/html/console.php(90): OC\Console\Application->run()
#24 /var/www/html/occ(33): require_once('...')
#25 {main}
real 0m3.403s
user 0m0.010s
sys 0m0.010s

```

### Configuration

#### Apps

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

Enabled:

- activity: 5.0.0-dev.0
- activitylog: 0.0.1
- admin\_audit: 1.22.0
- analytics: 6.0.1
- analytics\_sourcepack: 0.0.3
- announcementcenter: 7.2.1
- app\_api: 32.0.0
- appointments: 2.4.6
- assistant: 2.8.0
- audioplayer: 3.5.1
- browser\_warning: 1.0.0
- bruteforcesettings: 5.0.0-dev.0
- calendar: 6.0.0
- camerarawpreviews: 0.8.7
- cfg\_share\_links: 7.0.1
- checksum: 1.2.6
- cloud\_federation\_api: 1.16.0
- comments: 1.22.0
- contacts: 8.0.2
- contactsinteraction: 1.13.1
- dashboard: 7.12.0
- dav: 1.34.2
- drawio: 3.1.0
- event\_update\_notification: 2.7.0
- external: 7.0.0
- federatedfilesharing: 1.22.0
- files: 2.4.0
- files\_accesscontrol: 3.0.0
- files\_archive: 1.2.7
- files\_automatedtagging: 3.0.0
- files\_downloadactivity: 1.18.1
- files\_downloadlimit: 5.0.0-dev.0
- files\_external: 1.24.0
- files\_markdown: 2.4.1
- files\_pdfviewer: 5.0.0-dev.0
- files\_reminders: 1.5.0
- files\_scripts: 4.1.0
- files\_sharing: 1.24.0
- files\_trashbin: 1.22.0
- files\_versions: 1.25.0
- flow\_notifications: 3.0.0
- groupfolders: 20.0.1
- impersonate: 3.0.0
- keeweb: 0.6.21
- logreader: 5.0.0-dev.0
- lookup\_server\_connector: 1.20.0
- mail: 5.5.5
- maps: 1.6.0
- nextcloud\_announcements: 4.0.0-dev.0
- notes: 4.12.3
- notifications: 5.0.0-dev.0
- oauth2: 1.20.0
- occweb: 0.2.3
- password\_policy: 4.0.0-dev.0
- phonetrack: 0.9.1
- photos: 5.0.0-dev.1
- privacy: 4.0.0-dev.0
- profile: 1.1.0
- provisioning\_api: 1.22.0
- quota\_warning: 1.22.0
- recognize: 10.0.4
- recommendations: 5.0.0-dev.0
- related\_resources: 3.0.0-dev.0
- richdocuments: 9.0.0
- richdocumentscode: 25.4.504
- serverinfo: 4.0.0-dev.0
- settings: 1.15.1
- sharebymail: 1.22.0
- side\_menu: 5.1.1
- snowflakestheme: 1.1.3
- spreed: 22.0.0
- suspicious\_login: 10.0.0-dev.0
- systemtags: 1.22.0
- tables: 0.9.5
- terms\_of\_service: 4.6.0
- text: 6.0.0-dev.0
- theming: 2.7.0
- twofactor\_admin: 4.8.0
- twofactor\_backupcodes: 1.21.0
- twofactor\_nextcloud\_notification: 6.0.0-dev.0
- twofactor\_totp: 14.0.0
- updatenotification: 1.22.0
- user\_status: 1.12.0
- viewer: 5.0.0-dev.0
- weather\_status: 1.12.0
- webhook\_listeners: 1.3.0
- workflow\_pdf\_converter: 3.0.0
- workflow\_script: 3.0.0
- workflowengine: 2.14.0

---

<div class="post-metadata">

**Author:** ![dc33](https://help.nextcloud.com/letter_avatar/dc33/32/5_5575768a8748004e209b776fc1b2916d.png) [@dc33](https://help.nextcloud.com/u/dc33)\
**Post date:** [September 27, 2025, 3:02pm UTC](https://help.nextcloud.com/t/cannot-access-www-and-limited-occ-after-nc32-upgrade/232968/2 "2025-09-27T15:02:45Z")

</div>

One of my mounts is currently unavailable, could this be the issue? No problem before upgrade.

---

<div class="post-metadata">

**Author:** ![the\_dude\_abides](https://help.nextcloud.com/user_avatar/help.nextcloud.com/the_dude_abides/32/72578_2.png) [@the\_dude\_abides](https://help.nextcloud.com/u/the_dude_abides)\
**Post date:** [September 27, 2025, 3:40pm UTC](https://help.nextcloud.com/t/cannot-access-www-and-limited-occ-after-nc32-upgrade/232968/3 "2025-09-27T15:40:27Z")

</div>

```auto
OCP\Util::numericToNumber(): Argument #1 ($number) must be of type string|int|float, null given, called in /var/www/html/lib/private/Files/Cache/Cache.php on line 162 and defined in /var/www/html/lib/public/Util.php:323

```

means Nextcloud’s file cache is returning a value for a field that’s expected to be a number (size, mtime, etc.)

Where its failing?

The stack trace points to `/lib/private/Files/Cache/Cache.php` line 162.

## ROOT CAUSE:

- Nextcloud 32 tightened type checks for numeric fields.
- Group Folders app is returning NULL for a numeric field (size, mtime, etc.).
- This NULL value comes from oc\_filecache entries for group folder mounts.
- Older versions silently accepted NULL; now it throws a TypeError.

## LIKELY TRIGGERS:

- Corrupted or incomplete oc\_filecache rows.
- Orphaned group folder records.
- Missing physical path for a group folder mount.

## FIX STEPS:

1. 
## Identify bad cache entries in the database:

(Adjust table prefix if not “oc\_”)

## SELECT \*

FROM oc\_filecache  
WHERE size IS NULL  
OR mtime IS NULL  
OR storage IN (  
SELECT id FROM oc\_storages WHERE id LIKE ‘groupfolder%’  
);

2. Repair the cache:

3. 
## Run Nextcloud repair routines:

## sudo -u www-data php occ maintenance:repair

sudo -u www-data php occ groupfolders:scan \<folder\_id\>  
sudo -u www-data php occ files:scan --path=“//files”

4. Update Group Folders app:

## NOTES:

- This is a data integrity issue, not just a code bug.
- Fix the bad rows in oc\_filecache and keep Group Folders updated.
- Once repaired, scans should complete without error.

========================================================

I used ai to make this a little easier to follow step by step but this should resolve your issue. FYI ai is great for help with errors in bash/python etc. Let it do the debugging for ya. 😉 This should at least give you somewhere to start.

---

<div class="post-metadata">

**Author:** ![dc33](https://help.nextcloud.com/letter_avatar/dc33/32/5_5575768a8748004e209b776fc1b2916d.png) [@dc33](https://help.nextcloud.com/u/dc33)\
**Post date:** [September 27, 2025, 3:43pm UTC](https://help.nextcloud.com/t/cannot-access-www-and-limited-occ-after-nc32-upgrade/232968/4 "2025-09-27T15:43:02Z")

</div>

Thank you so much. Will report back soon.

---

<div class="post-metadata">

**Author:** ![dc33](https://help.nextcloud.com/letter_avatar/dc33/32/5_5575768a8748004e209b776fc1b2916d.png) [@dc33](https://help.nextcloud.com/u/dc33)\
**Post date:** [September 27, 2025, 4:05pm UTC](https://help.nextcloud.com/t/cannot-access-www-and-limited-occ-after-nc32-upgrade/232968/5 "2025-09-27T16:05:11Z")

</div>

> [@the\_dude\_abides](#):
>
> ## SELECT \*
> 
> FROM oc\_filecache  
> WHERE size IS NULL  
> OR mtime IS NULL  
> OR storage IN (  
> SELECT id FROM oc\_storages WHERE id LIKE ‘groupfolder%’  
> );

Im having some issues getting your SQL query to run. Im running postgres if this helps?

SQL Query:

SELECT \* FROM public.oc\_filecache  
WHERE size IS NULL  
OR mtime IS NULL  
OR storage IS (  
SELECT id FROM oc\_storages WHERE id LIKE ‘groupfolder%’  
);

The error displayed is:

ERROR: syntax error at or near “(”  
LINE 4: OR storage IS (

Many thanks

---

<div class="post-metadata">

**Author:** ![the\_dude\_abides](https://help.nextcloud.com/user_avatar/help.nextcloud.com/the_dude_abides/32/72578_2.png) [@the\_dude\_abides](https://help.nextcloud.com/u/the_dude_abides)\
**Post date:** [September 27, 2025, 4:30pm UTC](https://help.nextcloud.com/t/cannot-access-www-and-limited-occ-after-nc32-upgrade/232968/7 "2025-09-27T16:30:35Z")

</div>

I updated this for postgrel

# ========================================================

NEXTCLOUD GROUP FOLDERS: FIXING NULL size/mtime ENTRIES (PostgreSQL)

## CONTEXT:

In Nextcloud 32, stricter type checks mean that any NULL values in  
numeric fields like `size` or `mtime` in `oc_filecache` will cause  
`occ files:scan` and certain Group Folders operations to fail with:

TypeError: OCP\Util::numericToNumber(): Argument #1 ($number) must be of type string|int|float, null given

These scripts repair or remove the bad rows.

* * *

## BATCH FIX FOR ALL GROUP FOLDER ENTRIES

Purpose:

- Automatically update ALL group folder cache rows with missing size/mtime.
- No need to manually hunt broken IDs.

## PostgreSQL-safe syntax:

```auto
UPDATE oc_filecache fc
SET size = 0,
    mtime = EXTRACT(EPOCH FROM NOW())
FROM oc_storages st
WHERE fc.storage = st.numeric_id
  AND st.id LIKE 'groupfolder%'
  AND (fc.size IS NULL OR fc.mtime IS NULL);

```

* * *

## BATCH DELETE FOR TRULY ORPHANED GROUP FOLDER ENTRIES (You may not have to run this, see if occ:filescan is working first)

Purpose:

- Remove group folder cache rows that have no corresponding file on disk.
- Use with caution — this will delete cache entries permanently.

## PostgreSQL-safe syntax:

```auto
DELETE FROM oc_filecache fc
USING oc_storages st
WHERE fc.storage = st.numeric_id
  AND st.id LIKE 'groupfolder%'
  AND (fc.size IS NULL OR fc.mtime IS NULL)
  AND NOT EXISTS (
      SELECT 1
      FROM pg_ls_dir('/path/to/groupfolders') AS files
      WHERE files = fc.path
  );

```

NOTE: Replace `/path/to/groupfolders` with your actual group folders data path.

## ========================================================

USAGE NOTES:

1. Always back up your database before running DELETE or UPDATE queries.
2. Run `occ maintenance:repair` after changes to rebuild indexes.
3. Keep Group Folders app updated to match your Nextcloud version.

---

<div class="post-metadata">

**Author:** ![dc33](https://help.nextcloud.com/letter_avatar/dc33/32/5_5575768a8748004e209b776fc1b2916d.png) [@dc33](https://help.nextcloud.com/u/dc33)\
**Post date:** [September 27, 2025, 4:41pm UTC](https://help.nextcloud.com/t/cannot-access-www-and-limited-occ-after-nc32-upgrade/232968/8 "2025-09-27T16:41:54Z")

</div>

> [@the\_dude\_abides](#):
>
> ```auto
> SELECT fc.*
> FROM oc_filecache fc
> JOIN oc_storages st ON fc.storage = st.numeric_id
> WHERE (fc.size IS NULL OR fc.mtime IS NULL)
> AND st.id LIKE 'groupfolder%';
> 
> ```

Hey,

Thanks for getting back to me!

Running this query returns no rows from my database. It successfully runs but no rows match the criteria so I get an empty result set.

Looking in my oc\_group\_folders table, I have 5 entries. They all have [null] as their storage\_id and root\_id tupples. Could this be the problem? Also one of the rows has -4 for the quota bigint? All the rest have quotas set so they have positive numbers.

Again, thanks for your help.

Warm regards

Dean

---

<div class="post-metadata">

**Author:** ![the\_dude\_abides](https://help.nextcloud.com/user_avatar/help.nextcloud.com/the_dude_abides/32/72578_2.png) [@the\_dude\_abides](https://help.nextcloud.com/u/the_dude_abides)\
**Post date:** [September 27, 2025, 4:57pm UTC](https://help.nextcloud.com/t/cannot-access-www-and-limited-occ-after-nc32-upgrade/232968/9 "2025-09-27T16:57:01Z")

</div>

Check if the physical folders exist

Look in your groupfolders data directory (usually `data/groupfolders/<folder_id>`).  
**If they exist, note the folder IDs**.

Rebuild the storage\_id and root\_id links

You can do this by:  
Running `occ groupfolders:scan <folder_id>` for each folder.

Once you have done that successfully assuming the folders are there and the previous command fixed the issue. Make sure to run a full repair

```auto
occ maintenance:repair 
occ groupfolders:scan 
occ files:scan --path="//files"

```

Hopefully this fixes it for you.

---

<div class="post-metadata">

**Author:** ![dc33](https://help.nextcloud.com/letter_avatar/dc33/32/5_5575768a8748004e209b776fc1b2916d.png) [@dc33](https://help.nextcloud.com/u/dc33)\
**Post date:** [September 27, 2025, 5:03pm UTC](https://help.nextcloud.com/t/cannot-access-www-and-limited-occ-after-nc32-upgrade/232968/10 "2025-09-27T17:03:34Z")

</div>

I get the command line error when trying to use occ groupfolders:scan 1 or –all

---

<div class="post-metadata">

**Author:** ![the\_dude\_abides](https://help.nextcloud.com/user_avatar/help.nextcloud.com/the_dude_abides/32/72578_2.png) [@the\_dude\_abides](https://help.nextcloud.com/u/the_dude_abides)\
**Post date:** [September 27, 2025, 5:06pm UTC](https://help.nextcloud.com/t/cannot-access-www-and-limited-occ-after-nc32-upgrade/232968/11 "2025-09-27T17:06:16Z")

</div>

the same error you initially got or a new one? Are the folders in the path? There is away to do it through postgrel

`UPDATE oc_group_folders`  
`SET storage_id = (SELECT numeric_id FROM oc_storages WHERE id = ‘groupfolder:<folder_id>’),`  
`root_id = (SELECT fileid FROM oc_filecache WHERE path = ‘’ AND storage = (SELECT numeric_id FROM oc_storages WHERE id = ‘groupfolder:<folder_id>’))`  
`WHERE folder_id = <folder_id>;`

Replace `<folder_id>` in the above command to whatever the id’s are in the group folder path, this will inject it directly into the database. Run it for each ID

---

<div class="post-metadata">

**Author:** ![sawo](https://help.nextcloud.com/letter_avatar/sawo/32/5_5575768a8748004e209b776fc1b2916d.png) [@sawo](https://help.nextcloud.com/u/sawo)\
**Post date:** [September 27, 2025, 5:08pm UTC](https://help.nextcloud.com/t/cannot-access-www-and-limited-occ-after-nc32-upgrade/232968/12 "2025-09-27T17:08:10Z")

</div>

Same issue here after update from 31.0.9 to 32.0

> sudo -u www-data php /var/www/nextcloud/occ groupfolders:scan --all  
> An unhandled exception has been thrown:  
> TypeError: OCP\Util::numericToNumber(): Argument #1 ($number) must be of type string|int|float, null given, called in /var/www/nextcloud/lib/private/Files/Cache/Cache.php on line 162 and defined in /var/www/nextcloud/lib/public/Util.php:323  
> Stack trace:  
> #0 /var/www/nextcloud/lib/private/Files/Cache/Cache.php(162): OCP\Util::numericToNumber()

---

<div class="post-metadata">

**Author:** ![dc33](https://help.nextcloud.com/letter_avatar/dc33/32/5_5575768a8748004e209b776fc1b2916d.png) [@dc33](https://help.nextcloud.com/u/dc33)\
**Post date:** [September 27, 2025, 5:08pm UTC](https://help.nextcloud.com/t/cannot-access-www-and-limited-occ-after-nc32-upgrade/232968/13 "2025-09-27T17:08:20Z")

</div>

Yes, the same error. All coming back to Argument #1 passed to numericToNumber ($number) being null instead of string, int, or float.

---

<div class="post-metadata">

**Author:** ![sawo](https://help.nextcloud.com/letter_avatar/sawo/32/5_5575768a8748004e209b776fc1b2916d.png) [@sawo](https://help.nextcloud.com/u/sawo)\
**Post date:** [September 27, 2025, 5:11pm UTC](https://help.nextcloud.com/t/cannot-access-www-and-limited-occ-after-nc32-upgrade/232968/14 "2025-09-27T17:11:58Z")

</div>

I’m able to login after disable groupfolders:

`occ app:disable groupfolders`

---

<div class="post-metadata">

**Author:** ![dc33](https://help.nextcloud.com/letter_avatar/dc33/32/5_5575768a8748004e209b776fc1b2916d.png) [@dc33](https://help.nextcloud.com/u/dc33)\
**Post date:** [September 27, 2025, 5:12pm UTC](https://help.nextcloud.com/t/cannot-access-www-and-limited-occ-after-nc32-upgrade/232968/15 "2025-09-27T17:12:45Z")

</div>

`Yes, I thought this may work. But I didnt try this as I would like to get to the bottom of the issue.`

---

<div class="post-metadata">

**Author:** ![dc33](https://help.nextcloud.com/letter_avatar/dc33/32/5_5575768a8748004e209b776fc1b2916d.png) [@dc33](https://help.nextcloud.com/u/dc33)\
**Post date:** [September 27, 2025, 5:27pm UTC](https://help.nextcloud.com/t/cannot-access-www-and-limited-occ-after-nc32-upgrade/232968/16 "2025-09-27T17:27:15Z")

</div>

> [@the\_dude\_abides](#):
>
> `UPDATE oc_group_folders`  
> `SET storage_id = (SELECT numeric_id FROM oc_storages WHERE id = ‘groupfolder:<folder_id>’),`  
> `root_id = (SELECT fileid FROM oc_filecache WHERE path = ‘’ AND storage = (SELECT numeric_id FROM oc_storages WHERE id = ‘groupfolder:<folder_id>’))`  
> `WHERE folder_id = <folder_id>;`

I tried this in postgres, fixing the ‘ ‘ characters, however it hasnt resolved the issue.

---

<div class="post-metadata">

**Author:** ![sawo](https://help.nextcloud.com/letter_avatar/sawo/32/5_5575768a8748004e209b776fc1b2916d.png) [@sawo](https://help.nextcloud.com/u/sawo)\
**Post date:** [September 27, 2025, 5:31pm UTC](https://help.nextcloud.com/t/cannot-access-www-and-limited-occ-after-nc32-upgrade/232968/17 "2025-09-27T17:31:39Z")

</div>

> <https://github.com/nextcloud/groupfolders/issues/4018>
>
> Hi,
> 
> Builded a Nextcloud 32.0.0 RC4 container, with latest app release of Groupf…olders v20.0.1.
> However, when I enabled this app, it results into a Internal Server Error, with in the logs;
> 
> \`\`\`
> {"reqId":"YrjoduqPTAfCKGrH5gv2","level":3,"time":"26/Sep/2025:10:50:29","remoteAddr":"10.11.0.25","user":"johndoe","app":"index","method":"GET","url":"/settings/admin/overview","message":"OCP\\\\Util::numericToNumber(): Argument #1 ($number) must be of type string|int|float, null given, called in /var/www/nextcloud/lib/private/Files/Cache/Cache.php on line 162","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:143.0) Gecko/20100101 Firefox/143.0","version":"32.0.0.12","exception":{"Exception":"TypeError","Message":"OCP\\\\Util::numericToNumber(): Argument #1 ($number) must be of type string|int|float, null given, called in /var/www/nextcloud/lib/private/Files/Cache/Cache.php on line 162","Code":0,"Trace":\[{"file":"/var/www/nextcloud/lib/private/Files/Cache/Cache.php","line":162,"function":"numericToNumber","class":"OCP\\\\Util","type":"::","args":\[null\]},{"file":"/var/www/nextcloud/custom\_apps/groupfolders/lib/Folder/FolderManager.php","line":646,"function":"cacheEntryFromData","class":"OC\\\\Files\\\\Cache\\\\Cache","type":"::","args":\["\*\*\* sensitive parameters replaced \*\*\*",{"\_\_class\_\_":"OC\\\\Files\\\\Type\\\\Loader"}\]},{"function":"OCA\\\\GroupFolders\\\\Folder\\\\{closure}","class":"OCA\\\\GroupFolders\\\\Folder\\\\FolderManager","type":"-\>","args":\["\*\*\* sensitive parameters replaced \*\*\*"\]},{"file":"/var/www/nextcloud/custom\_apps/groupfolders/lib/Folder/FolderManager.php","line":642,"function":"array\_map","args":\[{"\_\_class\_\_":"Closure"},\["\*\*\* sensitive parameters replaced \*\*\*","\*\*\* sensitive parameters replaced \*\*\*"\]\]},{"file":"/var/www/nextcloud/custom\_apps/groupfolders/lib/Folder/FolderManager.php","line":889,"function":"getFoldersFromCircleMemberships","class":"OCA\\\\GroupFolders\\\\Folder\\\\FolderManager","type":"-\>","args":\[{"\_\_class\_\_":"OC\\\\User\\\\User"},null\]},{"file":"/var/www/nextcloud/custom\_apps/groupfolders/lib/AppInfo/Capabilities.php","line":47,"function":"getFoldersForUser","class":"OCA\\\\GroupFolders\\\\Folder\\\\FolderManager","type":"-\>","args":\[{"\_\_class\_\_":"OC\\\\User\\\\User"}\]},{"file":"/var/www/nextcloud/custom\_apps/groupfolders/lib/AppInfo/Capabilities.php","line":41,"function":"hasFolders","class":"OCA\\\\GroupFolders\\\\AppInfo\\\\Capabilities","type":"-\>","args":\[{"\_\_class\_\_":"OC\\\\User\\\\User"}\]},{"file":"/var/www/nextcloud/lib/private/CapabilitiesManager.php","line":61,"function":"getCapabilities","class":"OCA\\\\GroupFolders\\\\AppInfo\\\\Capabilities","type":"-\>","args":\[\]},{"file":"/var/www/nextcloud/lib/private/Template/JSConfigHelper.php","line":142,"function":"getCapabilities","class":"OC\\\\CapabilitiesManager","type":"-\>","args":\[false,true\]},{"file":"/var/www/nextcloud/lib/private/TemplateLayout.php","line":237,"function":"getConfig","class":"OC\\\\Template\\\\JSConfigHelper","type":"-\>","args":\[\]},{"file":"/var/www/nextcloud/lib/private/Template/Template.php","line":115,"function":"getPageTemplate","class":"OC\\\\TemplateLayout","type":"-\>","args":\["user","settings"\]},{"file":"/var/www/nextcloud/lib/public/AppFramework/Http/TemplateResponse.php","line":195,"function":"fetchPage","class":"OC\\\\Template\\\\Template","type":"-\>","args":\[{"content":"\\n\<div id=\\"vue-admin-settings-setup-checks\\"\>\</div\>\\n\\n\<div id=\\"version\\" class=\\"section\\"\>\\n\\t\\n\\t\<h2\>Version\</h2\>\\n\\t\<p\>\<strong\>\<a href=\\"https://example.com\\" rel=\\"noreferrer noopener\\" target=\\"\_blank\\"\>Nextcloud Hub 25 Autumn\</a\> (32.0.0 RC4)\</strong\>\</p\>\\n\</div\>\\n\\n\<div id=\\"updatenotification\\"\>\</div\>\\n","forms":{"personal":\[{"anchor":"personal-info","section-name":"Personal info","active":false,"icon":"/core/img/actions/user.svg"},{"anchor":"security","section-name":"Security","active":false,"icon":"/apps/settings/img/password.svg"},{"anchor":"notifications","section-name":"Notifications","active":false,"icon":"/apps/notifications/img/notifications-dark.svg"},{"anchor":"externalstorages","section-name":"External storage","active":false,"icon":"/apps/files\_external/img/app-dark.svg"},{"anchor":"sync-clients","section-name":"Mobile & desktop","active":false,"icon":"/core/img/clients/phone.svg"},"And 4 more entries, set log level to debug to see all entries"\],"admin":\[{"anchor":"overview","section-name":"Overview","active":true,"icon":"/apps/settings/img/admin.svg"},{"anchor":"presets","section-name":"Quick presets","active":false,"icon":"/apps/settings/img/library\_add\_check.svg"},{"anchor":"support","section-name":"Support","active":false,"icon":"/apps/support/img/section.svg"},{"anchor":"server","section-name":"Basic settings","active":false,"icon":"/core/img/actions/settings-dark.svg"},{"anchor":"sharing","section-name":"Sharing","active":false,"icon":"/core/img/actions/share.svg"},"And 16 more entries, set log level to debug to see all entries"\]},"pageTitle":"Overview","activeSectionId":"overview","activeSectionType":"admin"}\]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":163,"function":"render","class":"OCP\\\\AppFramework\\\\Http\\\\TemplateResponse","type":"-\>","args":\[\]},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":153,"function":"dispatch","class":"OC\\\\AppFramework\\\\Http\\\\Dispatcher","type":"-\>","args":\[{"\_\_class\_\_":"OCA\\\\Settings\\\\Controller\\\\AdminSettingsController"},"index"\]},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":321,"function":"main","class":"OC\\\\AppFramework\\\\App","type":"::","args":\["OCA\\\\Settings\\\\Controller\\\\AdminSettingsController","index",{"\_\_class\_\_":"OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer"},{"\_route":"settings.adminsettings.index","section":"overview"}\]},{"file":"/var/www/nextcloud/lib/base.php","line":1061,"function":"match","class":"OC\\\\Route\\\\Router","type":"-\>","args":\["/settings/admin/overview"\]},{"file":"/var/www/nextcloud/index.php","line":25,"function":"handleRequest","class":"OC","type":"::","args":\[\]}\],"File":"/var/www/nextcloud/lib/public/Util.php","Line":323,"message":"OCP\\\\Util::numericToNumber(): Argument #1 ($number) must be of type string|int|float, null given, called in /var/www/nextcloud/lib/private/Files/Cache/Cache.php on line 162","exception":{},"CustomMessage":"OCP\\\\Util::numericToNumber(): Argument #1 ($number) must be of type string|int|float, null given, called in /var/www/nextcloud/lib/private/Files/Cache/Cache.php on line 162"}}
> \`\`\`
> 
> \### Steps to reproduce
> 1. Spin up NC32 RC4
> 2. Install Groupfolders app 20.0.1
> 3. Enable App
> 
> \### Expected behaviour
> Tell us what should happen
> 
> \### Actual behaviour
> Tell us what happens instead
> 
> \### Server configuration
> 
> \*\*PHP version:\*\*
> PHP docker container, based on Apache2 with PHP 8.2.29
> 
> \*\*Database:\*\*
> MariaDB 10.6 via ProxySQL
> 
> 
> \*\*Nextcloud version:\*\* (see Nextcloud admin page)
> NC32 RC4
> 
> \*\*Team folders version:\*\*
> v20.0.1
> 
> \*\*Updated from an older Nextcloud/ownCloud or fresh install:\*\*
> Updated from NC31 (migrated from ownCloud OC10 in the past)
> 
> \*\*Where did you install Nextcloud from:\*\*
> https://download.nextcloud.com/server/prereleases/nextcloud-32.0.0rc4.zip
> 
> \*\*Are you using external storage, if yes which one:\*\* local/s3/smb/sftp/...
> No
> 
> \*\*Are you using encryption:\*\* yes/no
> No
> 
> \*\*Are you using an external user-backend, if yes which one:\*\* LDAP/ActiveDirectory/Webdav/Saml/...
> OIDC (but normal login results in same behaviour)
> 
> \### Client configuration
> \*\*Browser:\*\*
> Firefox
> 
> \*\*Operating system:\*\*
> MacOS

---

<div class="post-metadata">

**Author:** ![the\_dude\_abides](https://help.nextcloud.com/user_avatar/help.nextcloud.com/the_dude_abides/32/72578_2.png) [@the\_dude\_abides](https://help.nextcloud.com/u/the_dude_abides)\
**Post date:** [September 27, 2025, 5:32pm UTC](https://help.nextcloud.com/t/cannot-access-www-and-limited-occ-after-nc32-upgrade/232968/18 "2025-09-27T17:32:22Z")

</div>

Can you make sure that each group folder has an id in oc\_storages db.

`SELECT numeric_id, id FROM oc_storages WHERE id LIKE ‘groupfolder:%’;`

f any are missing, insert them first: replace folder\_id with appropriate value

`INSERT INTO oc_storages (id) VALUES (‘groupfolder:<folder_id>’);`

Root filecache entry exists  
For each storage, `oc_filecache` must have a row where:  
• `storage` = that storage’s `numeric_id`  
• `path=’’` (empty string — root of the storage) Check with:

```auto
SELECT fileid, storage, path
FROM oc_filecache
WHERE path = ''
  AND storage = <numeric_id>;

```

**If missing, you’ll need to create the folder physically in and run:**

```auto
occ files:scan --path="/groupfolders/<folder_id>"

```

Once those entries exist:

```auto
UPDATE oc_group_folders gf
SET storage_id = st.numeric_id,
    root_id = fc.fileid
FROM oc_storages st
JOIN oc_filecache fc
  ON fc.storage = st.numeric_id
  AND fc.path = '' -- root of the storage
WHERE st.id = 'groupfolder:' || gf.folder_id
  AND (gf.storage_id IS NULL OR gf.root_id IS NULL);

```

will:  
• Set `storage_id` to the correct `numeric_id` from `oc_storages`  
• Set `root_id` to the correct root `fileid` from `oc_filecache`  
• Only touch rows where either value is currently `NULL`

Lastly run:

```auto
occ maintenance:repair
occ groupfolders:scan <folder_id>

```

Test filescan again and the error should now be fixed.

Keeping my fingers crossed for ya

---

<div class="post-metadata">

**Author:** ![dc33](https://help.nextcloud.com/letter_avatar/dc33/32/5_5575768a8748004e209b776fc1b2916d.png) [@dc33](https://help.nextcloud.com/u/dc33)\
**Post date:** [September 27, 2025, 10:34pm UTC](https://help.nextcloud.com/t/cannot-access-www-and-limited-occ-after-nc32-upgrade/232968/19 "2025-09-27T22:34:37Z")

</div>

Hey \*_\_dude\__\*,

Thanks for all your help.

I still havent resolved this issue. So I’m at the Root filecache entry exists part of your post, and what you said should be there, well they’re all missing. However I can’t use the files:scan function to scan the groupfolders, and when I try occ groupfolders:scan I get the same error again.

FYI I have groupfolder ids 1,2,4,5,7. And I have numeric\_id in the oc\_storages table of 59 - 63, now that I’ve added to the oc\_storages as above.

Again, thank you so much.

- Dean

---

<div class="post-metadata">

**Author:** ![dc33](https://help.nextcloud.com/letter_avatar/dc33/32/5_5575768a8748004e209b776fc1b2916d.png) [@dc33](https://help.nextcloud.com/u/dc33)\
**Post date:** [September 27, 2025, 10:49pm UTC](https://help.nextcloud.com/t/cannot-access-www-and-limited-occ-after-nc32-upgrade/232968/20 "2025-09-27T22:49:33Z")

</div>

If you like (and its ok here) I can show u the contents of any tables you need. This is only a small personal instance of NC that I’m working on. 🙂

---

<div class="post-metadata">

**Author:** ![dc33](https://help.nextcloud.com/letter_avatar/dc33/32/5_5575768a8748004e209b776fc1b2916d.png) [@dc33](https://help.nextcloud.com/u/dc33)\
**Post date:** [September 27, 2025, 11:00pm UTC](https://help.nextcloud.com/t/cannot-access-www-and-limited-occ-after-nc32-upgrade/232968/21 "2025-09-27T23:00:05Z")

</div>

> [@the\_dude\_abides](#):
>
> INSERT INTO oc\_storages (id) VALUES (‘groupfolder:\<folder\_id\>’);

Should this be ‘groupfolder::\<folder\_id\>’? i.e. is it meant to have two : instead of one?

[Next page](https://help.nextcloud.com/t/cannot-access-www-and-limited-occ-after-nc32-upgrade/232968.md?page=2)
