Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Sie_Sayoka on May 29, 2014, 12:51:10 PM

Title: Could not contact server.
Post by: Sie_Sayoka on May 29, 2014, 12:51:10 PM
Hello,

I've recently been trying to installs mods onto my forums. I download the ZIP files and upload them into the packages folder through FTP. However, when I go to the package manager and click the "test connection" button, it only says this:

Could not contact server.

I've input all of the same information as the FTP and have used multiple paths to try and solve this problem. If anyone could provide some insight onto this it would be much appreciated.
Title: Re: Could not contact server.
Post by: kat on May 29, 2014, 03:51:42 PM
"test connection" button? Can't say I've ever seen that... (I could be going blind, though)
Title: Re: Could not contact server.
Post by: Sir Osis of Liver on May 29, 2014, 04:10:27 PM
IIRC, there's a 'test connection' button somewhere in Package Manager which is used if you're trying to set up an ftp connection, possibly for changing file permissions.  Not necessary if packages are installed the correct way.
Title: Re: Could not contact server.
Post by: Arantor on May 29, 2014, 04:11:04 PM
If it can't make a connection that generally means not so much the path might be wrong but the rest of the details.
Title: Re: Could not contact server.
Post by: kat on May 29, 2014, 04:15:40 PM
Hmmm... I really can't find that, on mine.

Probably something odd that I've done, somewhere... ;)
Title: Re: Could not contact server.
Post by: Sir Osis of Liver on May 29, 2014, 04:25:56 PM
Can't find it either.  Think you have to do something first to get to the page that has the button.
Title: Re: Could not contact server.
Post by: kat on May 29, 2014, 04:30:39 PM
Never seen it, that I can remember. I even checked my v1 forum.
Title: Re: Could not contact server.
Post by: Sie_Sayoka on May 29, 2014, 04:36:07 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FykBV9e4.jpg&hash=17469cc78356f58b1fbd0a2db6eaa445bce97ae2)

Error message and the test connection button.

When I put in the correct port it takes around a minute saying it's loading before saying that it could not contact the server. I'm not sure if that's relevant or not.
Title: Re: Could not contact server.
Post by: Arantor on May 29, 2014, 04:38:22 PM
So you put in the server and port... did you put in a username and password?
Title: Re: Could not contact server.
Post by: Sie_Sayoka on May 29, 2014, 06:09:09 PM
Yes. I just didn't show them there because of security.
Title: Re: Could not contact server.
Post by: Arantor on May 29, 2014, 06:11:04 PM
And I presume they were actually correct?
Title: Re: Could not contact server.
Post by: Sie_Sayoka on May 29, 2014, 07:01:43 PM
Yes.
Title: Re: Could not contact server.
Post by: Arantor on May 29, 2014, 07:04:09 PM
I'm sure you understand that we have to check these things.

So what path were you trying to use?
Title: Re: Could not contact server.
Post by: Sie_Sayoka on May 29, 2014, 08:24:03 PM
Of course, I appreciate all help.

Paths I've tried:

/forum
/www/forum
/var/www/forum

For the FTP server I've tried both localhost and the IP of the server. I've also tried different accounts. I still can't seem to connect. Would this somehow be a problem with CHMODs?
Title: Re: Could not contact server.
Post by: Arantor on May 29, 2014, 08:25:44 PM
It shouldn't be a chmod problem, and the paths seem all good. I presume FTP is actually configured on your server? (If you're running out of /var/www, that would seem a little unlikely, though)
Title: Re: Could not contact server.
Post by: Sie_Sayoka on May 29, 2014, 08:49:42 PM
Actually I am using SFTP. Totally forgot about that. Would that have anything to do with the error?
Title: Re: Could not contact server.
Post by: Arantor on May 29, 2014, 08:56:14 PM
That would. SMF does not support SFTP, nor is it likely to any time soon.
Title: Re: Could not contact server.
Post by: Sie_Sayoka on May 29, 2014, 09:14:54 PM
I see, thank you. I'll set up FTP and see if it works.
Title: Re: Could not contact server.
Post by: Arantor on May 29, 2014, 09:16:17 PM
I couldn't recommend it. There's nothing SMF does over FTP that you couldn't do yourself. All SMF is doing is making everything writable so it can write. Most people don't even put it back afterwards, leaving them at risk.

I'd generally suggest making the files writable yourself via SFTP, installing mods, and then making the files read-only again yourself because then you know it's done.
Title: Re: Could not contact server.
Post by: Sie_Sayoka on May 30, 2014, 12:28:03 AM
Okay. I'll install them manually then. Thank you.
Title: Re: Could not contact server.
Post by: kat on May 30, 2014, 07:26:24 AM
Beautifully worked through, gents! :)
Title: Re: Could not contact server.
Post by: Kindred on May 30, 2014, 05:54:23 PM
I do not recommend that either...

Set the chmod permissions to make the files writeable using your own sftp conenction.
install the mod
set the chmod back to protected.
Title: Re: Could not contact server.
Post by: Arantor on May 30, 2014, 05:55:07 PM
Which doesn't cover for the cases of files being created by the installer which can have the correct chmod but the wrong file owner.
Title: Re: Could not contact server.
Post by: Kindred on May 30, 2014, 05:55:54 PM
ick... right....
Title: Re: Could not contact server.
Post by: Arantor on May 30, 2014, 05:56:55 PM
Whereas manual installation actually would ;)

Both methods have pros and cons.