Migrated to new host & now no images showing

Re: Migrated to new host & now no images showing

by Tina Smith -
Number of replies: 13

MYSTERY SOLVED, I think!!

Poking around.... I swear I thought that I had looked directly into the old config file...but it is looking like I did not... 

I was perplexed when I downloaded the filedir from the moodledata directory and this file is even SMALLER (8kb).... then noticed that there's a "filedir" directory one level up from the moodledata directory...

Compressed and downloaded that and it's 1.6GB....  So I'm starting to get an ah-ha moment.... I go look at the config file and here's what it says:

$CFG->dataroot  = '/home/tinamama/.cpanel/quickinstall/moodle-1422740527';

With all the back and forth that I've been doing...I'm guessing that I never thought to check the original config file or something....and just assumed that Quickinstall had put everything in moodledata as it should (this old Moodle install was installed using Quickinstall...the new was done manually)....  but anyway, it looks like this other filedir might be where my files are!

So this directory that contains the bigger filedir looks like it has extra stuff in it ... its kinda messy, and even includes a directory called public_html!  Not sure what the deal is there....I don't want to just copy everything and bring that mess to my new server....

So here's a screenshot of what's in there:



What would you suggest I copy from there? Just filedir? Or is there anything else there that I need to copy as well?


Unfrigginbelievable that after ALL that back and forth and working through things that it would be something so simple! And yet I DON'T CARE, so long as it gets FIXED!!!

And again... THANK YOU for working through this with me!! Your patience and kindness and perseverance really helped me! smile

In reply to Tina Smith

Re: Migrated to new host & now no images showing

by Ken Task -
Picture of Particularly helpful Moodlers

Think you've found the issue.

In SiteGround, you are not using any script they offer to install your Moodle, right?   You are manually setting it up.  If that is correct, then the only archive/zip etc. you need is that 'mother load' filedir.

You've also, in advertently, provided a clue to those of us that don't use SoftAcumessup script to install Moodle ... at least on HostGator.  Would never be able to guess a hidden directory (.cpanel) inside another directory and yet another directory for the specific moodle - what a mess!

Just to be sure ... that 1.6Gig file you have and the screen shot shared ... was that from your local hard drive?

What's the size of just the filedir directory?

From what am able to gather, that filedir is the only thing you need to transfer to SiteGround.

Advise NOT to delete anything yet on HostGator until you have been successful in transferring what you need for Moodle to work.

'spirit of sharing', Ken




In reply to Ken Task

Re: Migrated to new host & now no images showing

by Tina Smith -

Correct, did NOT use any script to install Moodle on Siteground. Did it manually.


The 1.6gig is the filedir DIRECTORY on my old host that I just discovered...and that and the screenshot is inside the directory called "moodle-1422740527" on Host Gator that Quickinstall created at:   
.cpanel/quickinstall

I've now compressed that newly discovered filedir and downloaded to my computer...and I just reset my nameservers to point back to Siteground so that I can FTP to my new server. I got into Filezilla and found out how to do a binary FTP transfer to Siteground and do that once the servers finish processing back.

I still have all my HomeschoolRealm files still on Host Gator...not doing anything to them until this is all DONE DONE DONE. I did delete all the other websites that I transferred....but those were all confirmed transferred and good to go. So the only thing I have left on Host Gator at this point is HomeschoolRealm.com and the Moodle install in it's subdirectory. (Finally got rid of that error message saying it couldn't do a site backup...but irrelevant now...)


Sooooo....if all goes well....in a couple hours once these nameservers finish getting reset back pointing to Siteground, I will get this filedir uploaded and hopefully all my files will be back!! WOOHOO!

Here's hoping nothing else goes wrong!!  This has taken enough of my time already!! I still have a complete revamp to do of this Moodle install before I can make it public again! But that's a whole 'nother ballgame for another day....and I already know how to do that! LOL!

So.many.lessons.learned from all this!!!

Thanks again! A thousand thank yous!

I'll let you know how it goes!! smile



In reply to Tina Smith

Re: Migrated to new host & now no images showing

by Ken Task -
Picture of Particularly helpful Moodlers

We wouldn't know what life was really like if everything worked the first time and with no muss/fuss.

So look at this as 'glass half full' ... and remember what you learned from 'glass half empty'!!! smile

I used to teach histories. smile

'spirit of sharing', Ken


In reply to Ken Task

Re: Migrated to new host & now no images showing

by Tina Smith -

OHMYGOD!!! KEN!!!! IT WORKED!!!!

All my images are BACK, baby!!!

Now I can see how much work I have ahead of me to get this thing looking good....but I am UP for it!! It's OPERATIONAL again!!!

I'm SOOOOOO HAPPY!!!

THANK YOU THANK YOU THANK YOU!!!!

Average of ratings: Useful (1)
In reply to Tina Smith

Re: Migrated to new host & now no images showing

by Ken Task -
Picture of Particularly helpful Moodlers

Good!  Congrats!

To the moderators of this forum or whomever issues badges .... this user (Tina Smith) deserves a badge for something ... tenacity if nothing else ... got one of those Moodle Community Forums? smile

https://goo.gl/images/4ikMNs

'spirit of sharing', Ken


In reply to Ken Task

Re: Migrated to new host & now no images showing. Now they are showing.

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Let's create one. I propose "The Sunflower Mom Medal for resilience".

What about the 'spirit of sharing'? The Prof.? and the cat?
smile
In reply to Visvanath Ratnaweera

Re: Migrated to new host & now no images showing

by Tina Smith -
Lol!  :)



On Sat, Jul 14, 2018 at 6:54 AM Visvanath Ratnaweera (via Moodle.org) <
In reply to Ken Task

Re: Migrated to new host & now no images showing

by Tina Smith -
Aww, thanks Ken! You were a big help! Giving me encouragement and info I

needed along the way to help dicypher things. I especially appreciate how

you didn’t talk down to me for the things I didn’t know. Thank you!



And not giving up on me! Thanks so much!



Thank you to everyone that contributed to helping me on this thread! I

really appreciate it!







On Fri, Jul 13, 2018 at 8:07 PM Ken Task (via Moodle.org) <
In reply to Tina Smith

Re: Migrated to new host & now no images showing

by Rick Jerz -
Picture of Particularly helpful Moodlers Picture of Testers

Tina, no need to reply to me if you wish, but all of this got me wondering about where you started and where you are right now.

1. What is your running version of Moodle?

2. Where is your Moodle hosted?  (e.g., Host Gator?)

3. What did you succeed doing?  (e.g., Upgraded? Changed domain name?  Got old copy running? Moved old Moodle to new server company? Got Host Gater to restore old Moodle? etc.)

4. What would you like to do next?

It is really great that you got to the point where you are up and running?  (I am still planning to make the migrate video.)

In reply to Rick Jerz

Re: Migrated to new host & now no images showing

by Tina Smith -
I don’t mind answering, Rick! :)



I’ll reply below...
In reply to Rick Jerz

Re: Migrated to new host & now no images showing

by Tina Smith -

UGH! I replied in my email back, but apparently it stripped all my answers...ok, let's try this again....


1. What is your running version of Moodle?

The latest...3.5.1, I think?


2. Where is your Moodle hosted?  (e.g., Host Gator?)

The old (awful) host I moved away from was Host Gator. I am now with Siteground, and quite happy!


3. What did you succeed doing?  (e.g., Upgraded? Changed domain name?  Got old copy running? Moved old Moodle to new servercompany? Got Host Gater to restore old Moodle? etc.)

So, it actually ended up being very simple in the end...

I ended up just doing a fresh (manual) install on the new server (Siteground), and then deleted the entire new database it had populated in the install, and made a fresh one again...then imported my backup database. That got me all my content and users and format from the courses. But NOT my images. Still broken.

So then after much back and forth and round and round, we figured out this...

My old install was installed with Quickinstall installer. From what I can surmise, it appears it doesn't create a moodledata directory on install. All I can figure is that Moodle must automatically create that moodledata directory when it has stuff to put in it maybe? For whatever reason, the "filedir" directory with all my images wasn't saved IN the moodledata directory, but one level up.  So after we finally figured out that the "filedir" inside the moodledata was essentially empty, I noticed there was ANOTHER "filedir" in the level above it. Compressed and downloaded that and it was 1.6GB, SCORE!! Migrated that to my new server and VOILA! All images back in place!!

P.S. this is where Quickinstall put the moodledata directory: /home/tinamama/.cpanel/quickinstall/moodle-1422740527  So it took some digging just to find it even! And then to find out that it was essentially empty!  

So much around and around trying to figure all this out, but I did learn a LOT from all of this, so it was not time wasted! And I really appreciate everyone that contributed to helping me!


4. What would you like to do next?

Well now that it's all working properly, I have a lot of revamping to do, plus a ton of improvements. 

I let my Moodle install sit unused for far too long. I do innovative, interactive courses for fellow homeschool moms' children, and it had all been put on hold as I didn't have time for it recently. But now I'm fired up to get back to it. I currently sell a fun series of courses to go along with the Amazing Race, to learn about the countries the racers race through and after I get the whole of Moodle cleaned up and prettified (got my graphic artist daughter working on some new images for me!)...I'm going to start with completing my revamp of that series. I have an entire overhaul of that series I started after I figured out a better way to structure those classes that I never completed. So that's top of my list, after getting Moodle to look whiz bang.

But FIRST, I'm going to work today on getting fully GDPR compliant. I have some stuff to sort through for that. Making good progress. 

I also decided it was time to do some real step by step tutorials and started doing all the appropriate Moodle tutorials on Lynda.com, starting with the administrative one, which I finished over the weekend. It was a lot of stuff I already knew, but it did fill in a few gaps I had. And I'm moving on to the 3.5 tutorial next, which I think will be fun to learn all about features I am new to or not using to their fullest extent.

And I have a whole list of ideas for new courses...so there's a lot on the horizon for my "Noodle Homeschool" business! smile


It is really great that you got to the point where you are up and running?  (I am still planning to make the migrate video.)

Thanks! I'd love to see that video!
In reply to Tina Smith

Re: Migrated to new host & now no images showing

by Rick Jerz -
Picture of Particularly helpful Moodlers Picture of Testers

Okay Tina, I feel good with where you are.

For Question #1. Go to Site Administration, Notifications.  Your Moodle version should look something like: Moodle 3.5+ (Build: 20180531). Post what you see.

For Question #2. Great!

For Question #3.  I was puzzled by the small size of your moodledata folder, which was in the KBs.  This meant to me that you had essentially nothing in your course.  There has to always be a moodledata folder, somewhere, unless you have a really odd install.  Look at your config.php file (in the moodle folder) and you will see where your moodledata folder is. Out of curiosity, where is your new moodledata folder?

For Question #4. I don't do GDPR (yet) so I can't help with that.  Yep, lots of great Moodle resources.  I have an old book titled "Moodle Security" which I found helpful.

Well, you succeeded with the migration!  Pretty soon, you will be able to make that video!

For what it is worth, here are the videos that I provide my students in order for them to learn my system.  Also, you might browse (you have probably done this many times) Site Admin, Server, Environment.  This too provides some good information about your server and your Moodle.



In reply to Tina Smith

Re: Migrated to new host & now no images showing

by Dejan Mikik -

Tina,

I have similar situation with images (images broken) after moving to new server.

Since you have find solution, can you point me to it in couple of simple sentences.

I try to read all of this replies but couldn't find solution.

Thanks

Dejan