1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Moved to new server: An unexpected error occurred. Please try again later.

Discussion in 'Server Configuration and Hosting' started by jgas, Jul 15, 2013.

  1. jgas

    jgas Active Member

    Hi,
    I just moved database and files to a new server, the login to the database is correct, the nameservers have been updated.
    But now I get this error:

    "An unexpected error occurred. Please try again later."

    http://musicadigitale.net/

    How can I understand what kind of error it is?

    Many thanks!
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Try restarting the server.
    Otherwise check the server error logs.
     
  3. jgas

    jgas Active Member

    Thanks Brogan.
    I restarted the server but nothing happened.
    Which logs should I look at?
    I opened the "messages" log and i get lots of these:

    Jul 14 04:52:55 legendary named[1118]: error (network unreachable) resolving 'ns2.surfnet.nl/AAAA/IN': 2a00:d78:0:102:193:176:144:5#53
     
  4. Jeremy

    Jeremy XenForo Moderator Staff Member

    Do you use more than one server for your installation?
     
  5. jgas

    jgas Active Member

    no, everything inside the same server, so the same ip is used.
     
  6. MattW

    MattW Well-Known Member

    That is just named reporting problems (presume you are using the same server for DNS?) in /var/log/messages.

    You need to check if there are any error logs reported in your forum directory (should be error_log if that is how it's configured in php.ini) or any errors in apache's error logs.
     
  7. jgas

    jgas Active Member

    Oh thanks!

    I get lots of these... forumdisplay.php is a file to redirect the old traffic from vbulletin, from what I recall.. I don't know why it appears everywhere in these logs!

    Actually, now the folder structure is not /var/www/vhosts/musicadigitale.net/httpdocs//library/XenForo/Autoloader.php anymore,
    but it should be something like /home/musicadi/public_html//library/XenForo/Autoloader.php

    Code:
    [15-Jul-2013 12:19:08 America/Detroit] PHP Warning:  require(/var/www/vhosts/musicadigitale.net/httpdocs//library/XenForo/Autoloader.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/musicadi/public_html/forum/forumdisplay.php on line 11
    [15-Jul-2013 12:19:08 America/Detroit] PHP Fatal error:  require() [<a href='function.require'>function.require</a>]: Failed opening required '/var/www/vhosts/musicadigitale.net/httpdocs//library/XenForo/Autoloader.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/musicadi/public_html/forum/forumdisplay.php on line 11
    [15-Jul-2013 12:19:09 America/Detroit] PHP Warning:  require(/var/www/vhosts/musicadigitale.net/httpdocs//library/XenForo/Autoloader.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/musicadi/public_html/forum/forumdisplay.php on line 11
    [15-Jul-2013 12:19:09 America/Detroit] PHP Fatal error:  require() [<a href='function.require'>function.require</a>]: Failed opening required '/var/www/vhosts/musicadigitale.net/httpdocs//library/XenForo/Autoloader.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/musicadi/public_html/forum/forumdisplay.php on line 11
     
  8. imno007

    imno007 Active Member

    Make sure you updated the DNS Zone on the old server to redirect traffic to the new one

    EDIT: Actually, make sure that the MySQLi connection adapter is turned on, on the new server. I was having this same problem when I moved to a new server, and this was the reason.
     
    Last edited: Jul 15, 2013
  9. jgas

    jgas Active Member

    what do you mean? I use cloudflare and I updated the ip of the server from there!
     
  10. Tracy Perry

    Tracy Perry Well-Known Member

    Make sure your base for your web server definition is pointing at the new directory. It almost appears that it is pointing at the old installation.
    You will have a directive in your vhost config file for that server (which points at your old installation)
    Code:
    <Directory "/var/www/localhost/htdocs">
    Make sure it now points to the correct location and restart apache.
    Also check your .htaccess and make sure that any locations in there have been updated as required.
     
  11. jgas

    jgas Active Member

    The problem was xcache not installed, but now I managed to make it work.
    I only need now to rebuild apache optimizing it for xenforo!
    Could you please recommend me any tutorial related to our dear xenforo, guys?
     
    Adrian D. likes this.
  12. xeanyngoat

    xeanyngoat Member

    Yep I just moved to a dedicated server and had the same issue. The quote above fixed the issue for me. Awesome!!!!
     

Share This Page