Skip to main content

Updates Music Stream App and Website Plus IceCast Relay OS

I updated my web server, and my system that has my IceCast stream relay system both run Linux Centos 7. I also updated my SAM Broadcaster streaming software to the latest version. I also updated WordPress CMS\Blog softare to its latest version.

System Maintenance Reboot to Install Security Patches

Apologies for the brief music stream interruption but installing some security updates on the w2012 r2 streaming server and will be back in a few minutes. My Centos 7 web server will be up still.

I decided to update my Centos 7  monitoring server that also acts as IceCast relay since the streaming server will be down. This  monitoring /IceCast relay server is also a separate server from the web server ans streaming music server. My ShoutCast streams are run from the W2012 r2 server.

    Back on My Primary Streaming Server

    Back on My Primary Streaming Server

    Well I’m back on my original streaming server. Since June 29th 2013 I have been on my backup server working great to give my primary music server a break in a sense. Well with the power supply going out on my backup server I decided to bring up my primary music server after getting my backup server going again with the new power supply, then transfer the current up to date database and settings back to my primary server.

    This could not be standard or simple of course. After updating my physical music tracks from the backup to the primary server I tried backing up the database and settings from SAM Broadcaster but that failed with a permissions error. I then went to MySQL Workbench to try and export the SAM database but ran into the “mysqldump.exe is version 5.5.16” will not work with version 5.6.10 of MySQL Server since the log files will be a different version of mysqldump.exe. I’m using MySQL Workbench version 5.2CE.

    To correct the MySQL problem with the different mysqldump.exe versions I had to go to MySQL Workbench -> Edit -> Preferences ->Administrator -> “Path to mysqldump Tool” -> <Browse to $PATH:MySQL\ bin\mysqldump.exe”>. I then dumped that to and SQL file and copied it to my primary music server, forwarded my ports from my router back to my primary music server, started SAM broadcaster on my primary server, went to the config file on my Linux web server and pointed to my primary music server again, reinstalled RemoteWeb that syncs database tables from music server to web server as well as ftp my album files to my web server and I was done!

    Phew what crazy stuff!

    Some pics first of failed power supply from backup primary server, second pictures of hastily modified internals of system after replacing power supply, third picture and last back of music server showing power cable routing.

    2013-07-13_22-23-07_105.jpg2013-07-13_22-22-44_708.jpg2013-07-13_22-24-04_41.jpg

    Updated Main & Backup Streaming Server Database & Application

    Normal
    0

    false
    false
    false

    EN-US
    X-NONE
    X-NONE

    MicrosoftInternetExplorer4

    Yeah I went for it last night and this morning, first updated my backup streaming server database and application. I had previously attempted to do this earlier in the week but had issues when my MySQL database starting eating up the CPU with the process that updates my Linux web server.

    On the backup server I tried to update to the current version from MySQL 5.5 to MySQL 5.6.2 of the current database didn’t work so I removed 5.5 and reinstalled the current version database MySQL 5.6.2 fresh.

    I then did a backup of my current working application and database using the SAM Broadcaster application on my primary music server and copied that backup over to the backup server. When I tried using SAM Broadcaster to import as I normally do it erred out with an error complaining about “restore failed duplicate entry for…” one of my songs. I tried backup of the main server again and a couple of restores but kept getting the same error. I figured the error was now due to the fact that the two databases were different versions with MySQL 5.1 on my primary music server and 5.6.2 now on my backup server.

    So now due to the different version of MySQL on both servers I decided to bypass using the SAM application backup and restore did a MySQL dump from the primary backup server from version 5.1 copied it over to the backup streaming server imported that dump to my fresh and new MySQL 5.6.2 and it worked. I then started SAM Broadcaster to see how my streaming software liked the new database and it could not see the new database from SAM.

    I now decided to update SAM broadcaster to the current version of SAM 2013.4 and restarted MySQL service and started SAM and still could not see the new database with the application. This prompted me to uninstall SAM and reinstall and setup from scratch pointing to the new settings I had created with “MySQL Workbench”. This worked fine and I could now see the new database instance!

    I then configured SAM Broadcaster to talk to my ftp site on my web server to update my album artwork automatically and sync to my MySQL database on my Linux web server ( I run Windows 2003 on my Streaming servers currently). I finished updating my user and license information in SAM Broadcaster 2013.4 did another dump from MySQL on my primary music streaming server since it had been running streaming music and updating this whole time I wanted to get to the point I could cut over from my backup server to start at the next song queued on my primary server.

    Once all my settings were configured on my backup I stopped my primary music streaming server, forwarded my ports in my router to my backup server, insured my Shoutcast server instance had started, was set to start automatically and now I was streaming on my backup server.

    I then repeated this whole process on my primary server and that’s where I am now playing on my backup server but updating some other application packages on my primary server plus running some utilities and scans that should improve the performance plus updating supporting applications.

    So kickback go up top and click on a link to listen to some crazy Internet Radio streaming music!

    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:”Table Normal”;
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:””;
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin-top:0in;
    mso-para-margin-right:0in;
    mso-para-margin-bottom:10.0pt;
    mso-para-margin-left:0in;
    line-height:115%;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:”Calibri”,”sans-serif”;
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-fareast-font-family:”Times New Roman”;
    mso-fareast-theme-font:minor-fareast;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;}

    Switching to another Music Server

    Switching to another system to use as music server! Making the switch due to the fact that the two new servers I was going to make into web servers have 32 bit Xeon CPU’s and the current music server has 64 bit CPU’s.
    This way I didn’t have to waste the 64 bit Xeon current music server on 32 bit Windows OS and I could move it to a 64 bit OS Linux platform as a web server which I am working on being a web server with stronger live multimedia streaming capabilities.
    Now I can use the two systems I was configuring into web servers into my music server and backup music server fully optimizing the Windows 32 bit OS I’m using.
    I’m also thinking of moving my former long running music server I moved out of service a couple of weeks ago into the role of another web server or backup web server role.
    I also dug around town and found another set of rails so I could properly mount one of the new music servers the way I wanted to and added a gigabit NIC to each system to work with the onboard gigabit NIC and disable the 10/100 bit NIC onboard. I also added a soundcard to each for music preview and allowing of other input devices like microphone’s etc. Then with configuring the systems to talk to my web server, firewall, databases, etc.., I’m ready to switch over to the new music server, again!
    I also introduced another music stream at a higher bit rate for you audiophiles out there @ 320kbs and will place a link on my web page at some point soon along with some new listener links and the current link reconfigured.
    I will be redoing the whole site on the new web site which is my former music server I just moved off of today soon.
    Ok time o switch over to the new system!

    Switched Over to New Music Server Tonight

    Well I finally switched over to a new music server tonight. This Server is using a Server OS so I had to enable some items that are non-standard on a Server as well configure my music to stream properly and update my web server. My previous music server has been streaming music consistently 24/7 365 since 2004 with minor breaks due to updates.
    This server isn’t totally new but for me is a step up with dual Xeon hyper-threaded (Virtual dual core a step before Duo-Cores) 3.06 CPU’s with 7GB of RAM.
    I still have gigabit LAN’s onboard which is significant since my onboard Gigabit NIC’s a couple of years ago on my previous server started getting flaky and I had to install a couple of after market Gigabit NIC’s on that server to keep it going!
    On this new server I had to install LAME & Fraunhofer codecs just to be able to play mp3’s on this system! May have been overkill but I saw somewhere that Winamp used LAME and not Fraunhofer so just to be safe I added LAME codecs after Fraunhofer was installed already.
    I had to forward the appropriate ports so folks could listen to the stream as well as enable Audio which is normally turned off with this server OS and install a soundcard and then install a USB soundcard for previewing music. I ended up uninstalling the first PCI soundcard I had installed since it wasn’t working and installing a more upgraded one I had lying around.
    Tonight I also found that if my music stream application pointed to an incompatible device it just sat there and looked at me. This took me a while to figure out what the issue was since it seems after reboot my music streaming application switched to the PCI soundcard instead of my USB soundcard I had installed to get going and for testing. Pointing to the incompatible PCI soundcard caused the song to appear in the appropriate music deck but wouldn’t play!
    I found out about the issue of not being able to stream with my incompatible soundcard while shutting down apps on my old server and switching to the new one since all my tests were with the USB soundcard had worked. I then found out I hadn’t saved the router configuration from last night with the ports going to the new server and I had to do that all over again and reboot the router. Each time I could tell I was knocking folks off the stream, which I apologize for.
    I also had to go on the Web Server to change the sever ip.address in a configuration file so the new system Music Server could be the one syncing with the Web Server’s database and display the appropriate songs as they are played.
    I even had to do a mass save of mp3 ID3 tags on my old server and then recopy over my mp3’s again and do a mass ID# mp3 loading of tags into the new server. Each time I did this I also backed up the database from the old server to move over to the new server. Next I will have to run the utility to remove duplicates
    Even after testing many late nights I ran into some new learning opportunities. Overall I had forgotten how much configuration and customization I had done on getting the music stream to where it is now and that’s nothing to do with how the website looks and feels except the update portion.
    The new server has loud fans so at some point I will try and upgrade to more quiet and power efficient fans as well as do some sound proofing and then some air flow control on my 7 foot computer rack but that’s for later and its time for and early night getting to bed for me (1:55 AM), at least lately!