UPnP problem in next cloud 15 wizard

Salut ! Après l’installation de nextcloudpi correctement déroulée, j’ai pu me connecter dans le navigateur à l’interface de gestion et configurer le disque dure externe et la j’en suis à permettre l’accès distant via UPnP mais j’ai un message d’erreur :

Hi there, after installing nextcloudpi on a raspberry pi3b+ powered by nextcloud 15 the next cloud wizard nc-forward-ports failed with error 501, my modem is a HUAWEI B525s-65a

Any idea of what can I do ?

Here is the details :

UPnP device found. Is it an IGD ? :
http://192.168.X.X:37215/ctrlu/00e0fc37-2525-2828-2502-ec8c9a6f3369/WANPPPConnection_1
Trying to continue anyway Local LAN ip address : 192.168.X.X
UPNP_DeletePortMapping() returned : 714
upnpc : miniupnpc library test client. © 2005-2014 Thomas Bernard
Go to http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
for more information.
List of UPNP devices found on the network :
desc:
http://192.168.X.X:37215/00e0fc37-2525-2828-2500-ec8c9a6f3369/upnpdev.xml
st: urn:schemas-upnp-org:device:InternetGatewayDevice:1

UPnP device found. Is it an IGD ? :
http://192.168.X.X:37215/ctrlu/00e0fc37-2525-2828-2502-ec8c9a6f3369/WANPPPConnection_1
Trying to continue anyway Local LAN ip address : 192.168.X.X
UPNP_DeletePortMapping() returned : 714
upnpc : miniupnpc library test client. © 2005-2014 Thomas Bernard

for more information.
List of UPNP devices found on the network :
desc:
http://192.168.X.X:37215/00e0fc37-2525-2828-2500-ec8c9a6f3369/upnpdev.xml
st: urn:schemas-upnp-org:device:InternetGatewayDevice:1

UPnP device found. Is it an IGD ? :
http://192.168.X.X:37215/ctrlu/00e0fc37-2525-2828-2502-ec8c9a6f3369/WANPPPConnection_1
Trying to continue anyway Local LAN ip address : 192.168.X.X
ExternalIPAddress = X.X.X.X
AddPortMapping(443, 443, 192.168.X.X) failed with code 501 (Action
Failed) GetSpecificPortMappingEntry() failed with code 714
(NoSuchEntryInArray)

Could not forward ports automatically.
Do it manually, or activate UPnP in your router and try again

Did you try to manually setup the port forwarding in your router?
In an ideal world upnp would be disabled on the router, you would go there and enable upnp, use the nc-forward-ports and then disable upnp on your router again, however, i prefere to do these portmappings manually, as it is way more transparent about what you actually do. Unfortunately the method on how you do that differes a lot from one device maker to another, so you must find out how to do that by yourself.

thanks @FadeFx but i don’t find where i can port forward in my router interface, here is what i get in router settings : http://screenshots.portforward.com/routers/Huawei/B525s-65a/

its under dpecial applications, if you click add, you get a list of protocolls, select http (80) and https (443) and forward them to the ip of your nc server

Also you shuld not leave your firewall disabled… thats a security risk

Do you think it’s correct like that ?

Looks good to me, npw the server should be reachable from external via your modems public ip and port 80 and 443. Do you have a static or a dynamic public ip?

Thanks for helping me. As far as I know I presume I have a dynamic IP, but I’ve registered a free no-ip DDNS domain to reach my IP and setting up this in the next cloud admin panel, but when I try to type my domain in a web browser I came to my router admin panel and not my next cloud login page.

I fear that the port forward isn’t working properly.

What do you think about that ? And is this mandatory to sync my next cloud instance with the proper android app ?

I would first get the current public ip abd try to connect it like this http://currentipadress and https://cyrrentipadress this should actually bring you to the nextcloud server, but you need to do it from outside your lan, this does not work from inside yet.

You’re right, i give a try outside my lan and it works ! Thanks a lot, with the no-ip ddns free domain it works well.

But I I have been under SSH attack and fail2ban banned an IP after 6 failed try to connect with SSH. So I think I should desable SSH and enable NFS to mount nextcloud as a disk to my land, what do you think about that ?

I dont use ssh externally, i connect to it via webdav, that has the advantage that you dont have to rescan files for them to appear in nextcloud.
You can now enable dnsmask to be able to reach nextcloud from inside the network via url, but you have to do another change on the router for that

OK so I will use WebDAV for lan on my raspberry under rasbian desktop to access file, it’s the same device on witch running nextcloudpi. To access from my android phone on my wlan I see the dnsmask in nextcloud amin panel but what am I suppose to do on my router and how to know my internet provider DNS in order to configure dsnmask ? Thanks a lot

To be honest, i have no idea on what i did there, the dnsmask page says that you either have to point the dns server of all my devices to the raspberrys ip, which i did not do for sure, or point the routers dns to the raspberry which isnt the case looking into my router config. Still dnsmask seems to work as intended and nextcloud is reachable via url from internal devices. In dnsmask i have configured google dns server 8.8.8.8

Do u use the same raspy as a desktop replacement as well?

Yes at tue moment i only use the same raspberry has a desktop replacement as well at home and now sync things with the PC of my work place with nextcloudpi and my android phone, just need to access my data easily on the raspberry itself, I don’t know how and if there is a more convenient way than WebDAV on it.

You sue could use nemo or whatever filemanager is there in your de, but you always have to remember that changes are not brought to the database instantly. U can enable automatic filescan, but this comes with a performance cost if run too frequent, depending on the number of files to scan.

Hello , I have turn around with my next cloud pi instance and I manage to copy file from ncp default admin in next cloud to a new user admim that I created, so I us terminal in rasbiam with cp command but now the windows desktop client says I have no permission to write file from the PC to the folder in nextcloud copied from ncp profile to newuser profile. I performed nc-fix-permissions and nc-scan but it doesn’t fix this … I haven’t use WebDAV cause it can only connect on one user a the same time, so I will not have the possibility that I seek to copy files from ncp user to the new admin user