Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Nextcloud AIO, scan files?

Featured Replies

Hello, 

 

I just installed nextcloud AIO, I finally after many attempt ... 

It s now working well !

But ...

I would like to copy from my unraid my files I want to share to the nextcloud folder.
I figure out that I can t see the files I copied. 
I understood that I have to do a Scan file to update nexcloud with the file I just copied.

I found that I can modify the config.php file to scan automatically when I add new files. 

 

My problem is I can t find the config.php file. there is nothing in my app data folder, not even Nextcloud. I m using Krusader as files explorer.

If someone could help me ... 😁

I m looking for the path of config.php 😅  or other any solution to let me scan the nextcloud folder to see my files on nextcloud...

Many thanks !

Cheers

Capture d’écran 2025-01-13 à 19.11.11.png

  • Community Expert

as on nextcloud forum...

you would need to run occ comands...
you should be able to console into nextcloud-aio-nextcloud to run the occ commands...

as this is not a unraid issues...

 

per your picture it should be under html/php in /mnt/user/nextcloud...

heres a user terminal script to find it find-config.sh

#!/bin/bash

# Define the directory to search
SEARCH_DIR="/mnt/user/nextcloud"

# Search for config.php
echo "Searching for config.php in $SEARCH_DIR..."
CONFIG_PATH=$(find "$SEARCH_DIR" -type f -name "config.php" 2>/dev/null)

# Check if config.php was found
if [[ -n "$CONFIG_PATH" ]]; then
    echo "Found config.php at: $CONFIG_PATH"
else
    echo "config.php not found in $SEARCH_DIR."
fi

 

Edited by bmartino1
Data - Typo

  • Author
On 1/14/2025 at 8:10 AM, bmartino1 said:

as on nextcloud forum...

you would need to run occ comands...
you should be able to console into nextcloud-aio-nextcloud to run the occ commands...

as this is not a unraid issues...

 

per your picture it should be under html/php in /mnt/user/nextcloud...

heres a user terminal script to find it find-config.sh

#!/bin/bash

# Define the directory to search
SEARCH_DIR="/mnt/user/nextcloud"

# Search for config.php
echo "Searching for config.php in $SEARCH_DIR..."
CONFIG_PATH=$(find "$SEARCH_DIR" -type f -name "config.php" 2>/dev/null)

# Check if config.php was found
if [[ -n "$CONFIG_PATH" ]]; then
    echo "Found config.php at: $CONFIG_PATH"
else
    echo "config.php not found in $SEARCH_DIR."
fi

 

 

 

Thanks for your help and answer,  I ll ask to Nextcloud Forum :)

I already tried the script to wrote me, but it can t find the file config.php which is very weird to me !


Capturedcran2025-01-1601_11_44.thumb.png.c7117c2265ef3236d41840bbc6b7f0c9.png
 

 

 

  • Community Expert

your php file may not be located uner /mnt/user/nextcloud. I left Nextcloud for many reasons. you would need to change the search dir to other folder. to scan the entire appdata folder.
if its not in appdata then you have a docker variable and path issue Somewhere....

 

Docker pathing would be a unriad issue.

 

did you follow space invaders setup?
 

 

  • 3 months later...

@bmartino1 your info helped me. Thank you. I wonder what you chose to replace Nextcloud with?

  • Community Expert
4 hours ago, omecabs said:

@bmartino1 your info helped me. Thank you. I wonder what you chose to replace Nextcloud with?

 

It all comes down to what your trying to do and how you want to interact with it...

Immich for photos and videos... my phones and remote device over tailscale and local will auto backup pictures and moveis to my unraid system.

 

To use nextcloud effectively on unriad it should be a VM. 

 

For me I prefer SFTP for file transfer for the http web access I stumbled in to my old friends again with rejettof hfs. As I ran hfs 2.0 version and was quite active on there forum years ago...

 

As A lot of my files are large and I need the ability to pause transfers and guarantee files... so FileZilla, connect and transfer from ssh or the sftp-fail2ban docker... to a unraid share...

-AS I can leverage sambe to fix read write permission(force user force group)... as filezilla (is also a linuxserver docker as well) gives me the ability to easily manage and monitor transfers between machines...

Rejeto hfs 3.0 is built on node.js and is a http / https web file server. I have used rejetto hfs over nextcloud for many years as it hit my requiremnts being secure by default with many ease of access features from webdav to webiste self hosting to other file sharing access for firmware and other side site for self home lab scritps. I added rejetohfs to the unriad docker system via the CA. 

 

For Me, I would recomend a Nextcloud replaced instance I would point you towards rejettohfs over nextcloud. However there are other dockers such as syncthings and seafile that exist...


Immich I made a gudie due to some confusion over the years...

 

Thanks for the detailed response and suggestions @bmartino1. I will rethink my approach.

  • Community Expert

IMO the regular version of Nextcloud works better for unraid instead of the AIO container. Unless you need all the extra features of the AIO container.

 

The AIO version does not allow easy access to files on the host machine as everything lives within the container volumes which are hidden away from unraid(host) and not accessible.

  • Community Expert
1 hour ago, MowMdown said:

IMO the regular version of Nextcloud works better for unraid instead of the AIO container. Unless you need all the extra features of the AIO container.

 

The AIO version does not allow easy access to files on the host machine as everything lives within the container volumes which are hidden away from unraid(host) and not accessible.

I agree. but even that is not secure by default and is prone to issues with maintenance with updates...

Easier and better systems exist... 
 

Nexcloud by all means is not bad if servers a function. 

 

For me it doesn't cross all its t and dot there i. info and the docs are great but need more simplified in terms of administrative management and ease of use.

  • 2 months later...
On 5/9/2025 at 4:45 PM, MowMdown said:

IMO the regular version of Nextcloud works better for unraid instead of the AIO container. Unless you need all the extra features of the AIO container.

 

The AIO version does not allow easy access to files on the host machine as everything lives within the container volumes which are hidden away from unraid(host) and not accessible.

"The AIO version does not allow easy access to files on the host machine as everything lives within the container volumes which are hidden away from unraid(host) and not accessible."

Is this not always the case using dockers?

I am trying to make nextcloud see my images using the command

sudo docker exec --user www-data -it nextcloud-aio-nextcloud php occ files:scan --path="matthias/files/Photos - Nextcloud/2019"

But this does not seem to work. A lot of my files are shown in the Nextcloud UI, but others are not and there is seemingly not difference between them (in terms of users or rights).

Update: database container shows following errors:

2025-07-28 20:07:40.954 UTC [61270] ERROR:  duplicate key value violates unique constraint "fs_storage_path_hash"
2025-07-28 20:07:40.954 UTC [61270] DETAIL:  Key (storage, path_hash)=(3, 9cb7cb4a53c36039191585ee2d589233) already exists.
2025-07-28 20:07:40.954 UTC [61270] STATEMENT:  INSERT INTO "oc_filecache" ("mimepart", "mimetype", "mtime", "size", "etag", "storage_mtime", "permissions", "name", "parent", "checksum", "path_hash", "path", "storage") VALUES($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13)

Edited by inquiring-trigger7447
new update

depending on your nextcloud version you could try occ web (nextcloud app). Easier to use than to remember the cli syntax of occ commands.
From my experience AIO in unraid is very stable. In the past i installed regular version of nextcloud but there were always php files to edit.

With AIO i didn't had a single issue once setup and the backup is very convenient.

The more important is to set it up correctly particularly for folder ownership and permissions.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.