I have NextCloudPi on Raspberry Pi 2 with External USB drive, and trying to Bulk Import Photos and Videos from USB drive into NextCloudPi.
Tried the nc-scan command from root login on the USB folder (/media/myhdd) however it did not scan anything.
Is there an option to bulk import all my photo/video into NextCloudPi
Please help!
Ran the nc-scan from web gui
Also, the path for the photos
root@NextCloudPi:/media/USBdrive# find . -type f | wc -l
5377
Additionally, www-data has ownership of the photos folder
root@NextCloudPi:/media/USBdrive/Photos# ls -l
total 36
drwxr-xr-x 3 www-data www-data 4096 Jan 8 16:37 2010
drwxr-xr-x 3 www-data www-data 4096 Jan 16 17:39 2013
drwxr-xr-x 4 www-data www-data 4096 Jan 8 19:41 2016
drwxr-xr-x 4 www-data www-data 4096 Jan 8 19:41 2017
drwxr-xr-x 3 www-data www-data 4096 Dec 29 23:18 2018
drwxr-xr-x 10 www-data www-data 4096 Jan 26 02:15 2019
drwxr-xr-x 9 www-data www-data 4096 Jan 7 02:57 2020
drwxr-xr-x 3 www-data www-data 4096 Jan 1 20:00 2021
-rw-r–r-- 1 www-data www-data 150 Dec 29 23:12 Readme.md
Did you run nc-fix-permissions before nc-scan?
I think the folder Photos must be inside a user’s folder.
Yes, I did run the nc-fix-permissions before the nc-scan.
I am looking for Bulk import of media into a User on NextcloudPi.
Do you mean, I need to manually “move” the Photos folder / content inside the Photos folder for a user already on NextCloudPi?
Yes and then run nc-fix-permissions and nc-scan
You can find that options on the NextCloudPi web panel under tools
Did that, moved sample set of 400 photos into the Nextcloud user’s Photo folder
ran the nc-fix-permissions (result came as done) and then nc-scan
[ nc-scan ] (Fri Jan 29 20:58:16 GMT 2021)
Unknown user 1 media
±--------±------±-------------+
| Folders | Files | Elapsed time |
±--------±------±-------------+
| 0 | 0 | 00:00:00 |
±--------±------±-------------+
Photos are still not being shown or imported.
What is your NextCloudPi version?
The last NextCloudPi version is V 1.34.7
This is the current version NextCloudPi 20.0.4 and upgrading to 20.0.6 (in progress now)
EDIT:
Ran the upgrade, and the install log had this:
NextCloudPi updated to version v1.30.0
Running unattended-upgrades
Unattended upgrades active: yes (autoreboot true)
NextCloudPi updated to version v1.34.7
Done. Press any key...
So version shows as v1.34.7
Running the fix permission and scan again now
same response:
vascocb
January 29, 2021, 10:27pm
11
I run in to that problem some time ago and that was a bug that was solved.
That’s the reason I asked for the version.
Try to run nc-scan with the path’s empty.
RPI2 is to slow for Nextcloud, I think is better to use the terminal version of web-panel.
Login by SSH and run “sudo ncp-config”, then go to tools and run nc-scan
yep, done this via ssh command-line as well,
same results,
root@NextCloudPi:~# ncp-config
Running nc-fix-permissions
fixing permissions in /media/root/ncdata… done
Done. Press any key…
NextCloudPi installer configuration
Enter configuration for nc-scan
RECURSIVE yes
NONEXTERNAL no
PATH1 /media/USBdrive2/ncdata/<user>/files/Photos/Photos
PATH2
PATH3
<Start > <Cancel>
Running nc-scan
Unknown user 1 media
±--------±------±-------------+
| Folders | Files | Elapsed time |
±--------±------±-------------+
| 0 | 0 | 00:00:00 |
±--------±------±-------------+
Done. Press any key…
root@NextCloudPi:~#
vascocb
January 29, 2021, 10:34pm
13
Did you tried with all the 3 path’s empty?
vascocb
January 29, 2021, 10:48pm
14
Do not update to 20.0.6. There are issues and thats why NextCloudPI is on 20.0.4
Nextcloud version : 20.0.5
Operating system and version: Debian 10.7
Apache: Apache 2.4.38
PHP version: 7.3.19-1
Same issue here. After manual NC update from 20.0.4 to 20.0.5 (download from Changelog – Nextcloud ) TOTP app is missing in 20.0.5. The app wasn’t installed within the update process, which means that all users using 2FA-TOTP could not login anymore and had to use the backup codes. The app can not be found anymore in NC 20.0.5.
I manually solved the issue by copying the app from t…
tried all the 3 paths, same result for both TUI and Web GUI, media photos are still not imported.
Also, looks like the nc-udpate only updated the NextCloudPi version to 1.34.7 and NextCloud is still on 20.0.4.
vascocb
January 30, 2021, 12:02am
16
Yes, NCP will be on 20.0.4 until all NC issues are solved
Please paste “ncp-report”
Use pastebin
Any help anyone, how to bulk import photos and videos into NCP?