Page 1 of 3

Error connecting ftp

Posted: Fri 20 Jan 2023 3:32 pm
by malmeida
After uploading CumulusMX from build 3089 to build 3101, since some days ago I can't update my site and MXDiags shows "Error connecting ftp - Could not resolve host 'scomba.co.uk'".
I ping scomba.co.uk successfull. I changed Active FTP from 0 to 1, FTP logging from 0 to 1 and Enable Realtime from 1 to 0 without success. I attach the last MXdiags.

Re: Error connecting ftp

Posted: Fri 20 Jan 2023 4:13 pm
by freddie
As well as not being able to resolve scomba.co.uk, I see this in the logs:

Code: Select all

2023-01-19 15:44:13.076 Failed to get the latest build version from Github: Error: NameResolutionFailure
Definitely a DNS issue on the host that MX is running on.

Can you open a terminal window on the MX host and try the following:

Code: Select all

nslookup scomba.co.uk

Re: Error connecting ftp

Posted: Fri 20 Jan 2023 8:01 pm
by malmeida
My Rpi has not nslookup. I tried to install it without success. Then I tried to update Rpi also without success. As I am far away from it, tomorrow I'll go there and I'll try it again.

Re: Error connecting ftp

Posted: Fri 20 Jan 2023 8:09 pm
by SamiS
On Rpi you can use dig instead of nslookup, it is installed by default. Most likely your package installation and update problems are also caused by a non-working name resolution.

Re: Error connecting ftp

Posted: Sat 21 Jan 2023 12:42 pm
by malmeida
Today I am at the station. It was necessary to reboot Rpi to have access to it by SSH. Then it updated meteorologic values in the site. Anyway I tried to do sudo apt-get update but there were many errors. Nslookup an dig don’t run. I tried to install them without success. But the site has been updated.

Re: Error connecting ftp

Posted: Sat 21 Jan 2023 1:34 pm
by SamiS
What kind of a network connection it uses? Sometimes home routers start to malfunction, causing strange connection issues. Usually this is resolved by restarting the router.

One possible cause for problems with Rpi is a sd card that has failed and has corrupted some system files.

Re: Error connecting ftp

Posted: Sat 21 Jan 2023 3:14 pm
by malmeida
I ran cumulusmx.sh -c and he told me: “You should have a fixed IP address instead of using DHCP to avoid sudden IP address changes.” I changed dhcpcd.conf but cumulusmx.sh -c keeps saying that I am using DHCP.

Re: Error connecting ftp

Posted: Sat 21 Jan 2023 3:20 pm
by SamiS
Did you remember to remove the comment marks (#) from the lines that you edited? And specifically used the static ip configuration example instead of the one that uses dhcp by default but only fallbacks to static if dhcp fails? And rebooted the system after changes?

Re: Error connecting ftp

Posted: Sat 21 Jan 2023 8:22 pm
by The PIT
What happens when you try to ftp to the site from another machine should be the first thing to try.
Unless you're hosting the site yourself fixed or dynamic ip will not have any effect.
If you're are hosting the site yourself take a look at ddns

Re: Error connecting ftp

Posted: Sun 22 Jan 2023 5:18 pm
by malmeida
Trying to have a static ip address I changed etc/network/interfaces and etc/wpa_supplicant/wpa_supplicant.conf. Now I don’t have wifi nor ethernet connection. Doing sudo ifconfig I get wlan0 ip address and eth0 ip address but I can’t connect by ssh. So Rpi has no internet.

Re: Error connecting ftp

Posted: Sun 22 Jan 2023 7:11 pm
by SamiS
On my raspberry running bullseye I have configured the static ip address via /etc/dhcpcd.conf that has precommented examples on how to configure a static ip. And /etc/network/interfaces is basically empty file that refers to interfaces.d that is also an empty directory.

Re: Error connecting ftp

Posted: Tue 24 Jan 2023 6:34 pm
by malmeida
After hours trying, I only have internet when connected to router by cable. I think that it happened because I made “apt-get update” and I loose WiFi dongle firmware. But I have another SD card that has WiFi. If I copy the Cumulus folder of the bad card to this good card, does Cumulus will run with the last values?

Re: Error connecting ftp

Posted: Tue 24 Jan 2023 9:28 pm
by SamiS
If the good card has mono-complete package installed and you copy the whole CumulusMX folder recursively, yes it should work as far as I can think of. Depending how your system is setup, you might need to tweak file and folder permissions. Also if you were running cmx as a service, you must put configure the service properly.

Re: Error connecting ftp

Posted: Wed 25 Jan 2023 12:15 pm
by malmeida
At last Cumulus is running with WiFi. The only way to do it was with GUI and clicking WiFi icon to wlan0 and also to eth0. It has been updating the site.
Running “cumulusmx.sh -c” , it says --> You are using a fixed IP address which is good.
But it shows the following error:
e) The first test will check the connection to your FTP Server and if the directory (www) is available and count the files in the directory
You should see a number larger than 0 as a result
Something seems not to be working with the connection to your FTP Server.
It makes no sense to proceed with the test.
Please use a FTP Program with a graphical interface to test your settings again
I am sorry the test will be stopped here
Please see the error in detail
curl: (3) URL using bad/illegal format or missing URL
But i don´t know what to do.

Re: Error connecting ftp

Posted: Wed 25 Jan 2023 4:46 pm
by SamiS
Cumulusmx.sh is an external script that is not supported officially and has not been updated in a long time to be compatible with the new builds. It can still run cumulus at least if used without any parameters, but for any other functionality may work or may not work. Also check that you have screen installed if you transferred cumulus from card to another.

If you start the cumulusmx.sh without parameters, does cumulus run? And what do the logs under mxdiags say?