<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Update 8.0.3 - Failed: HttpError: ER_BAD_FIELD_ERROR: Unknown column &#x27;apps.cpuQuota&#x27; in &#x27;field list&#x27;]]></title><description><![CDATA[<p dir="auto">Upgrade 8.0.3 failed which resulted in en empty cloduron</p>
<p dir="auto"><strong>box.log</strong>  with multiple ER_BAD_FIELD_ERROR messages</p>
<pre><code>HttpError: ER_BAD_FIELD_ERROR: Unknown column 'apps.cpuQuota' in 'field list'
    at BoxError.toHttpError (/home/yellowtent/box/src/boxerror.js:106:16)
    at listByUser (/home/yellowtent/box/src/routes/apps.js:111:37)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  status: 500,
  internalError: BoxError: ER_BAD_FIELD_ERROR: Unknown column 'apps.cpuQuota' in 'field list'
      at Query.queryCallback (/home/yellowtent/box/src/database.js:91:38)
      at Query.&lt;anonymous&gt; (/home/yellowtent/box/node_modules/mysql/lib/Connection.js:526:10)
      at Query._callback (/home/yellowtent/box/node_modules/mysql/lib/Connection.js:488:16)
      at Sequence.end (/home/yellowtent/box/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24)
      at Query.ErrorPacket (/home/yellowtent/box/node_modules/mysql/lib/protocol/sequences/Query.js:92:8)
      at Protocol._parsePacket (/home/yellowtent/box/node_modules/mysql/lib/protocol/Protocol.js:291:23)
      at Parser._parsePacket (/home/yellowtent/box/node_modules/mysql/lib/protocol/Parser.js:433:10)
      at Parser.write (/home/yellowtent/box/node_modules/mysql/lib/protocol/Parser.js:43:10)
      at Protocol.write (/home/yellowtent/box/node_modules/mysql/lib/protocol/Protocol.js:38:16)
      at Socket.&lt;anonymous&gt; (/home/yellowtent/box/node_modules/mysql/lib/Connection.js:88:28) {
    reason: 'Database Error',
    details: {},
    nestedError: Error: ER_BAD_FIELD_ERROR: Unknown column 'apps.cpuQuota' in 'field list'
        at Sequence._packetToError (/home/yellowtent/box/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
        at Query.ErrorPacket (/home/yellowtent/box/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
        at Protocol._parsePacket (/home/yellowtent/box/node_modules/mysql/lib/protocol/Protocol.js:291:23)
        at Parser._parsePacket (/home/yellowtent/box/node_modules/mysql/lib/protocol/Parser.js:433:10)
        at Parser.write (/home/yellowtent/box/node_modules/mysql/lib/protocol/Parser.js:43:10)
        at Protocol.write (/home/yellowtent/box/node_modules/mysql/lib/protocol/Protocol.js:38:16)
        at Socket.&lt;anonymous&gt; (/home/yellowtent/box/node_modules/mysql/lib/Connection.js:88:28)
        at Socket.&lt;anonymous&gt; (/home/yellowtent/box/node_modules/mysql/lib/Connection.js:526:10)
        at Socket.emit (node:events:518:28)
        at addChunk (node:internal/streams/readable:559:12)
        --------------------
        at Pool.query (/home/yellowtent/box/node_modules/mysql/lib/Pool.js:199:23)
        at /home/yellowtent/box/src/database.js:96:31
        at new Promise (&lt;anonymous&gt;)
        at Object.query (/home/yellowtent/box/src/database.js:87:12)
        at list (/home/yellowtent/box/src/apps.js:1124:36)
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
        at async Object.listByUser (/home/yellowtent/box/src/apps.js:1141:20) {
      code: 'ER_BAD_FIELD_ERROR',
      errno: 1054,
      sqlMessage: "Unknown column 'apps.cpuQuota' in 'field list'",
      sqlState: '42S22',
      index: 0,
      sql: 'SELECT apps.id,apps.appStoreId,apps.installationState,apps.errorJson,apps.runState,apps.health,apps.containerId,apps.manifestJson,apps.accessRestrictionJson,apps.memoryLimit,apps.cpuQuota,apps.label,apps.notes,apps.tagsJson,apps.taskId,apps.reverseProxyConfigJson,apps.s
ervicesConfigJson,apps.operatorsJson,apps.sso,apps.debugModeJson,apps.enableBackup,apps.proxyAuth,apps.containerIp,apps.crontab,apps.creationTime,apps.updateTime,apps.enableAutomaticUpdate,apps.upstreamUri,apps.checklistJson,apps.enableMailbox,apps.mailboxDisplayName,apps.mailboxNa
me,apps.mailboxDomain,apps.enableInbox,apps.inboxName,apps.inboxDomain,apps.enableTurn,apps.enableRedis,apps.storageVolumeId,apps.storageVolumePrefix,apps.ts,apps.healthTime,(apps.icon IS NOT NULL) AS hasIcon,(apps.appStoreIcon IS NOT NULL) AS hasAppStoreIcon, hostPorts, environmen
tVariables, portTypes, portCounts, envNames, envValues, subdomains, domains, subdomainTypes, subdomainEnvironmentVariables, subdomainCertificateJsons, volumeIds, volumeReadOnlys FROM apps LEFT JOIN (SELECT id, GROUP_CONCAT(CAST(appPortBindings.hostPort AS CHAR(6))) AS hostPorts, GR
OUP_CONCAT(appPortBindings.environmentVariable) AS environmentVariables, GROUP_CONCAT(appPortBindings.type) AS portTypes, GROUP_CONCAT(CAST(appPortBindings.count AS CHAR(6))) AS portCounts FROM apps LEFT JOIN appPortBindings ON apps.id = appPortBindings.appId GROUP BY apps.id) AS q
1 on q1.id = apps.id LEFT JOIN (SELECT id, JSON_ARRAYAGG(appEnvVars.name) AS envNames, JSON_ARRAYAGG(appEnvVars.value) AS envValues FROM apps LEFT JOIN appEnvVars ON apps.id = appEnvVars.appId GROUP BY apps.id) AS q2 on q2.id = apps.id LEFT JOIN (SELECT id, JSON_ARRAYAGG(locations.
subdomain) AS subdomains, JSON_ARRAYAGG(locations.domain) AS domains, JSON_ARRAYAGG(locations.type) AS subdomainTypes, JSON_ARRAYAGG(locations.environmentVariable) AS subdomainEnvironmentVariables, JSON_ARRAYAGG(locations.certificateJson) AS subdomainCertificateJsons FROM apps LEFT
 JOIN locations ON apps.id = locations.appId GROUP BY apps.id) AS q3 on q3.id = apps.id LEFT JOIN (SELECT id, JSON_ARRAYAGG(appMounts.volumeId) AS volumeIds, JSON_ARRAYAGG(appMounts.readOnly) AS volumeReadOnlys FROM apps LEFT JOIN appMounts ON apps.id = appMounts.appId GROUP BY app
s.id) AS q4 on q4.id = apps.id ORDER BY apps.id'
    },
    code: 'ER_BAD_FIELD_ERROR',
    sqlMessage: "Unknown column 'apps.cpuQuota' in 'field list'"
  },
  details: {}
}

</code></pre>
<p dir="auto">When I run <a href="http://start.sh" target="_blank" rel="noopener noreferrer nofollow ugc">start.sh</a> I get this message</p>
<pre><code>[ERROR] AssertionError [ERR_ASSERTION]: ifError got unwanted exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'COLUMN cpuShares to cpuQuota' at line 1
    at /home/yellowtent/box/node_modules/db-migrate/lib/commands/on-complete.js:15:14
    at tryCatcher (/home/yellowtent/box/node_modules/bluebird/js/release/util.js:16:23)
    at Promise.successAdapter (/home/yellowtent/box/node_modules/bluebird/js/release/nodeify.js:22:30)
    at Promise._settlePromise (/home/yellowtent/box/node_modules/bluebird/js/release/promise.js:601:21)
    at Promise._settlePromiseCtx (/home/yellowtent/box/node_modules/bluebird/js/release/promise.js:641:10)
    at _drainQueueStep (/home/yellowtent/box/node_modules/bluebird/js/release/async.js:97:12)
    at _drainQueue (/home/yellowtent/box/node_modules/bluebird/js/release/async.js:86:9)
    at Async._drainQueues (/home/yellowtent/box/node_modules/bluebird/js/release/async.js:102:5)
    at Async.drainQueues [as _onImmediate] (/home/yellowtent/box/node_modules/bluebird/js/release/async.js:15:14)
    at process.processImmediate (node:internal/timers:478:21)
    at Packet.asError (/home/yellowtent/box/node_modules/mysql2/lib/packets/packet.js:728:17)
    at Query.execute (/home/yellowtent/box/node_modules/mysql2/lib/commands/command.js:29:26)
    at Connection.handlePacket (/home/yellowtent/box/node_modules/mysql2/lib/connection.js:456:32)
    at PacketParser.onPacket (/home/yellowtent/box/node_modules/mysql2/lib/connection.js:85:12)
    at PacketParser.executeStart (/home/yellowtent/box/node_modules/mysql2/lib/packet_parser.js:75:16)
    at Socket.&lt;anonymous&gt; (/home/yellowtent/box/node_modules/mysql2/lib/connection.js:92:25)
    at Socket.emit (node:events:518:28)
    at addChunk (node:internal/streams/readable:559:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
    at Readable.push (node:internal/streams/readable:390:5)
    at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
2024-08-14T07:05:02 ==&gt; start: DB migration failed

</code></pre>
<p dir="auto">Please advise</p>
<p dir="auto">Br,<br />
Lennart</p>
]]></description><link>https://forum.cloudron.io/topic/12289/update-8-0-3-failed-httperror-er_bad_field_error-unknown-column-apps-cpuquota-in-field-list</link><generator>RSS for Node</generator><lastBuildDate>Sat, 06 Jun 2026 08:01:08 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/12289.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 14 Aug 2024 07:06:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Update 8.0.3 - Failed: HttpError: ER_BAD_FIELD_ERROR: Unknown column &#x27;apps.cpuQuota&#x27; in &#x27;field list&#x27; on Mon, 21 Oct 2024 08:05:55 GMT]]></title><description><![CDATA[<p dir="auto">I guess that is solved via <a href="https://forum.cloudron.io/post/95877">https://forum.cloudron.io/post/95877</a></p>
]]></description><link>https://forum.cloudron.io/post/95880</link><guid isPermaLink="true">https://forum.cloudron.io/post/95880</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Mon, 21 Oct 2024 08:05:55 GMT</pubDate></item><item><title><![CDATA[Reply to Update 8.0.3 - Failed: HttpError: ER_BAD_FIELD_ERROR: Unknown column &#x27;apps.cpuQuota&#x27; in &#x27;field list&#x27; on Mon, 21 Oct 2024 05:44:05 GMT]]></title><description><![CDATA[<p dir="auto">I'm having the same issue after upgrading to 24.04 and 8.0.3</p>
<p dir="auto">r00buntu@r00buntu-server:~$ lsb_release -a<br />
No LSB modules are available.<br />
Distributor ID: Ubuntu<br />
Description:    Ubuntu 24.04.1 LTS<br />
Release:        24.04<br />
Codename:       noble<br />
r00buntu@r00buntu-server:~$ mysql --version<br />
mysql  Ver 8.0.39-0ubuntu0.24.04.2 for Linux on x86_64 ((Ubuntu))</p>
<p dir="auto">running the "ALTER TABLE" command above results in<br />
"ERROR 1046 (3D000): No database selected"</p>
<p dir="auto">Collectd seems to be failing to install properly and this happens when running the troubleshooter:<br />
2024-10-21T01:41:43 ==&gt; start: Configuring collectd<br />
A dependency job for collectd.service failed. See 'journalctl -xe' for details.</p>
]]></description><link>https://forum.cloudron.io/post/95873</link><guid isPermaLink="true">https://forum.cloudron.io/post/95873</guid><dc:creator><![CDATA[Supaiku]]></dc:creator><pubDate>Mon, 21 Oct 2024 05:44:05 GMT</pubDate></item><item><title><![CDATA[Reply to Update 8.0.3 - Failed: HttpError: ER_BAD_FIELD_ERROR: Unknown column &#x27;apps.cpuQuota&#x27; in &#x27;field list&#x27; on Wed, 14 Aug 2024 08:35:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/caleno" aria-label="Profile: caleno">@<bdi>caleno</bdi></a> yes, ubuntu 20.04 is supported. But I am guessing the post install step was missed previously. <a href="https://docs.cloudron.io/guides/upgrade-ubuntu-20/#post-upgrade" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.cloudron.io/guides/upgrade-ubuntu-20/#post-upgrade</a> . That installs mysql 8 if the ubuntu update didn't.</p>
]]></description><link>https://forum.cloudron.io/post/92732</link><guid isPermaLink="true">https://forum.cloudron.io/post/92732</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Wed, 14 Aug 2024 08:35:00 GMT</pubDate></item><item><title><![CDATA[Reply to Update 8.0.3 - Failed: HttpError: ER_BAD_FIELD_ERROR: Unknown column &#x27;apps.cpuQuota&#x27; in &#x27;field list&#x27; on Wed, 14 Aug 2024 07:59:03 GMT]]></title><description><![CDATA[<p dir="auto"><img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61b.png?v=74f512c8ff7" class="not-responsive emoji emoji-android emoji--stuck_out_tongue" style="height:23px;width:auto;vertical-align:middle" title=":P" alt="😛" /> I'll do an OS upgrade which probably will fix this issue</p>
]]></description><link>https://forum.cloudron.io/post/92725</link><guid isPermaLink="true">https://forum.cloudron.io/post/92725</guid><dc:creator><![CDATA[caleno]]></dc:creator><pubDate>Wed, 14 Aug 2024 07:59:03 GMT</pubDate></item><item><title><![CDATA[Reply to Update 8.0.3 - Failed: HttpError: ER_BAD_FIELD_ERROR: Unknown column &#x27;apps.cpuQuota&#x27; in &#x27;field list&#x27; on Wed, 14 Aug 2024 07:49:22 GMT]]></title><description><![CDATA[<pre><code>mysql&gt; ALTER TABLE apps RENAME COLUMN cpuShares to cpuQuota;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'COLUMN cpuShares to cpuQuota' at line 1
mysql&gt; ^DBye
</code></pre>
<pre><code>root:~# mysql --version 
mysql  Ver 14.14 Distrib 5.7.42, for Linux (x86_64) using  EditLine wrapper
</code></pre>
<p dir="auto">Mhmm, I thought I had done an OS upgrade</p>
<pre><code>root:~# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.6 LTS
Release:	20.04
Codename:	focal
</code></pre>
<p dir="auto">Is 20.04 still supported?</p>
]]></description><link>https://forum.cloudron.io/post/92723</link><guid isPermaLink="true">https://forum.cloudron.io/post/92723</guid><dc:creator><![CDATA[caleno]]></dc:creator><pubDate>Wed, 14 Aug 2024 07:49:22 GMT</pubDate></item><item><title><![CDATA[Reply to Update 8.0.3 - Failed: HttpError: ER_BAD_FIELD_ERROR: Unknown column &#x27;apps.cpuQuota&#x27; in &#x27;field list&#x27; on Wed, 14 Aug 2024 07:32:35 GMT]]></title><description><![CDATA[<p dir="auto">I would also double check the MySQL version on the server:</p>
<pre><code># mysql --version
mysql  Ver 8.0.39-0ubuntu0.24.04.1 for Linux on x86_64 ((Ubuntu))

</code></pre>
]]></description><link>https://forum.cloudron.io/post/92721</link><guid isPermaLink="true">https://forum.cloudron.io/post/92721</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Wed, 14 Aug 2024 07:32:35 GMT</pubDate></item><item><title><![CDATA[Reply to Update 8.0.3 - Failed: HttpError: ER_BAD_FIELD_ERROR: Unknown column &#x27;apps.cpuQuota&#x27; in &#x27;field list&#x27; on Wed, 14 Aug 2024 07:31:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/caleno" aria-label="Profile: caleno">@<bdi>caleno</bdi></a> said in <a href="/post/92717">Update 8.0.3 - Failed: HttpError: ER_BAD_FIELD_ERROR: Unknown column 'apps.cpuQuota' in 'field list'</a>:</p>
<blockquote>
<p dir="auto">[ERROR] AssertionError [ERR_ASSERTION]: ifError got unwanted exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'COLUMN cpuShares to cpuQuota' at line 1</p>
</blockquote>
<p dir="auto">Strange, this shouldn't happen. It could also be that maybe MySQL is giving an incorrect error. Can you try this on the server?</p>
<ul>
<li>First open mysql sheel, <code>mysql -uroot -ppassword</code>  (sic)</li>
<li><code>ALTER TABLE apps RENAME COLUMN cpuShares to cpuQuota</code> . Does this work? This is the migration which is run and which it's complaining has syntax error.</li>
<li>If the above worked, revert the change using <code>ALTER TABLE apps RENAME COLUMN cpuQuota to cpuShares</code> and then run <a href="http://start.sh" target="_blank" rel="noopener noreferrer nofollow ugc">start.sh</a> again.</li>
</ul>
]]></description><link>https://forum.cloudron.io/post/92720</link><guid isPermaLink="true">https://forum.cloudron.io/post/92720</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Wed, 14 Aug 2024 07:31:49 GMT</pubDate></item></channel></rss>