Skip to content

Conversation

@timm2k
Copy link
Contributor

@timm2k timm2k commented Oct 26, 2020

Users get error

An exception occurred while executing 'INSERT INTO `xx_filecache_extended` (`fileid`, `upload_time`) VALUES(?, ?)' with params [4XY6418251, 160369XYZ0]:\\n\\nSQLSTATE[22003]: Numeric value out of range: 1264 Out of range value for column 'fileid' at row 1\"?

@timm2k
Copy link
Contributor Author

timm2k commented Oct 26, 2020

Before:

MariaDB [nextcloud]> describe oc_filecache_extended;
+---------------+------------------+------+-----+---------+-------+
| Field         | Type             | Null | Key | Default | Extra |
+---------------+------------------+------+-----+---------+-------+
| fileid        | int(10) unsigned | NO   | PRI | NULL    |       |
| metadata_etag | varchar(40)      | YES  |     | NULL    |       |
| creation_time | bigint(20)       | NO   | MUL | 0       |       |
| upload_time   | bigint(20)       | NO   | MUL | 0       |       |
+---------------+------------------+------+-----+---------+-------+
4 rows in set (0.007 sec)

MariaDB [nextcloud]>

After occ db:convert-filecache-bigint:

MariaDB [nextcloud]> describe oc_filecache_extended;
+---------------+---------------------+------+-----+---------+-------+
| Field         | Type                | Null | Key | Default | Extra |
+---------------+---------------------+------+-----+---------+-------+
| fileid        | bigint(20) unsigned | NO   | PRI | NULL    |       |
| metadata_etag | varchar(40)         | YES  |     | NULL    |       |
| creation_time | bigint(20)          | NO   | MUL | 0       |       |
| upload_time   | bigint(20)          | NO   | MUL | 0       |       |
+---------------+---------------------+------+-----+---------+-------+
4 rows in set (0.004 sec)

MariaDB [nextcloud]>

@timm2k
Copy link
Contributor Author

timm2k commented Oct 26, 2020

Please backport to stable releases.

@timm2k
Copy link
Contributor Author

timm2k commented Oct 26, 2020

Forgot adding to checkSetupController.php with first submit.

@rullzer rullzer added the 3. to review Waiting for reviews label Oct 26, 2020
@rullzer rullzer added this to the Nextcloud 21 milestone Oct 26, 2020
@rullzer rullzer requested a review from MorrisJobke October 26, 2020 08:51
Copy link
Member

@rullzer rullzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch

Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍 Makes sense

@faily-bot
Copy link

faily-bot bot commented Oct 26, 2020

🤖 beep boop beep 🤖

Here are the logs for the failed build:

Status of 34553: failure

mariadb10.4-php7.4

Show full log
There were 2 warnings:

1) Test\Files\ViewTest::testRenameFailDeleteTargetKeepSource
Trying to configure method "writeStream" which cannot be configured because it does not exist, has not been specified, is final, or is static

2) Test\Files\ViewTest::testCopyFailDeleteTargetKeepSource
Trying to configure method "writeStream" which cannot be configured because it does not exist, has not been specified, is final, or is static

--

There was 1 failure:

1) Test\Share20\DefaultShareProviderTest::testDeleteGroupShareWithUserGroupShares
Failed asserting that an array is empty.

/drone/src/tests/lib/Share20/DefaultShareProviderTest.php:581

@rullzer rullzer merged commit 15b3d86 into master Oct 26, 2020
@rullzer rullzer deleted the timm2k-patch-1 branch October 26, 2020 08:55
@rullzer
Copy link
Member

rullzer commented Oct 26, 2020

/backport to stable20

@rullzer
Copy link
Member

rullzer commented Oct 26, 2020

/backport to stable19

@rullzer
Copy link
Member

rullzer commented Oct 26, 2020

/backport to stable18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants