FreePBX | Register | Issues | Wiki | Portal | Support

Using ftp client is not possible


(Tony) #1

I’ve got SNG7 Distro installed and I had several issues of the Distro not picking up the IP address and getting myself booted out of network several times. Another issue was getting Freepbx activated until I bypassed DNS setting. I got it.

It seemed everything worked.

Now I had an issue of uploading and downloading files to my server, even though I can connect to it using ssh on port 22 but ftp client can connect but as I try to upload a file, it disconnects. I thought this is the case of Ipv6 being enabled. So I changed /etc/sysctl.conf (net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1) and restarted the network, but no luck.
Help me… gezzee. another challenge for tonight.

cf. my server is miles away from where I am, in an IDC center. So doing anything physically to the server is not an option.


(Dave Burgess) #2

If you can establish an SSH connection to the server from your local machine, use SFTP to transfer the files. Most SSH clients have a SFTP client either adjacent or built in.


#3

If the remote machine is Mac or Linux, just use sftp as you would ftp.

If Windows, psftp is suitable for automated transfers, as well as simple manual ones.

For heavy manual use, get WinSCP – it has an excellent drag-and-drop interface.


(Tony) #4

@Stewart1
Hi, I’ve been using scp for basic transfer needs, and I need Filezilla for collaboration environment. It seems that port 21 is blocked. I have it changed on a server machine, but it seems Freepbx won’t allow it, ast it seems getting back to the default blocked state.
When I yum install, I’ve got a base url error for sng-base/7/x86_64 too, so installing Winscp is not possible either too as I can’t use install commands. So in all scp and sftp are viable options if it gets to the point, but my Freepbx seems to need a handful of works before I actually work on customizing feature codes.


(Tony) #5

Hi again. I can’t thank you enough for paying attention. The thing is that I need Filezilla in a collaborative environment, and it seems port 21 is blocked by Freebpx. Google search results in various solutions but they are not applicable in my case until now.
I’ve got various problems such as base url repo errors, erratic ssh connection when firewall is in effect, and dns setting which won’t allow me to use url address to connect with external sources.


#6

Please explain what you mean. If multiple people have to work on FreePBX at the same time, IMO you should be using TeamViewer or similar to coordinate. Anyhow, Filezilla clients can read and write files on FreePBX using the SFTP protocol.

I don’t understand this, either. WinSCP (if you want to use it) would be installed on the Windows machine(s) you are using for administration, not on FreePBX. You don’t need to install anything on FreePBX because the server for SFTP is already there.

What virtualization (if any) is FreePBX running under? If it offers some sort of ‘console’ connection, you can use that to work on the system even if ssh is unavailable. Or, with Asterisk shutdown, it should be safe to have the software firewall off while you use ssh to fix the trouble. Get reliable networking (including DNS lookups) before trying to do anything with FreePBX. If the system is really hosed, you should start over with a fresh installation.


(Tony) #7

Yes, I use Teamviewer and AnyDesk as necessary when we are working remote. But to transfer files to and from the server, we all use Filezilla. We can change the client to something else as you suggested. But I want to figure out what happened from now and before the Distro installation. These were not a problem before. I have contacted the IDC operator to provide me with some sort of report to view and analyze my problem. Anyway according to him, the port 21 which facilitates the access of Filezilla is getting shut down, so is the Firewall.
I hope this is simply a misconfiguration or non existence of it rather than a complication of problems on top of each other. Fresh start with a new installation should be the last option.


(Tony) #8

Thank you for pointing this out for me. I thought I should install it on the linux server. I was about to install Wine and then WinSCP.


#9

On the Site page of Filezilla, you specify the protocol to be used and should set it to SFTP; see https://www.rc.fas.harvard.edu/resources/documentation/sftp-file-transfer/ .

If ssh access to the server is working and stable, you should have no trouble uploading and downloading files with Filezilla.

If ssh access is not stable, you need to fix that anyway and if you can’t do it easily, start over with a fresh install. If that is also not stable, consider moving the system to another cloud provider.


(Tony) #10

I am lucky to have a dedicated server to work with. My HP ProLiant server is in the IDC center operated by a telecom company. I don’t know anything about console connection.


I am not sure if there is any console connection in the picture, but when I was there, I hooked it up with it as seen in the pic.


#11

You will likely already have

It should give you everything you want and more


#12

There seems to be a console port (the DB9 male), but it’s not connected.

However, there do seem to be connections for keyboard and mouse (USB) and monitor (looks like a VGA but may be DVI). If those connect to physical devices, you won’t have access without being present.

However, if they are connected to a ‘remote KVM’ switch, often referred to as ‘KVM over IP’, then you should be able to log into that system and access your server as if you were there.


(Tony) #13

You were right about a keyboard, a mouse and a VGA connector. I set up a temp terminal using them at the time. I will check out KVM switch if I can take advantage of in the future.

Do you think the IDC will allow to have a connection like this?


(Tony) #14

@dickovan
Thank you as always. I just read the first cover page and it is exactly what you said I would want.

Here’s the bootup screen, can you tell me more about iLO with the image?
You are my hero today as usual.

I read through the documentation now and hope I will be able to pull through the configuration process at the IDC location. Great!!


#15

You photo shows an RJ45 labeled iLO, but nothing is plugged in to it.


#16

Not necessarily a deal breaker

https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-a00020272en_us

NIC teaming with shared network port configurations


(Tony) #17

you are the deal-breaker. How come I missed it? I was there, looking at the startup screen, there it was. I totally missed it.
Thanks to you and @Stewart1, there will be a lot less headache.


#18

RTFM usually works better and quicker in the long run than asking someone else to RTFM to you :wink:


(Tony) #19

The thing is sometimes I don’t know how to formulate the query to begin searching for answers. That’s why I begin narration (short of exposition) and some of what I said here would reveal how empty I am, to most experienced users. But I am not ashamed of myself in this revelation as it is the learning process. Forum is full of people like me, and you can’t believe the amount of reading I should be doing, just to have myself to start the process to go in the right direction. That’s why I cherish your attention and comments. I will always remember there’s someone out here who knows, who is willing to help and share.
Sangoma has an amazing documentation, and initially it’s as if I am in a maze with no guiding light or help. Just navigating through it would take time. So I really appreciate what you are doing here. Thank you, all, my heroes.


(Tony) #20

Do I have to sign up for commercial module to have a peer connection?
– Executing [07081448970@from-sip-external:1] NoOp(“PJSIP/anonymous-00000008”, “Received incoming SIP connection
from unknown peer to 07081448970”) in new stack
– Executing [07081448970@from-sip-external:2] Set(“PJSIP/anonymous-00000008”, “DID=07081448970”) in new stack
– Executing [07081448970@from-sip-external:3] Goto(“PJSIP/anonymous-00000008”, “s,1”) in new stack
– Goto (from-sip-external,s,1)
– Executing [s@from-sip-external:1] GotoIf(“PJSIP/anonymous-00000008”, “1?setlanguage:checkanon”) in new stack
– Goto (from-sip-external,s,2)
– Executing [s@from-sip-external:2] Set(“PJSIP/anonymous-00000008”, “CHANNEL(language)=en”) in new stack
– Executing [s@from-sip-external:3] GotoIf(“PJSIP/anonymous-00000008”, “1?noanonymous”) in new stack
– Goto (from-sip-external,s,5)
– Executing [s@from-sip-external:5] Set(“PJSIP/anonymous-00000008”, “TIMEOUT(absolute)=15”) in new stack
– Channel will hangup at 2019-06-22 21:26:14.065 KST.
[2019-06-22 21:25:59] WARNING[44213][C-00000008]: func_channel.c:460 func_channel_read: Unknown or unavailable item r
equested: ‘recvip’
– Executing [s@from-sip-external:6] Log(“PJSIP/anonymous-00000008”, "WARNING,"Rejecting unknown SIP connection f
rom “”) in new stack
[2019-06-22 21:25:59] WARNING[44213][C-00000008]: Ext. s:6 @ from-sip-external: "Rejecting unknown SIP connection fro
m "
– Executing [s@from-sip-external:7] Answer(“PJSIP/anonymous-00000008”, “”) in new stack
> 0x7f9fbc0193f0 – Strict RTP learning after remote address set to: 112.140.144.54:36138
> 0x7f9fbc0193f0 – Strict RTP switching to RTP target address 112.140.144.54:36138 as source
– Executing [s@from-sip-external:8] Wait(“PJSIP/anonymous-00000008”, “2”) in new stack
[2019-06-22 21:25:59] WARNING[44213][C-00000008]: channel.c:5740 set_format: Unable to find a codec translation path:
(slin) -> (g723)
[2019-06-22 21:25:59] ERROR[44213][C-00000008]: channel.c:8225 ast_channel_start_silence_generator: Could not set wri
te format to SLINEAR
– Executing [s@from-sip-external:9] Playback(“PJSIP/anonymous-00000008”, “ss-noservice”) in new stack
[2019-06-22 21:26:01] WARNING[44213][C-00000008]: channel.c:5740 set_format: Unable to find a codec translation path:
(slin16|g722|alaw|ulaw) -> (g723)
[2019-06-22 21:26:01] WARNING[44213][C-00000008]: file.c:1247 ast_streamfile: Unable to open ss-noservice (format (g7
23)): Function not implemented
[2019-06-22 21:26:01] WARNING[44213][C-00000008]: app_playback.c:494 playback_exec: Playback failed on PJSIP/anonymou
s-00000008 for ss-noservice
– Executing [s@from-sip-external:10] PlayTones(“PJSIP/anonymous-00000008”, “congestion”) in new stack
[2019-06-22 21:26:01] WARNING[44213][C-00000008]: channel.c:5740 set_format: Unable to find a codec translation path:
(slin) -> (g723)
[2019-06-22 21:26:01] WARNING[44213][C-00000008]: indications.c:156 playtones_alloc: Unable to set ‘PJSIP/anonymous-0
0000008’ to signed linear format (write)
[2019-06-22 21:26:01] NOTICE[44213][C-00000008]: app_playtones.c:100 handle_playtones: Unable to start playtones
== Spawn extension (from-sip-external, s, 10) exited non-zero on ‘PJSIP/anonymous-00000008’
– Executing [h@from-sip-external:1] Hangup(“PJSIP/anonymous-00000008”, “”) in new stack
== Spawn extension (from-sip-external, h, 1) exited non-zero on ‘PJSIP/anonymous-00000008’
[2019-06-22 21:26:08] ERROR[16841]: netsock2.c:305 ast_sockaddr_resolve: getaddrinfo(“provider ip address”, “(n
ull)”, …): Name or service not known
[2019-06-22 21:26:08] WARNING[16841]: acl.c:835 resolve_first: Unable to lookup ‘provider ip address
[2019-06-22 21:26:15] ERROR[44254]: netsock2.c:98 ast_sockaddr_stringify_fmt: getnameinfo(): ai_family not supported
[2019-06-22 21:26:15] ERROR[44254]: netsock2.c:98 ast_sockaddr_stringify_fmt: getnameinfo(): ai_family not supported
[2019-06-22 21:27:21] ERROR[44323]: netsock2.c:98 ast_sockaddr_stringify_fmt: getnameinfo(): ai_family not supported
[2019-06-22 21:27:21] ERROR[44323]: netsock2.c:98 ast_sockaddr_stringify_fmt: getnameinfo(): ai_family not supported
[2019-06-22 21:28:27] ERROR[44409]: netsock2.c:98 ast_sockaddr_stringify_fmt: getnameinfo(): ai_family not supported
[2019-06-22 21:28:27] ERROR[44409]: netsock2.c:98 ast_sockaddr_stringify_fmt: getnameinfo(): ai_family not supported
[2019-06-22 21:29:27] ERROR[44479]: netsock2.c:98 ast_sockaddr_stringify_fmt: getnameinfo(): ai_family not supported
[2019-06-22 21:29:27] ERROR[44479]: netsock2.c:98 ast_sockaddr_stringify_fmt: getnameinfo(): ai_family not supported
[2019-06-22 21:30:09] ERROR[44569]: netsock2.c:98 ast_sockaddr_stringify_fmt: getnameinfo(): ai_family not supported
[2019-06-22 21:30:09] ERROR[44569]: netsock2.c:98 ast_sockaddr_stringify_fmt: getnameinfo(): ai_family not supported
[2019-06-22 21:31:08] ERROR[16841]: netsock2.c:305 ast_sockaddr_resolve: getaddrinfo(“provider ip address”, “(n
ull)”, …): Name or service not known
[2019-06-22 21:31:08] WARNING[16841]: acl.c:835 resolve_first: Unable to lookup ‘provider ip address
[2019-06-22 21:31:09] ERROR[44643]: netsock2.c:98 ast_sockaddr_stringify_fmt: getnameinfo(): ai_family not supported
[2019-06-22 21:31:09] ERROR[44643]: netsock2.c:98 ast_sockaddr_stringify_fmt: getnameinfo(): ai_family not supported
onofflink*CLI>