Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] MariaDB Errors Out #63

Closed
xosupernova opened this issue Mar 7, 2021 · 8 comments
Closed

[BUG] MariaDB Errors Out #63

xosupernova opened this issue Mar 7, 2021 · 8 comments
Labels
bug Something isn't working
Milestone

Comments

@xosupernova
Copy link

Describe the bug
MariaDB only creates one table then errors out with bellow Exibit A. the only table it creates is also bellow Exibit B

To Reproduce
Steps to reproduce the behavior:

  1. Use MariaDB or MySQL on Docker
  2. Watch Container Die
  3. Look at logs and see error

Expected behavior
MySQL/MariaDB to Work

Screenshots
Exibit A
Exibit B

Desktop (please complete the following information if desktop):

  • OS: Debian 10
  • Browser: N/A
  • Zipline Version: 2.8.1
@nodgear
Copy link

nodgear commented Mar 26, 2021

Same issue on MySQL under Ubuntu 18.04
No docker container

@diced
Copy link
Owner

diced commented Mar 26, 2021

The newest commit 1745298 might fix this, please try it out!

@nodgear
Copy link

nodgear commented Mar 28, 2021

Does not fix for me, had to install postgres

@diced diced added the bug Something isn't working label Apr 6, 2021
@diced diced added this to the zipline 2.10 milestone Apr 6, 2021
@tzockt
Copy link

tzockt commented Jun 17, 2021

Same Problem with newest Version of zipline and Nodejs

  • Ubuntu 20.04.2 LTS
  • mysql Ver 15.1 Distrib 10.3.29-MariaDB
  • NodeJs v16.3.0
zipline@stalin:~/zipline$ npm start

> [email protected] start
> NODE_ENV=production node dist

/home/zipline/zipline/node_modules/typeorm/error/QueryFailedError.js:11
        var _this = _super.call(this) || this;
                           ^

QueryFailedError: ER_BLOB_KEY_WITHOUT_LENGTH: BLOB/TEXT column 'id' used in key specification without a key length
    at new QueryFailedError (/home/zipline/zipline/node_modules/typeorm/error/QueryFailedError.js:11:28)
    at Query.<anonymous> (/home/zipline/zipline/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:216:45)
    at Query.<anonymous> (/home/zipline/zipline/node_modules/mysql/lib/Connection.js:526:10)
    at Query._callback (/home/zipline/zipline/node_modules/mysql/lib/Connection.js:488:16)
    at Query.Sequence.end (/home/zipline/zipline/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24)
    at Query.ErrorPacket (/home/zipline/zipline/node_modules/mysql/lib/protocol/sequences/Query.js:92:8)
    at Protocol._parsePacket (/home/zipline/zipline/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home/zipline/zipline/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home/zipline/zipline/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home/zipline/zipline/node_modules/mysql/lib/protocol/Protocol.js:38:16) {
  code: 'ER_BLOB_KEY_WITHOUT_LENGTH',
  errno: 1170,
  sqlMessage: "BLOB/TEXT column 'id' used in key specification without a key length",
  sqlState: '42000',
  index: 0,
  sql: 'CREATE TABLE `zipline_data` (`id` text NOT NULL, `first` tinyint NOT NULL DEFAULT 1, PRIMARY KEY (`id`)) ENGINE=InnoDB',
  query: 'CREATE TABLE `zipline_data` (`id` text NOT NULL, `first` tinyint NOT NULL DEFAULT 1, PRIMARY KEY (`id`)) ENGINE=InnoDB',
  parameters: []
}

@diced
Copy link
Owner

diced commented Jun 18, 2021

This will be fixed in an upcoming release

@diced diced closed this as completed Jun 18, 2021
@tzockt
Copy link

tzockt commented Jun 18, 2021

When comes the next version?

@rpxs
Copy link

rpxs commented Jun 18, 2021

zipline will be completely rewritten, so after the rewrite you'll see the new & improved zipline.

@diced
Copy link
Owner

diced commented Jun 18, 2021

When comes the next version?

I can't give an exact estimate but core features will be ready to go in about a week or two. Then as I continue development, old features from Zipline 2 will be added or removed as I see fit, but for sure this issue will be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants