Moodle connection refused from http and ssh

Moodle connection refused from http and ssh

by AHMED SAMI -
Number of replies: 2

Hello , 

I am using ubuntu 20.4 , php 7.4 and mariadb.

When trying to upgrade moodle 9.2 through command line , I got nothing upgraded and just got a message that I have the latest moodle.

because of another email problem I have changed the server hostname from x to y . 

then I have got this big issue. 

when I go to the moodle site , I get this error message : 

Exception - Connection refused

I have changed back the hostname from y to the original x . 

but nothing resolved .. 

I have tried to purge cache through command line using : 

admin/cli/purge_caches.php

but I get the same message from ssh : 

!!! connection refused !!!

Please give me a hand in this

Average of ratings: -
In reply to AHMED SAMI

Re: Moodle connection refused from http and ssh

by AHMED SAMI -
I have solved the problem.
I was upgrading using cli , git
$ git pull
which pulled some files and missed some.
I have downloaded the release using wget and upgraded manually which has solved the problem.
In reply to AHMED SAMI

Re: Moodle connection refused from http and ssh

by Ken Task -
Picture of Particularly helpful Moodlers

Won't say that git has never messed up ... experienced that one time, but that was due to the repo being down an resolved using an alt git repo.

git pull will do that ... pull some files and modify some and even delete some ... but 'miss'?   Rare, I'd say.

Glad that you had the presence of mind to try an alt way of getting core code, but now that you have used wget, you've lost ability to easily acquire updates/upgrades. :|

Could you supply some info on failure of git to work?

'SoS', Ken