<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — 504 Gateway Timeout]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=10598</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=10598&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in 504 Gateway Timeout.]]></description>
		<lastBuildDate>Sat, 18 Jan 2025 18:27:01 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: 504 Gateway Timeout]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=43511#p43511</link>
			<description><![CDATA[<p>I am not interested in live crypto transactions, just being able to handle some of the basics manually or via CSV inport</p><p>tom</p>]]></description>
			<author><![CDATA[null@example.com (tom)]]></author>
			<pubDate>Sat, 18 Jan 2025 18:27:01 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=43511#p43511</guid>
		</item>
		<item>
			<title><![CDATA[Re: 504 Gateway Timeout]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=43509#p43509</link>
			<description><![CDATA[<p>PHP / MySQL vagaries in encoding and function constructs and crypto hashes and some function definitions and rounding off errors besides Apache versions</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sat, 18 Jan 2025 18:19:10 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=43509#p43509</guid>
		</item>
		<item>
			<title><![CDATA[Re: 504 Gateway Timeout]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=43507#p43507</link>
			<description><![CDATA[<p>It&#039;s just PHP, not sure what I could do that breaks windows</p>]]></description>
			<author><![CDATA[null@example.com (tom)]]></author>
			<pubDate>Thu, 16 Jan 2025 02:12:16 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=43507#p43507</guid>
		</item>
		<item>
			<title><![CDATA[Re: 504 Gateway Timeout]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=43506#p43506</link>
			<description><![CDATA[<p>Please make sure that any master changes have compatibility with Windows as well.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Wed, 15 Jan 2025 01:27:47 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=43506#p43506</guid>
		</item>
		<item>
			<title><![CDATA[Re: 504 Gateway Timeout]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=43502#p43502</link>
			<description><![CDATA[<p>OK I will explain what I found in the backend (I am sure you will understand enough)</p><p>I am running this on the Flux Network (runonflux.io), it is a decentralized web3 network.</p><p>To keep the SQL DB synced across many nodes and facilitate new nodes coming up on demand they have a shared-db connector between the app (FA in our case, WP in first usage) and for exact reasons I do not know they intercept &#039;SET NAMES utf8&#039; and translate it to utf8mb4</p><p>WP needs mysql 8+ and in mysql8 for backwards compatibility uses a specially encoded COMMENT so that earlier mysql versions will ignore the statement and that is what the connector looked for, in FA we just use the SET NAME command with no fanfare.</p><p>I did a lot of messing with my copy of the code before I found this, but have reverted to minimal changes as once I get everything working I&#039;d like to get the changes pushed back to the official code.</p><p>I think I only 2 or maybe 3 changes that could be controlled by a global flag</p><p>They are:</p><p>db_query look for set name utf8 to reformat it to what the connector needs (Temporary while they fix their bug)</p><p>session.inc move SECURE_ONLY to a define in config.default.php also allow setting with Env Var</p><p>install/index.php allow setting DB settings from Env Vars</p><p>config.default.php - Flux specific - test db connection and if can not connect return 503 error to browser</p><p>That last one I can just append some lines to the file is the change is too specific to merge into master.</p><p>I am not going to submit anything until I have it all working, but it is looking good.</p><p>Tom</p>]]></description>
			<author><![CDATA[null@example.com (tom)]]></author>
			<pubDate>Mon, 13 Jan 2025 11:32:22 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=43502#p43502</guid>
		</item>
		<item>
			<title><![CDATA[Re: 504 Gateway Timeout]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=43500#p43500</link>
			<description><![CDATA[<p>Lines 416 and 481 have both parameters in <strong>admin/db/maintenance_db.inc</strong></p><p>Also in the CoA <strong>sql/en_US-new.sql</strong> we have <strong>SET NAMES latin1;</strong> and it may be utf8 for other language CoAs.</p><p>Please list the changes you have made.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 13 Jan 2025 07:08:29 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=43500#p43500</guid>
		</item>
		<item>
			<title><![CDATA[Re: 504 Gateway Timeout]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=43495#p43495</link>
			<description><![CDATA[<p>The issue was in the db backend</p><p>I&#039;d explain but nobody would understand LOL</p><p>Tom</p>]]></description>
			<author><![CDATA[null@example.com (tom)]]></author>
			<pubDate>Sun, 12 Jan 2025 11:20:55 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=43495#p43495</guid>
		</item>
		<item>
			<title><![CDATA[Re: 504 Gateway Timeout]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=43481#p43481</link>
			<description><![CDATA[<p>I think I found the problem on the db backend.</p><p>I&#039;ll report back when I have an update </p><p>Tom</p>]]></description>
			<author><![CDATA[null@example.com (tom)]]></author>
			<pubDate>Tue, 31 Dec 2024 00:48:51 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=43481#p43481</guid>
		</item>
		<item>
			<title><![CDATA[Re: 504 Gateway Timeout]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=43479#p43479</link>
			<description><![CDATA[<p>Looking at the code I see debug to create dbimport.txt which starts with</p><p>Array<br />(<br />&nbsp; &nbsp; [0] =&gt; Array<br />&nbsp; &nbsp; &nbsp; &nbsp; (<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [0] =&gt; SET NAMES latin1</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [1] =&gt; 11<br />&nbsp; &nbsp; &nbsp; &nbsp; )</p><p>)</p><p>So it saw the SET NAMES latin1;<br />but yet it sends utf8</p><p>Why is the default utf8, was that used prior to FA 2.3?</p><p>Found it!</p><p>Would there be any harm changing the default latin1?</p><p>2023-02-24 09:40:59 +0100 Joe <br />PHP 8.1 onwards db_set_charset needs second parameter not null. Fixed with default utf8.<br />M&nbsp; &nbsp; admin/db/maintenance_db.inc</p><br /><br /><p>Tom</p>]]></description>
			<author><![CDATA[null@example.com (tom)]]></author>
			<pubDate>Mon, 30 Dec 2024 15:24:20 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=43479#p43479</guid>
		</item>
		<item>
			<title><![CDATA[Re: 504 Gateway Timeout]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=43478#p43478</link>
			<description><![CDATA[<p>I enabled general logging and it seems to stop working</p><p>after<br />2024-12-29T17:07:18.634304Z&nbsp; &nbsp; &nbsp; &nbsp; 10 Query&nbsp; &nbsp; &nbsp;SET foreign_key_checks=1<br />2024-12-29T17:07:18.634803Z&nbsp; &nbsp; &nbsp; &nbsp; 10 Query&nbsp; &nbsp; &nbsp;SET NAMES utf8</p><p>See below - another mysql setting I am missing?</p><br /><p>2024-12-29T17:07:18.204770Z&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;9 Execute&nbsp; &nbsp;INSERT INTO backlog (seq, query, timestamp) VALUES (1066,&#039;INSERT INTO `0_tax_group_items` VALUES\n(\&#039;1\&#039;, \&#039;1\&#039;, \&#039;1\&#039;)&#039;,1735492038161)<br />2024-12-29T17:07:18.208097Z&nbsp; &nbsp; &nbsp; &nbsp; 10 Query&nbsp; &nbsp; &nbsp;INSERT INTO `0_tax_group_items` VALUES<br />(&#039;1&#039;, &#039;1&#039;, &#039;1&#039;)<br />2024-12-29T17:07:18.294283Z&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;9 Execute&nbsp; &nbsp;INSERT INTO backlog (seq, query, timestamp) VALUES (1067,&#039;INSERT INTO `0_tax_groups` VALUES\n(\&#039;1\&#039;, \&#039;Tax\&#039;, \&#039;0\&#039;),\n(\&#039;2\&#039;, \&#039;Tax Exempt\&#039;, \&#039;0\&#039;)&#039;,1735492038253)<br />2024-12-29T17:07:18.296397Z&nbsp; &nbsp; &nbsp; &nbsp; 10 Query&nbsp; &nbsp; &nbsp;INSERT INTO `0_tax_groups` VALUES<br />(&#039;1&#039;, &#039;Tax&#039;, &#039;0&#039;),<br />(&#039;2&#039;, &#039;Tax Exempt&#039;, &#039;0&#039;)<br />2024-12-29T17:07:18.379515Z&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;9 Execute&nbsp; &nbsp;INSERT INTO backlog (seq, query, timestamp) VALUES (1068,&#039;INSERT INTO `0_tax_types` VALUES\n(\&#039;1\&#039;, \&#039;5\&#039;, \&#039;2150\&#039;, \&#039;2150\&#039;, \&#039;Tax\&#039;, \&#039;0\&#039;)&#039;,1735492038338)<br />2024-12-29T17:07:18.382010Z&nbsp; &nbsp; &nbsp; &nbsp; 10 Query&nbsp; &nbsp; &nbsp;INSERT INTO `0_tax_types` VALUES<br />(&#039;1&#039;, &#039;5&#039;, &#039;2150&#039;, &#039;2150&#039;, &#039;Tax&#039;, &#039;0&#039;)<br />2024-12-29T17:07:18.465588Z&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;9 Execute&nbsp; &nbsp;INSERT INTO backlog (seq, query, timestamp) VALUES (1069,&#039;INSERT INTO `0_users` VALUES\n(\&#039;1\&#039;, \&#039;admin\&#039;, \&#039;5f4dcc3b5aa765d61d8327deb882cf99\&#039;, \&#039;Administrator\&#039;, \&#039;2\&#039;, \&#039;\&#039;, \&#039;adm@example.com\&#039;, \&#039;C\&#039;, \&#039;0\&#039;, \&#039;0\&#039;, \&#039;0\&#039;, \&#039;0\&#039;, \&#039;default\&#039;, \&#039;Letter\&#039;, \&#039;2\&#039;, \&#039;2\&#039;, \&#039;4\&#039;, \&#039;1\&#039;, \&#039;1\&#039;, \&#039;0\&#039;, \&#039;0\&#039;, \&#039;2021-05-07 13:58:33\&#039;, \&#039;10\&#039;, \&#039;1\&#039;, \&#039;1\&#039;, \&#039;1\&#039;, \&#039;1\&#039;, \&#039;0\&#039;, \&#039;orders\&#039;, \&#039;30\&#039;, \&#039;0\&#039;, \&#039;1\&#039;, \&#039;0\&#039;, \&#039;0\&#039;, \&#039;0\&#039;)&#039;,1735492038424)<br />2024-12-29T17:07:18.468261Z&nbsp; &nbsp; &nbsp; &nbsp; 10 Query&nbsp; &nbsp; &nbsp;INSERT INTO `0_users` VALUES<br />(&#039;1&#039;, &#039;admin&#039;, &#039;5f4dcc3b5aa765d61d8327deb882cf99&#039;, &#039;Administrator&#039;, &#039;2&#039;, &#039;&#039;, &#039;adm@example.com&#039;, &#039;C&#039;, &#039;0&#039;, &#039;0&#039;, &#039;0&#039;, &#039;0&#039;, &#039;default&#039;, &#039;Letter&#039;, &#039;2&#039;, &#039;2&#039;, &#039;4&#039;, &#039;1&#039;, &#039;1&#039;, &#039;0&#039;, &#039;0&#039;, &#039;2021-05-07 13:58:33&#039;, &#039;10&#039;, &#039;1&#039;, &#039;1&#039;, &#039;1&#039;, &#039;1&#039;, &#039;0&#039;, &#039;orders&#039;, &#039;30&#039;, &#039;0&#039;, &#039;1&#039;, &#039;0&#039;, &#039;0&#039;, &#039;0&#039;)<br />2024-12-29T17:07:18.551540Z&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;9 Execute&nbsp; &nbsp;INSERT INTO backlog (seq, query, timestamp) VALUES (1070,&#039;INSERT INTO `0_workcentres` VALUES\n(\&#039;1\&#039;, \&#039;Work Centre\&#039;, \&#039;\&#039;, \&#039;0\&#039;)&#039;,1735492038511)<br />2024-12-29T17:07:18.554467Z&nbsp; &nbsp; &nbsp; &nbsp; 10 Query&nbsp; &nbsp; &nbsp;INSERT INTO `0_workcentres` VALUES<br />(&#039;1&#039;, &#039;Work Centre&#039;, &#039;&#039;, &#039;0&#039;)<br />2024-12-29T17:07:18.631815Z&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;9 Execute&nbsp; &nbsp;INSERT INTO backlog (seq, query, timestamp) VALUES (1071,&#039;SET foreign_key_checks=1&#039;,1735492038595)<br />2024-12-29T17:07:18.634304Z&nbsp; &nbsp; &nbsp; &nbsp; 10 Query&nbsp; &nbsp; &nbsp;SET foreign_key_checks=1<br />2024-12-29T17:07:18.634803Z&nbsp; &nbsp; &nbsp; &nbsp; 10 Query&nbsp; &nbsp; &nbsp;SET NAMES utf8<br />2024-12-29T17:07:18.714956Z&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;9 Execute&nbsp; &nbsp;INSERT INTO backlog (seq, query, timestamp) VALUES (1072,&#039;UPDATE 0_sys_prefs SET value = \&#039;Flux Testing\&#039; WHERE name=\&#039;coy_name\&#039;&#039;,1735492038674)</p>]]></description>
			<author><![CDATA[null@example.com (tom)]]></author>
			<pubDate>Sun, 29 Dec 2024 17:29:43 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=43478#p43478</guid>
		</item>
		<item>
			<title><![CDATA[Re: 504 Gateway Timeout]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=43387#p43387</link>
			<description><![CDATA[<p>https://stackoverflow.com/questions/168736/how-do-you-set-a-default-value-for-a-mysql-datetime-column<br />https://stackoverflow.com/questions/54007824/how-to-set-sql-mode-in-my-cnf-in-mysql-8</p><p>Also check the parameter for legacy dates in my.cnf<br /></p><div class="codebox"><pre><code>[mysqld]

sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 27 Sep 2024 07:37:52 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=43387#p43387</guid>
		</item>
		<item>
			<title><![CDATA[Re: 504 Gateway Timeout]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=43385#p43385</link>
			<description><![CDATA[<p>Ok, I was able to manually import the US demo data and I get an error:</p><p>ERROR 1067 (42000) at line 35: Invalid default value for &#039;tran_date&#039;</p><p>The table is:</p><p>CREATE TABLE `0_attachments` (<br />&nbsp; `id` int(11) unsigned NOT NULL AUTO_INCREMENT,<br />&nbsp; `description` varchar(60) NOT NULL DEFAULT &#039;&#039;,<br />&nbsp; `type_no` int(11) NOT NULL DEFAULT &#039;0&#039;,<br />&nbsp; `trans_no` int(11) NOT NULL DEFAULT &#039;0&#039;,<br />&nbsp; `unique_name` varchar(60) NOT NULL DEFAULT &#039;&#039;,<br />&nbsp; `tran_date` date NOT NULL DEFAULT &#039;0000-00-00&#039;,<br />&nbsp; `filename` varchar(60) NOT NULL DEFAULT &#039;&#039;,<br />&nbsp; `filesize` int(11) NOT NULL DEFAULT &#039;0&#039;,<br />&nbsp; `filetype` varchar(60) NOT NULL DEFAULT &#039;&#039;,<br />&nbsp; PRIMARY KEY (`id`),<br />&nbsp; KEY `type_no` (`type_no`,`trans_no`)<br />) ENGINE=InnoDB;</p><br /><p>I am using mysql:8.3.0 (docker image)<br />Maybe I need to use an older version. The docs did not recommend any specific mySQL version...</p><p>Thanks!<br />ps. I don&#039;t think I can use an older mysql due to some clustering that is being done.</p><p>I did see that the valid date range is : The supported range is &#039;1000-01-01&#039; to &#039;9999-12-31&#039;.</p><p>Will the default value of 1000-01-01 cause any SQL issues?</p>]]></description>
			<author><![CDATA[null@example.com (tom)]]></author>
			<pubDate>Thu, 26 Sep 2024 14:49:46 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=43385#p43385</guid>
		</item>
		<item>
			<title><![CDATA[504 Gateway Timeout]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=43384#p43384</link>
			<description><![CDATA[<p>I am doing a fresh install on a new hosting platform</p><p>In the setup wizard I get the db connection setup ok, but when I import the COA with or without demo data I get</p><p>504 Gateway Timeout</p><p>any suggestions where to look?</p><p>Is the import data local or being pulled from an FA site?</p><p>Tom</p>]]></description>
			<author><![CDATA[null@example.com (tom)]]></author>
			<pubDate>Wed, 25 Sep 2024 13:54:18 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=43384#p43384</guid>
		</item>
	</channel>
</rss>
