Home Forums Support ERROR 503 – Service Unavailable – The timeout specified has expired

This topic contains 16 replies, has 2 voices, and was last updated by  anristudio 1 week, 6 days ago.

Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #22512

    anristudio
    Participant

    After I updated to Invoice Ninja v4.5.16 (self hosted) my clients receive email with new invoice and when they click on button VIEW INVOICE, the page is not opening after 2-minutes they get ERROR 503 – Service Unavailable!

    Error Log shows
    [Tue Nov 12 20:51:36.206660 2019] [proxy_fcgi:error] [pid 24803] (70007)The timeout specified has expired: [client XX.XXX.123.232:65059] AH01075: Error dispatching request to : (polling)

    Any ideas how to troubleshoot the issue?
    Thanks in advance.

    #22513

    Hillel Coren
    Keymaster

    Can you confirm value for APP_URL in the .env file is correct

    #22519

    anristudio
    Participant

    .env currently has
    APP_URL=https://billing.mydomain.com

    i also tried to switch URL to this
    APP_URL=https://mydomain.com/billing/
    same issue

    #22520

    Hillel Coren
    Keymaster

    Is this your first time upgrading the app? Is it possible you made manual changes to the htaccess or other files when first installing which were overwritten by the upgrade.

    #22529

    anristudio
    Participant

    Hi Hillel, thanks in advance for your help. I used these steps to update (I have updated 3x times in the past using similar steps):

    STEP 1 > change to folder cd /var/www/clients/client1/web1/web/billing
    STEP 2 > create file > touch ninja-update
    STEP 3 > open up file > nano ninja-update (paste code from script https://github.com/titan-fail/Ninja_Update/blob/master/ninja_update)

    STEP 4 > make file executable > chmod +x ninja-update
    STEP 5 > run script > ./ninja-update
    STEP 6 > copy all files from “public” folder and paste it to root “/” folder
    STEP 7 > open and modify INDEX.PHP file > nano /var/www/clients/client1/web1/web/billing/index.php

    replace
    require __DIR__.’/../bootstrap/autoload.php’;
    to
    require __DIR__.’/bootstrap/autoload.php’;

    replace
    $app = require_once __DIR__.’/../bootstrap/app.php’;
    to
    $app = require_once __DIR__.’/bootstrap/app.php’;

    My .htaccess file content is:

    <IfModule mod_rewrite.c>   
    <IfModule mod_negotiation.c>       
    Options -MultiViews   
    </IfModule>
       
    RewriteEngine On

    # Redirect Trailing Slashes…   
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller…   
    RewriteCond %{REQUEST_FILENAME} !-d   
    RewriteCond %{REQUEST_FILENAME} !-f   
    RewriteRule ^ index.php [L]

    # http://stackoverflow.com/a/20865084/497368   
    RewriteCond %{HTTP:Authorization} .   
    RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    # In case of running InvoiceNinja in a Subdomain like invoiceninja.example.com,   
    # you have to enable the following line:   
    # RewriteBase /
    </IfModule>

    <IfModule mod_headers.c>   
    # Blocks Search Engine Indexing   
    Header set X-Robots-Tag “noindex, nofollow”
    </IfModule>

    • This reply was modified 3 weeks, 5 days ago by  anristudio.
    • This reply was modified 3 weeks, 5 days ago by  anristudio.
    #22534

    Hillel Coren
    Keymaster

    Sorry, I’m not sure. You shouldn’t have to change the boostrap URL?

    #22540

    anristudio
    Participant

    What I’ve noticed, If I’m logged in to invoiceninja and go to the clients email (i have a copy) and click on VIEW INVOICE, link opens. If i logout, I get error: ERROR 503 – Service Unavailable – The timeout specified has expired.

    • This reply was modified 3 weeks, 4 days ago by  anristudio.
    #22543

    Hillel Coren
    Keymaster

    Sorry, I’m not sure

    If you want to email the URL for the app and a sample “View in portal” link to [email protected] I can compare them.

    #22544

    anristudio
    Participant

    I just emailed client’s INVOICE EMAIL to [email protected]
    Thanks for taking time to look into this.

    #22548

    Hillel Coren
    Keymaster

    I didn’t see the email? Do you want to resend it.

    #22549

    anristudio
    Participant

    Resent twice from my email and my gmail. Let me know if you didn’t receive it. Again, thanks for looking.

    #22550

    Hillel Coren
    Keymaster

    Thanks, got it this time.

    The links look correct, I’m not sure what would cause this.

    #22706

    anristudio
    Participant

    If I enter payment and client gets confirmation email about payment (with link) link does work. Any other suggestion why initial LINK within email does not work. Could this be server or app related issue?

    #22707

    Hillel Coren
    Keymaster

    Sorry, I’m not sure. As mentioned earlier you shouldn’t need to make any code changes to get the app running, you may want to try setting up a clean install.

    #22714

    anristudio
    Participant

    Thank you Hillel!

    If I clean install would I:

    1) Export existing DATA under BASIC SETTINGS > EXPORT | IMPORT as CSV
    2) Import existing DATA under BASIC SETTINGS > EXPORT | IMPORT as CSV

    #22715

    Hillel Coren
    Keymaster

    If you’re moving between self host installs it’s best to use mysqldump, hosted users should use JSON.

    #22741

    anristudio
    Participant

    I reinstalled it and it works now. Thanks for all of your help.

Viewing 17 posts - 1 through 17 (of 17 total)

You must be logged in to reply to this topic.

Posted in: