Forum Rule: Always post complete source code & details to reproduce any issue!
Page 1 of 3 1 2 3 LastLast
Results 1 to 25 of 53

Thread: PJRC Server Change

Hybrid View

  1. #1
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    28,468

    PJRC Server Change

    This weekend we're moving the main PJRC website to a new server. Hopefully everything will go smoothly and the only disruption will be the shopping cart offline for several hours.

    The forum is hosted by a separate server, so if you're seeing this but the main site is having trouble, as least DNS is working well enough for your browser to find the forum's server.

  2. #2
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    8,758
    Good morning Paul

    So far can see the forum and product pages. Only thing that seems to be offline is the actual shopping cart as you said.

  3. #3
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    28,468
    At this point, you're still seeing the old server (96.31.77.63). The real fun starts later today!

  4. #4
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    8,758
    Oh boy going to be a fun day. fingers crossed

  5. #5
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    28,468
    The server switch-over is at about 95%. Hopefully the site is all working at the new server (162.254.150.250)?

    Question... are you getting the forum's notification emails?

  6. #6
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    17,433
    Seems to have gotten right here:
    Code:
    >ping pjrc.com
    
    Pinging pjrc.com [162.254.150.250] with 32 bytes of data:
    Reply from 162.254.150.250: bytes=32 time=83ms TTL=44
    Reply from 162.254.150.250: bytes=32 time=83ms TTL=44
    Reply from 162.254.150.250: bytes=32 time=83ms TTL=44
    Reply from 162.254.150.250: bytes=32 time=83ms TTL=44
    
    Ping statistics for 162.254.150.250:
        Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
        Minimum = 83ms, Maximum = 83ms, Average = 83ms
    Cart seems to be working - up to not sending me free stuff from the CART with no credit card provided.

  7. #7
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    17,433
    Forum still seems #'s noted in p#3 as old:
    Code:
    >ping forum.pjrc.com
    
    Pinging forum.pjrc.com [96.31.69.28] with 32 bytes of data:
    Reply from 96.31.69.28: bytes=32 time=83ms TTL=46
    Reply from 96.31.69.28: bytes=32 time=83ms TTL=46
    Did a flushdns

  8. #8
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    8,758
    Pretty much did what @defragster did with going to the new server location and trying the cart. So ditto - seems to be working up to that point.

    Last forum notification I got was from you at 2:44 am in my inbox. Nothing after that. So will see soon I guess

  9. #9
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    11,786
    Is there anything that we should be looking for?
    That is, was this a "simple" server change or was there other things that changed as well?

    My guess is simple is never simple!

    I noticed recently that you rearranged how the 32 bit products are arranged, but again I believe that was before the move.
    That is if I have this page:
    Click image for larger version. 

Name:	Screenshot.png 
Views:	17 
Size:	338.5 KB 
ID:	30669
    And click on the 32 bit products on left hand list, I end up at:
    Click image for larger version. 

Name:	Screenshot1.png 
Views:	18 
Size:	327.4 KB 
ID:	30670
    You probably don't want to go to the legacy page instead of the T4.x page...

    But again don't think this is related to server change

  10. #10
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    28,468
    Quote Originally Posted by KurtE View Post
    I noticed recently that you rearranged how the 32 bit products are arranged, but again I believe that was before the move.
    That is if I have this page:
    ....
    You probably don't want to go to the legacy page instead of the T4.x page...
    Finally fixed this link on the website.

    In the time roughly after releasing Teensy 3.6 (in 2016) and writing USBHost_t36 (which took ~1 year) but before work really began on Teensy 4.0 (in 2018), we added the project blog to the website. The intention was to migrate the entire website from static html to managed by Wordpress, to make editing the website easier and with a GUI where more people could be involved in the editing process.

    But that idea never really worked out. At least in 2017, I couldn't find a way to really import many of the static html pages. The extensive use of tables, for actual tabular data like the on the hardware serial page, was the biggest technical hurdle. Wordpress plugins exist for tables, and indeed we spent quite a bit of time trying them, but they didn't really support features like "rowspan" and special formatting which are used pretty extensively by the static html.

    But the top-level products page is exported from Wordpress. It's left side menu bar is created by the Wordpress menu GUI, which was meant to eventually manage all the PJRC website hierarchy (which today is managed by text files and a script which re-writes all the static html). I had pretty much forgotten about all that pre-T4.0 effort that went into trying to get Wordpress to work for publishing the whole website. The goal was to make everything easier. It does have some benefit today, like Robin can edit the distributor list on that page without having to deal with static html, but our short-lived half-hearted idea to make things easier by bringing everything into Wordpress turned out to make everything harder in the aftermath of server migration and so much non-website work in recent years.

  11. #11
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    28,468
    Indeed it's never that simple. The forum also needs to change IP number. Looks like it will become 66.232.106.something.

    The hosting company is working on remote console access, which apparently never got set up for this server.

    The main site still has several minor things broken, like automated backup and the script that updates the inventory status and date last counted. So far looks like most of the things still needing work will (probably) only affect me and Robin.

    Yup, edited the Teensy 3.x pages several days ago. Indeed that product page needs to be edited. But that too is not so simple. It's tied up with the blog theme rather than the scripts that generate the navigation html for the rest of the site.

  12. #12
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    28,468
    Oh, looks like we're going to have about 20 minutes down time.... soon, while they do some sort of reconfiguration on the server. Should be just the forum down. Main site should stay up.

  13. #13
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    28,468
    Well, we had over an hour with the forum offline this morning. Wish I could say that would be the last, but still another reboot will be needed.

  14. #14
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    8,758
    Quote Originally Posted by PaulStoffregen View Post
    Well, we had over an hour with the forum offline this morning. Wish I could say that would be the last, but still another reboot will be needed.
    Just got home and missed the down time.

    Know this might be a loaded question but with the server change are you planning on making any changes to the forum or the product pages? Know that would be long term though.

  15. #15
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    28,468
    Right now, the urgent situation is IP numbers are getting reassigned, so we have to switch to different IP numbers. Both servers need to change IP numbers.

    The path of least resistance probably would have been to get DNS hosted elsewhere, then reconfigure the existing servers and edit the DNS zone files.

    We've been planning for years to replace both servers with newer machines and update to newer software. For the main site all the software would stay pretty much the same, just newer versions, faster hardware, larger storage, higher bandwidth allocated. Upgrading the forum is a lot more involved, probably a migration from vBulletin4 to XenForo.

    So for this IP number issue, I decided to migrate the main server to new hardware, and then we'll just keep the forum server as-is but with different IP number. Doing both at once seemed like far more than I could do in a matter of days. In hindsight, I'm kinda wishing I would have just gone the easy route. But over the last couple days I've fixed a lot of minor things that would have eventually needed updating, like strftime() deprecated in PHP 8.1.

    For future plans, we need to eventually get off vBulletin. Probably should have done it many years ago.

    The main website could also use a lot of work, but most of that will look like static html, static images and maybe video.

  16. #16
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    28,468
    If you're seeing the forum and this message, you're (hopefully) accessing the server at IP 66.232.106.106.

  17. #17
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    11,786
    Code:
    C:\Users\kurte>ping pjrc.com
    
    Pinging pjrc.com [162.254.150.250] with 32 bytes of data:
    Reply from 162.254.150.250: bytes=32 time=506ms TTL=42
    ...
    C:\Users\kurte>ping forum.pjrc.com
    
    Pinging forum.pjrc.com [66.232.106.106] with 32 bytes of data:
    Request timed out.
    Reply from 66.232.106.106: bytes=32 time=283ms TTL=42
    Reply from 66.232.106.106: bytes=32 time=284ms TTL=42
    Reply from 66.232.106.106: bytes=32 time=259ms TTL=42
    ...

  18. #18
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    28,468
    Glad you're seeing the forum at the new IP number.

    But wow, such long ping times. I get about 78ms from here. Wonder if it's a problem elsewhere?

  19. #19
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    11,786
    Quote Originally Posted by PaulStoffregen View Post
    Glad you're seeing the forum at the new IP number.

    But wow, such long ping times. I get about 78ms from here. Wonder if it's a problem elsewhere?
    Probably. It is probably with the DNS that I am using. I think I still have it hard coded at my connection to my provider as something like: 1.1.1.1
    Or might have been googles: 8.8.8.8

    Was earlier having problems letting it default to the one by the provider as had times where it did not work at all for hours on end...

  20. #20
    Senior Member wwatson's Avatar
    Join Date
    Aug 2017
    Posts
    886
    Quote Originally Posted by PaulStoffregen View Post
    Glad you're seeing the forum at the new IP number.

    But wow, such long ping times. I get about 78ms from here. Wonder if it's a problem elsewhere?
    I'm getting the same. Up the road a piece in Washington state...

  21. #21
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    17,433
    Times look the same to the new from here. Did a cache flush - maybe if not done there is a redirect lookup?

    Code:
    C:\T_Drive\Programs\iperf>ipconfig /flushdns
    Successfully flushed the DNS Resolver Cache.
    
    C:\T_Drive\Programs\iperf>ping pjrc.com
    Pinging pjrc.com [162.254.150.250] with 32 bytes of data:
    Reply from 162.254.150.250: bytes=32 time=83ms TTL=44
    Reply from 162.254.150.250: bytes=32 time=83ms TTL=44
    Reply from 162.254.150.250: bytes=32 time=83ms TTL=44
    Reply from 162.254.150.250: bytes=32 time=84ms TTL=44
    
    C:\T_Drive\Programs\iperf>ping forum.pjrc.com
    Pinging forum.pjrc.com [66.232.106.106] with 32 bytes of data:
    Reply from 66.232.106.106: bytes=32 time=83ms TTL=45
    Reply from 66.232.106.106: bytes=32 time=86ms TTL=45
    Reply from 66.232.106.106: bytes=32 time=83ms TTL=45
    Reply from 66.232.106.106: bytes=32 time=86ms TTL=45
    
    C:\T_Drive\Programs\iperf>ping forum.pjrc.com
    Pinging forum.pjrc.com [66.232.106.106] with 32 bytes of data:
    Reply from 66.232.106.106: bytes=32 time=83ms TTL=45
    Reply from 66.232.106.106: bytes=32 time=83ms TTL=45
    Reply from 66.232.106.106: bytes=32 time=83ms TTL=45
    Reply from 66.232.106.106: bytes=32 time=83ms TTL=45

  22. #22
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    8,758
    Morning all, saw there was a reboot this morning Anyway I am seeing about 40-50ms depending on what I ping
    Code:
    C:\Users\Merli>ping forum.pjrc.com
    
    Pinging forum.pjrc.com [66.232.106.106] with 32 bytes of data:
    Reply from 66.232.106.106: bytes=32 time=40ms TTL=54
    Reply from 66.232.106.106: bytes=32 time=38ms TTL=54
    Reply from 66.232.106.106: bytes=32 time=40ms TTL=54
    Reply from 66.232.106.106: bytes=32 time=38ms TTL=54
    
    Ping statistics for 66.232.106.106:
        Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
        Minimum = 38ms, Maximum = 40ms, Average = 39ms
    
    C:\Users\Merli>ping pjrc.com
    
    Pinging pjrc.com [162.254.150.250] with 32 bytes of data:
    Reply from 162.254.150.250: bytes=32 time=46ms TTL=54
    Reply from 162.254.150.250: bytes=32 time=45ms TTL=54
    Reply from 162.254.150.250: bytes=32 time=43ms TTL=54
    Reply from 162.254.150.250: bytes=32 time=51ms TTL=54
    
    Ping statistics for 162.254.150.250:
        Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
        Minimum = 43ms, Maximum = 51ms, Average = 46ms
    
    C:\Users\Merli>ping forum.pjrc.com
    
    Pinging forum.pjrc.com [66.232.106.106] with 32 bytes of data:
    Reply from 66.232.106.106: bytes=32 time=39ms TTL=54
    Reply from 66.232.106.106: bytes=32 time=37ms TTL=54
    Reply from 66.232.106.106: bytes=32 time=45ms TTL=54
    Reply from 66.232.106.106: bytes=32 time=40ms TTL=54
    
    Ping statistics for 66.232.106.106:
        Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
        Minimum = 37ms, Maximum = 45ms, Average = 40ms
    
    C:\Users\Merli>

  23. #23
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    17,433
    Note: no incoming mail " ... has just replied to a thread " for the post:
    Code:
    Today, 07:10 AM              #15 
    PaulStoffregen

  24. #24
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    17,433
    Quote Originally Posted by defragster View Post
    Note: no incoming mail " ... has just replied to a thread " for the post:
    ...
    Still not seeing usual 'Subscribed' emails for new posts?

  25. #25
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    8,758
    Quote Originally Posted by defragster View Post
    Still not seeing usual 'Subscribed' emails for new posts?
    I will second that comment. Haven’t received any notifications on updates to this thread or the usbhost thread that gave updates since yesterday

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •