Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Nov 2004
    Posts
    364
    Plugin Contributions
    0

    Default Better Error Handling when getting timeouts from USPS or UPS?

    Running 1.3.8a with UPS and USPS.

    I have been intermittently getting the infamous "2006 MySQL server has gone away" error.

    I do think it is related to my apache / mysql server timeout configuration (or may be packet / buffer size) when contacting UPS and USPS for shipping info. I have my hosting company looking in to this now.

    However, it brought up the question. Is there a better way to handle this type of error rather then having it sent to the customers browser?

    Is there a way to have Zen display a "UPS or USPS Not Responding" message if one isn't received in a timely manner?

    Thanks
    Experience is what you get when you don’t get what you want…

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Better Error Handling when getting timeouts from USPS or UPS?

    I will let the devs respond for a positive answer but as this is a general mysql failure message I would expect not without additional errortrapping code for these modules
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Nov 2004
    Posts
    364
    Plugin Contributions
    0

    Default Re: Better Error Handling when getting timeouts from USPS or UPS?

    Thanks kobra,

    I hope one of the Zen Development Team members will chime in!

    May be someone with more server experience then me can suggest what specifically I can change on my dedicated server!
    Experience is what you get when you don’t get what you want…

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Better Error Handling when getting timeouts from USPS or UPS?

    What is your 'mysql.connect_timeout' setting in your dedicated server's php.ini file?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Nov 2004
    Posts
    364
    Plugin Contributions
    0

    Default Re: Better Error Handling when getting timeouts from USPS or UPS?

    The Zen server information shows mysql.connect_timeout is set to 60 for both local and master value.

    However, logging in to the servers whm, it shows under the PHP Configuration Editor a value of 5.

    I guess I would have to go with the actual Zen info of the vhost that Zen is running under...what do you think?

    What value should it be?

    Thanks
    Experience is what you get when you don’t get what you want…

  6. #6
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Better Error Handling when getting timeouts from USPS or UPS?

    I suppose you could try increasing it in WHM. You'll likely have to restart Apache afterwards.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Better Error Handling when getting timeouts from USPS or UPS?

    There are several somewhat inter-relating settings for this in /etc/my.cnf
    Zen-Venom Get Bitten

  8. #8
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Better Error Handling when getting timeouts from USPS or UPS?

    Care to elaborate?
    I looked at a few my.cnf files and didn't see anything that looked like it dealt with connection timeouts, hence the suggestion to look at php.ini since it drives the client connector.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Better Error Handling when getting timeouts from USPS or UPS?

    one of the my.cnf's with settings blank but these are the fileds highlighted
    Code:
    [mysqld]
    datadir=/var/lib/mysql
    skip-locking
    safe-show-database
    query_cache_limit=
    query_cache_size=
    query_cache_type=
    max_user_connections=
    max_connections=
    interactive_timeout=
    delayed_insert_timeout=
    wait_timeout=
    connect_timeout=
    thread_cache_size=
    key_buffer=
    join_buffer=
    max_connect_errors=
    max_allowed_packet=
    table_cache=
    record_buffer=
    sort_buffer_size=
    read_buffer_size=
    read_rnd_buffer_size=
    thread_concurrency=
    myisam_sort_buffer_size=
    server-id=
    
    [mysql.server]
    user=mysql
    #basedir=/var/lib
    
    [safe_mysqld]
    err-log=/var/log/mysqld.log
    pid-file=/var/lib/mysql/mysql.pid
    open_files_limit=
    
    [mysqldump]
    quick
    max_allowed_packet=
    
    [mysql]
    no-auto-rehash
    Zen-Venom Get Bitten

  10. #10
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Better Error Handling when getting timeouts from USPS or UPS?

    hmmm ... yes, it would be interesting to know the effect of those vs the php.ini settings affecting the PHP Connector
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. UPS and USPS Handling Fee
    By Alexiss in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 14 Aug 2011, 07:41 PM
  2. sessionWatcher (better handling of session timeouts)
    By s_mack in forum All Other Contributions/Addons
    Replies: 49
    Last Post: 4 Sep 2010, 03:49 AM
  3. Strange Error in shipping admin when clicking on UPS & USPS
    By theVR in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 3 Jul 2007, 01:47 PM
  4. handling fee for usps and ups not being added to total cost
    By jonclao in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 11 Jan 2007, 06:28 AM

Posting Permissions

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