Sogna Digital Museum Forum

Forum and Site Information => News and Updates => Topic started by: JG on July 18, 2015, 07:29:49 pm

Title: New Server News
Post by: JG on July 18, 2015, 07:29:49 pm
I am in the process of building a new web server for Sogna Digital Museum.  The current server runs Windows Server 2003, which is going out of support from Microsoft, plus the hardware is 7 or 8 years old (disregarding a new hard drive along the way.)  And since newer Windows Server versions require certified server-grade hardware, I can't upgrade my desktop workstation and retire the old hardware to server duty like I have in the past.  I've got to buy new server-grade hardware to keep this site going.

The new server will be a Xeon E3 3.1 Ghz with 8GB of RAM running Windows 2012 R2.  It'll also sport dual RAIDed 250GB SSDs now that this technology has surpassed traditional spinning platter hard drives. Also, using non-RAID storage has always been a risk of the current server, and that's being rectified.  The total cost is running me about $1200.  Thats alot but being brand new hardware I expect it to easily last 7 or 8 years, which means it'll effectively cost $12-$15 a month.

You can help offset the cost by buying something in the For Sale area of the main site.  Mention the new server build and I'll give you 5% off anything that isn't already discounted. (Offer valid until the new server replaces the old.)


All the hardware has arrived except the motherboard.  That's a bummer as I had hoped to do the hardware installation this weekend.
Title: Re: New Server News
Post by: JG on July 21, 2015, 11:41:46 pm
Motherboard arrived today and I've completed hardware installation this evening.  Haven't turned it on yet though.  I'll do that and make sure all the lights and BIOS settings are working fine tomorrow.

In the photo you can see how this build turned out.
There's also an unremarkable Samsung DVD burner in there.  Not that I need burning capabilities but they just don't make read-only models anymore anymore since the write technology is hardly any extra cost. I considered leaving out a permanent optical drive altogther, as I should only really need it for OS installation, but I reckoned it was worth $13 to not need to disassemble the drive from my workstation for this purpose.

You might also notice I'm a neat freak when it comes to my cable management and I like to have cables and cords running along the edges of the case or sufficiently out of the way to avoid interferring with fan airflow. And I especially dislike having anything dangling where they can get caught in a fan's blades if they come loose, so I tape things up and use cable and twist ties to restrict range of movement.  The 24 pin motherboard connector cable isn't quite long enough to run along the edge so it crosses the motherboard in the photo.  It'll actually sit much closer to the case edge than the motherboard though so it doesn't restrict the power supply's airflow as much as it might appear from the photo.  I ran the SATA and front panel connectors through the unused hard drive mounting rack so they'll stay out of the way for now, but I might need to rework this if I need to add a front fan (or two) for heat management.  Since there's no audio on this motherboard the cable for the front panel audio jacks hangs freely.
Title: Re: New Server News
Post by: JG on July 31, 2015, 08:01:47 am
Delay.

One of my workstation's drives failed last week.  No data loss becuase I had the drives mirror RAIDed (I can't recommend this enough if you do your own builds).  But I had to buy a pair of new drives and clone my data.  Went SSD this time although 1TB SSDs are pricey (about $700 for a pair).  I do gain 400 more GB out of it though.  I'd been living in the 10-40GB remaining realm for about a year so this is quite a relief.

Benefit to server is that I can move the working 600GB spinning platter drive to the new server.  Maybe both if the failed drive is repairable with a reformat.  May use this space for Sogna CD/DVD ISO image storage - making them available to download for poor souls like Saika who'd lost them.
Title: Re: New Server News
Post by: JG on September 12, 2015, 11:23:01 pm
After much tweaking I finally got PHP working on the new server so I can start trying to shift things over to the new server.

Moving the static content over is trivial, but I'm not sure what other configurations may be needed. I may have to recompile some .NET modules and I know I have to change the SMF forum settings file but there may be something else.

The big unknown is how to get the MySQL database files for the forum moved over.  I am very much hoping that I can just copy and paste the files but they are different MySQL engine versions and I'm not sure this will work.  Websites all say you can definately move the files, but don't say much on whether theres a versioning problem to overcome.

The plan is to do a trial run to see what works and doesn't (hopefully tomorrow afternoon), and then do the full transition a day or two later.  A second trial will be done if the first goes badly (especially in regards to the MySQL files)


Note that I will have to lock the forum for writing during the trial(s) and transition.
Title: Re: New Server News
Post by: JG on September 13, 2015, 05:35:53 pm
Work today went so well that I've gone ahead and flipped all the switches to cutover to the new server hardware.

I'm not entirely sure everything is working smoothly but 99% of it is and I'll take that for now. Members may private message me if they run into some feature that isn't working.
Title: Re: New Server News
Post by: JG on September 18, 2015, 09:00:30 pm
Forum codebase updated from 2.0.4 to 2.0.6.

I'll get it up to 2.0.10 over the next week or so, but I want to step it up incrementally in case anything breaks, especially things I can't easily test (like registration).  2.0.5 was small I've jumped up two versions this time but I'll go up one version only every few days until we're up to 2.0.10.


Once I'm past 2.0.7 I can look into upgrading PHP on the server and tweaking some more functions to stop all the avatar images breaking.  Don't know if you guys are seeing it but I get about half the avatar images failing to load. Unsure if its a PHP versioning thing or I need to assign more memory to PHP so the image PHP scripts don't bomb.
Title: Re: New Server News
Post by: JG on September 24, 2015, 10:01:08 pm
Problems with broken avatar images should now be resolved.

Ultimately, this required an update to the SMF attachments table.  It seems that alot of the older attachments did not have mime type assigned in the table.  Thats an easy thing to add given the filename extension.  When it didn't have a mime type, new server was returning it as application/octet-stream.  Sometimes the browser would render it inline, sometimes it wouldn't (and thus, broken image icon in browser window).  Old server apparently did some extra legwork and figured out the proper mime type of the file and returned image/gif, image/jpeg, etc. as needed on-the-fly.

May yet need to hack Display.php Download() function if new avatar images being added end up with a blank mime type value set in the database as well.  Won't know until you folks start adding new avatars.
Title: Re: New Server News
Post by: Moge on September 25, 2015, 12:57:31 am
Previously i had avatar transparencies being borked (and some that did work). Guess i'll test it again.
Title: Re: New Server News
Post by: JG on September 25, 2015, 07:40:12 am
Shouldn't be a problem for avatars.  Any normal-sized transparent GIF or PNG should remain so, as there's no rescaling on those avatar images.  It rescales large images though. For avtars I think the limit to prevent rescaling is 200x200. I think attachment images get thumbnailed regardless of size.  If it rescales your avatar, there's little I can do to protect transparency, unless you find info on the internet telling me what to do to SMF or PHP on IIS to fix it. *

If you can play around and test things, that would help alot.  Now that I've got the avatar thing fixed my focus is applying updates to take us to 2.07, 2.0.08, 2.0.9, and eventually 2.0.10.  Since I'm not yet to 2.0.7 I can't upgrade PHP on the server to latest version, which could automatically fix transparency issues.  You may simply want to wait until we're fully upgraded before playing with avatars and transparency.



* There is an option I could possibly apply.  I could write a .NET program to perform more exact resizing of any rescaled images, but it would be something that ran once a day.  So newly uploaded avatars may be opaque but within a day they would become transparent.
Title: Re: New Server News
Post by: JG on September 26, 2015, 07:05:27 pm
Forum codebase has been updated to 2.0.7 but its broken TinyPortal. So everyone's being dumped into the board index page instead of the home page.

I've been working on the upgrade and temporary fix to get the forum back to usability but I need to take a break.  Will be back to fix TinyPortal in a few hours.
Title: Re: New Server News
Post by: Arizona on September 26, 2015, 08:26:11 pm
Oh wow. I'm so used to the shout page, seeing the forum directly again, I did not realize how many boards this place has.
Title: Re: New Server News
Post by: JG on September 27, 2015, 08:34:07 am
Ok, I hope everything is done now.
Something got really messed up lastnight. Unsure if it was part of the TinyPortal code, or something I had messsed up applying the 2.0.7 update.  since I couldn't figure out what happened I set up a second forum with the 2.0.11 codebase, reapplied our mods (spoiler, youtube, etc.), and then applied TinyPortal 1.1.

So the good news is that we have the ShoutBox and forum homepage back.  Bad new is we jumped so many levels, I'm unsure if anything is broken.  Then again, its a fresh load of 2.0.11 so there shouldn't be anything wrong. We'll just have to monitor it for a few days.
Title: Re: New Server News
Post by: Arizona on September 29, 2015, 08:14:30 pm
I can't seem to find the place to post my ever enlightening blather into the ShoutBox, in either IE or Firefox.
Title: Re: New Server News
Post by: JG on September 29, 2015, 09:17:30 pm
Really? No textbox or button? Or do you see one but not the other? You can attach an image if it helps explain what you do see.

I didn't change security on anything.  Is anyone else able to confirm inability to post to the ShoutBox?

Its possible that browser cache may need to be cleared.  Board codebase 2.0.11 and Tiny Portal 1.1 would have new CSS, new JS, etc. that perhaps isn't coming down to your PC.  Pressing Ctrl+F5 to reload the page from server might resolve this, but seems odd that this would affect two browsers.

Its also possible that the ShoutBox doesn't work with the Core theme.  Using Default theme may work better.
Title: Re: New Server News
Post by: Arizona on September 29, 2015, 11:04:07 pm
This is what I get. (http://i.imgur.com/bLFtdLj.png) Usually the text entry field and button was there. I don't see it anywhere else either.

I'll try a different theme as soon as my dumb head figures out where I would change that. <_<
Title: Re: New Server News
Post by: JG on September 30, 2015, 07:54:46 am
Is it better now?

New TinyPortal added a new permission named tp_can_shout.  I've now added that permission to Regular Members role.
Title: Re: New Server News
Post by: Moge on October 05, 2015, 12:23:03 pm
gif avatars and transparencies ain't working :carreraflying
Title: Re: New Server News
Post by: JG on October 05, 2015, 08:09:52 pm
Were you uploading a file bigger than 150 pixels in either dimension?  That would cause it to resize and board was set to use JPEG for resized avatars.  I've changed it to PNG which should allow transparency to be retained.

If you want animated GIF then original must be no greater than 150 pixels in either dimension to avoid a resize, which will destroy all but the first frame.  That's no different than how the old server worked.
Title: Re: New Server News
Post by: Moge on October 05, 2015, 09:13:34 pm
I was going by the limit of 200 pixels. So it was 150 pixels all along? Might try an APNG avatar to see if i can get pass the limit.
Title: Re: New Server News
Post by: uphillbattle on October 06, 2015, 01:11:24 am
i think I'm overdue for a new avatar
Title: Re: New Server News
Post by: JG on October 06, 2015, 07:00:30 am
I was going by the limit of 200 pixels. So it was 150 pixels all along? Might try an APNG avatar to see if i can get pass the limit.

Yeah I know I said 200x200, it's actually 150x150.  I knew there was a limit, just had the number wrong.
Title: Re: New Server News
Post by: JG on November 03, 2015, 08:06:05 am
Corrected .bmp files to work with the Highslide viewer, at least in IE if not other browsers.  IE demands image/bmp content-type for inline viewing in the Highslide viewer; image/x-ms-bmp is only acceptable for downloaded images.

Some of the new fan art being posted is in bitmap format and wasn't working.