# Error Attempting to Add FTP External Storage

**URL:** <https://help.nextcloud.com/t/error-attempting-to-add-ftp-external-storage/75682>\
**Category:** ℹ️ Support\
**Tags:** external\_storage, ftp, nc18-nextcloud-hub\
**Created:** [March 28, 2020, 9:52pm UTC](https://help.nextcloud.com/t/error-attempting-to-add-ftp-external-storage/75682 "2020-03-28T21:52:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![misterlindsey](https://help.nextcloud.com/user_avatar/help.nextcloud.com/misterlindsey/32/23034_2.png) [@misterlindsey](https://help.nextcloud.com/u/misterlindsey)\
**Post date:** [March 28, 2020, 9:52pm UTC](https://help.nextcloud.com/t/error-attempting-to-add-ftp-external-storage/75682/1 "2020-03-28T21:52:44Z")

</div>

Nextcloud version: 18.0.3  
Operating system and version: CentOS 7  
Apache or nginx version: Apache 2.4.41  
PHP version: 7.2.29

The issue is when attempting to add a new FTP share, I receive the error: stat(): stat failed for ftp://xxx:xxx@drive.mattlindsey.com/matt/ at /home/mlindsey/public\_html/addon/mycloud/apps/files\_external/lib/Lib/Storage/StreamWrapper.php#127

Research recommended disabling SELINUX from /etc/selinux/config which I have, and then rebooted, but same error persists.

(I’m a bit lost on this one. After fighting to get smbclient working, yet another hurdle! )

---

<div class="post-metadata">

**Author:** ![nunoleite](https://help.nextcloud.com/letter_avatar/nunoleite/32/6_22734026db12803ebb3e059622ac3534.png) [@nunoleite](https://help.nextcloud.com/u/nunoleite)\
**Post date:** [April 8, 2020, 5:49pm UTC](https://help.nextcloud.com/t/error-attempting-to-add-ftp-external-storage/75682/2 "2020-04-08T17:49:38Z")

</div>

Hi,  
I’m having the same problem. But… on some servers is working and others don’t. I’ll explain…

I have a server with cPanel, apache 2.4 and Nextcloud 18.0.3 with external storage to a ftp server on my home. It has more than 700 files and 400GB.  
On this server this is working. It takes some time, but it loads the files.  
Cloudlinux 7.7, apache 2.4  
I have this options in php 7.2.29:  
max\_input\_time -1  
memory\_limit 512M  
post\_max\_size 200M  
upload\_max\_filesize 200M  
max\_execution\_time 90

I have another server with Virtualmin, apache 2.4, and Nextcloud 18.0.3 with the same external storage to a ftp on my home.  
Here if i configure to the same folder with more than 700 files and 400GB it says “No files in here”.  
but then if i use a folder with 20 files it works.  
This server has…:  
CentOS 7.7, apache 2.4  
I have this options in php 7.2.24:  
max\_input\_time -1  
memory\_limit 512M  
post\_max\_size 16G  
upload\_max\_filesize 16G  
max\_execution\_time 7200

I even tried this on apache:  
TimeOut 7200  
IPCCommTimeout 7200

I have measured the time and it seems that after 30 to 40 seconds it simply give up and shows the message “No files in here”.  
What could be terminating the load of files?  
Is it related to apache? Or there is something else that CentOS7 has that could be killing the processes after some time?

I have replicated my Virtualmin server to a VirtualBox on my computer and tried exactly the same configuration.  
Well… has this server is on the same network that the server ftp is, the load is faster and it works…

So… There is something definitely killing the process after some seconds (30/40)  
Cant someone give some guidance on this?  
I don’t know where to search for anymore.

Thanks

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 11, 2024, 9:24pm UTC](https://help.nextcloud.com/t/error-attempting-to-add-ftp-external-storage/75682/3 "2024-12-11T21:24:27Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 11, 2024, 9:24pm UTC](https://help.nextcloud.com/t/error-attempting-to-add-ftp-external-storage/75682/4 "2024-12-11T21:24:28Z")

</div>


