# Cannot find OCC command in Nextcloud-AIO Docker installation - command not found

**URL:** <https://help.nextcloud.com/t/cannot-find-occ-command-in-nextcloud-aio-docker-installation-command-not-found/234111>\
**Category:** ℹ️ Support\
**Tags:** nc32, occ, aio\
**Created:** [October 16, 2025, 8:51am UTC](https://help.nextcloud.com/t/cannot-find-occ-command-in-nextcloud-aio-docker-installation-command-not-found/234111 "2025-10-16T08:51:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![User6435](https://help.nextcloud.com/user_avatar/help.nextcloud.com/user6435/32/68381_2.png) [@User6435](https://help.nextcloud.com/u/User6435)\
**Post date:** [October 16, 2025, 8:51am UTC](https://help.nextcloud.com/t/cannot-find-occ-command-in-nextcloud-aio-docker-installation-command-not-found/234111/1 "2025-10-16T08:51:13Z")

</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).

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. ❤

## The Basics

- Nextcloud Server version _(e.g., 29.x.x)_:
  - **[Nextcloud Hub 25 Autumn](https://nextcloud.com/) (32.0.0)**

- Operating system and version _(e.g., Ubuntu 24.04)_:
  - **Linux 6.12.47+rpt-rpi-2712 aarch64**

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

- Reverse proxy and version \_(e.g. nginx 1.27.2)
  - `replace me`

- PHP version _(e.g, 8.3)_:
  - Version: _8.3.25_

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

- When did this problem seem to first start?
  - `two weeks ago`

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

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

### Summary of the issue you are facing:

Trying to use OCC comannd results in “command not found” error.

I tried:

running occ in SSH (root)

running occ in docker(ssh into container using [portainer.io](http://portainer.io))

running occ in OCC- Web app

find occ results in

“No such file or directory”

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

Install Nextcloud AIO on RPI 5 16 gb

typing occ -h etc. (occ files:scan --user)

### Log entries

no log is created

### 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!):

```auto
occ not working

```

####

---

<div class="post-metadata">

**Author:** ![szaimen](https://help.nextcloud.com/user_avatar/help.nextcloud.com/szaimen/32/63019_2.png) [@szaimen](https://help.nextcloud.com/u/szaimen)\
**Post date:** [October 16, 2025, 9:03am UTC](https://help.nextcloud.com/t/cannot-find-occ-command-in-nextcloud-aio-docker-installation-command-not-found/234111/2 "2025-10-16T09:03:09Z")

</div>

Hi, see [GitHub - nextcloud/all-in-one: 📦 The official Nextcloud installation method. Provides easy deployment and maintenance with most features included in this one Nextcloud instance.](https://github.com/nextcloud/all-in-one?tab=readme-ov-file#how-to-run-occ-commands)

---

<div class="post-metadata">

**Author:** ![Mornsgrans](https://help.nextcloud.com/user_avatar/help.nextcloud.com/mornsgrans/32/40386_2.png) [@Mornsgrans](https://help.nextcloud.com/u/Mornsgrans)\
**Post date:** [October 16, 2025, 9:19am UTC](https://help.nextcloud.com/t/cannot-find-occ-command-in-nextcloud-aio-docker-installation-command-not-found/234111/3 "2025-10-16T09:19:04Z")

</div>

occ in many installations is not set as an executable file.  
The correct syntax is mentioned in the admin guide:

> **[Using the occ command — Nextcloud latest Administration Manual latest...](https://docs.nextcloud.com/server/28/admin_manual/configuration_server/occ_command.html)**

---

<div class="post-metadata">

**Author:** ![system](https://help.nextcloud.com/user_avatar/help.nextcloud.com/system/32/29333_2.png) [@system](https://help.nextcloud.com/u/system)\
**Post date:** [October 24, 2025, 9:19am UTC](https://help.nextcloud.com/t/cannot-find-occ-command-in-nextcloud-aio-docker-installation-command-not-found/234111/4 "2025-10-24T09:19:59Z")

</div>

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