Trying to update from 5.10.27 to 5.10.29
I get the error:
410: Download not yet available. Please try again shortly.
Hi,
As a workaround you can manually copy over the .tar file
Feel free to create a discussion on GitHub to ask the developers
I already did that to upgrade to 5.10.27 and would love to not have to do it manually every update
I had one instance where I got that as well. On two others, I had no problems. I don’t know if it’s staging or what to prevent too many users from downloading at the same time.
I have the same issue with the update failing:
and @hillel new updates do not still not show up and notify the admin in the new UI. Only in the old UI on the Windows app the Invoice Ninja update to a newer version is displayed (Which obviously fails to time too).
Is this something that will be fixed at some point too please?
Thanks in advance.
Kind regards
I suggest creating an issue on the React GitHub repo
Funny thing is that it know works?!
I changed nothing, just retried it.
Is this some kind of load balancer?
I am fine with a staged rollout, but could you please not show the update until I can actually download it?
We don’t use a load balancer or staged rollout, the release file is immediately available on GitHub
Then it is even stranger why it did not work yesterday but today
I agree, it is rather odd. I currently have 4 different instances running. For three of them, the update was no problem. The fourth one, I got this as well. It is my first time seeing this response. Although, I know many other users have experienced it.
Personally, I suspect it is load balancing on the part of GitHub, not the developers. I have had this occur with other project I use that are also hosted there.
Do you see any errors in storage/logs?
Not really. I only see these two lines with todays date:
[2024-10-10 06:20:02] production.INFO: Performing Autobilling 2024-10-10 06:20:02
[2024-10-10 08:06:41] production.DEBUG: From: [email protected]
You may want to create a discussion on GitHub
Your machine is hitting this block:
if (stripos($file_headers[0], "404 Not Found") > 0 || (stripos($file_headers[0], "302 Found") > 0 && stripos($file_headers[7], "404 Not Found") > 0)) {
nlog($file_headers);
return response()->json(['message' => 'Download not yet available. Please try again shortly.'], 410);
}
It is encountering either a 404/302 message from github. This could mean the file is not available, OR there is an issue with your system resolving the URL.
I’ve added logging in here now, so if you do see this message, check the logs (ensure to enable expanded logging EXPANDED_LOGGING=true)
This will problem additional information as to what the system is receiving as the response.
This time the update went through, so I can’t show you any logs. I will save this for later
Hello,
i have the same problem. I am on 5.10.27
EXPANDED_LOGGING was true
What i can see in log (just the latest entries):
[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'generation_expression' in 'field list' at /html/invoiceninja-v5/vendor/laravel/framework/src/Illuminate/Database/Connection.php:407)
[stacktrace]
#0 /html/invoiceninja-v5/vendor/laravel/framework/src/Illuminate/Database/Connection.php(407): PDO->prepare('...')
#1 /html/invoiceninja-v5/vendor/laravel/framework/src/Illuminate/Database/Connection.php(812): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('...', Array)
...
[2024-11-07 08:11:02] production.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'generation_expression' in 'field list' (Connection: mysql, SQL: select column_name as `name`, data_type as `type_name`, column_type as `type`, collation_name as `collation`, is_nullable as `nullable`, column_default as `default`, column_comment as `comment`, generation_expression as `expression`, extra as `extra` from information_schema.columns where table_schema = 'usr_p57471_3' and table_name = 'payments' order by ordinal_position asc) {"userId":1,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'generation_expression' in 'field list' (Connection: mysql, SQL: select column_name as `name`, data_type as `type_name`, column_type as `type`, collation_name as `collation`, is_nullable as `nullable`, column_default as `default`, column_comment as `comment`, generation_expression as `expression`, extra as `extra` from information_schema.columns where table_schema = 'usr_p57471_3' and table_name = 'payments' order by ordinal_position asc) at /html/invoiceninja-v5/vendor/laravel/framework/src/Illuminate/Database/Connection.php:825)
[stacktrace]
#0 /html/invoiceninja-v5/vendor/laravel/framework/src/Illuminate/Database/Connection.php(779): Illuminate\\Database\\Connection->runQueryCallback('...', Array, Object(Closure))
#1 /html/invoiceninja-v5/vendor/laravel/framework/src/Illuminate/Database/Connection.php(398): Illuminate\\Database\\Connection->run('...', Array, Object(Closure))
Had the same problem again and enabled expanded logging.
invoiceninja.log
[2024-12-09 08:43:28] production.INFO: Test filesystem is writable
[2024-12-09 08:43:29] production.INFO: Clear cache directory
[2024-12-09 08:43:29] production.INFO: copying release file
[2024-12-09 08:43:30] production.INFO: Download URL
[2024-12-09 08:43:30] production.INFO: https://github.com/invoiceninja/invoiceninja/releases/download/v/invoiceninja.tar
[2024-12-09 08:43:30] production.INFO: array (
0 => 'HTTP/1.1 404 Not Found',
1 => 'Server: GitHub.com',
2 => 'Date: Mon, 09 Dec 2024 08:43:31 GMT',
3 => 'Content-Type: text/html; charset=utf-8',
4 => 'Vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, Accept-Encoding, Accept, X-Requested-With',
5 => 'Cache-Control: no-cache',
6 => 'Strict-Transport-Security: max-age=31536000; includeSubdomains; preload',
7 => 'X-Frame-Options: deny',
8 => 'X-Content-Type-Options: nosniff',
9 => 'X-XSS-Protection: 0',
10 => 'Referrer-Policy: no-referrer-when-downgrade',
11 => 'Content-Security-Policy: default-src \'none\'; base-uri \'self\'; child-src github.com/assets-cdn/worker/ github.com/webpa>
12 => 'X-GitHub-Request-Id: 7044:260739:1BC0BD:1C4F89:6756ADB3',
13 => 'connection: close',
14 => 'Transfer-Encoding: chunked',
)
Looks like the version is missing in the download URL and thous throwing a 404.
It looks like the URL is invalid as it’s missing the version.
I suggest following up in a discussion on GitHub.