Giter Site home page Giter Site logo

Comments (10)

FloatingGhost avatar FloatingGhost commented on September 24, 2024

I know this exact error - this is due to an old version of MySQL.

I think MySQL 5.6 fixed this issue - I don't know which version of mariadb this relates to though.

Try running an update on the container and see if it works

from misp-taxii-server.

combobulator avatar combobulator commented on September 24, 2024

Thanks for your help, updating MariaDB to 10.1 from 10.0 fixed the issue.
For posterity my versions are now:
mysql Ver 15.1 Distrib 10.1.22-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2

For anyone else that stumbles on this page, the steps I took:
# apt-get install software-properties-common
# apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
# add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://mirrors.coreix.net/mariadb/repo/10.1/ubuntu xenial main'
# apt-get update && apt-get upgrade
# apt-get install
# apt-get install mysql-common mariadb-common libmysqlclient18 libmariadbclient18 mariadb-client-core-10.1 mariadb-client-10.1 mariadb-server-core-10.1 mariadb-server-10.1 libmariadbclient-dev mariadb-server

I've now got another problem though, same command, different error :(
It occurs with the standard 'services.yaml' as well as with my edited version.
It strikes me that this may be more suited to the OpenTAXII issues page; happy to close this and move over there but first wanted to check if you'd come across it before.

# opentaxii-create-services -c services.yaml
2017-03-29T10:17:37.716675Z [opentaxii.utils] info: api.initialized {timestamp=2017-03-29T10:17:37.716675Z, event=api.initialized, api=opentaxii.persistence.sqldb.SQLDatabaseAPI, level=info, logger=opentaxii.utils}
2017-03-29T10:17:37.738597Z [opentaxii.utils] info: api.initialized {timestamp=2017-03-29T10:17:37.738597Z, event=api.initialized, api=opentaxii.auth.sqldb.SQLDatabaseAPI, level=info, logger=opentaxii.utils}
2017-03-29T10:17:37.738820Z [opentaxii.server] info: taxiiserver.configured {timestamp=2017-03-29T10:17:37.738820Z, event=taxiiserver.configured, logger=opentaxii.server, level=info}
Loading: services.yaml
Traceback (most recent call last):
File "/usr/local/bin/opentaxii-create-services", line 9, in
load_entry_point('opentaxii==0.1.8a1', 'console_scripts', 'opentaxii-create-services')()
File "/usr/local/lib/python3.5/dist-packages/opentaxii-0.1.8a1-py3.5.egg/opentaxii/cli/persistence.py", line 23, in create_services
services_config = anyconfig.load(args.config, forced_type="yaml")
File "/usr/local/lib/python3.5/dist-packages/anyconfig-0.9.1-py3.5.egg/anyconfig/api.py", line 377, in load
File "/usr/local/lib/python3.5/dist-packages/anyconfig-0.9.1-py3.5.egg/anyconfig/api.py", line 262, in single_load
File "/usr/local/lib/python3.5/dist-packages/anyconfig-0.9.1-py3.5.egg/anyconfig/backend/base.py", line 290, in load
File "/usr/local/lib/python3.5/dist-packages/anyconfig-0.9.1-py3.5.egg/anyconfig/backend/base.py", line 424, in load_from_path
File "/usr/local/lib/python3.5/dist-packages/anyconfig-0.9.1-py3.5.egg/anyconfig/backend/base.py", line 75, in wrapper
File "/usr/local/lib/python3.5/dist-packages/anyconfig-0.9.1-py3.5.egg/anyconfig/backend/yaml.py", line 167, in _yml_load
ValueError: dictionary update sequence element #0 has length 9; 2 is required

from misp-taxii-server.

FloatingGhost avatar FloatingGhost commented on September 24, 2024
_yml_load
ValueError: dictionary update sequence element #0 has length 9; 2 is required

this sounds like you have a bad yaml file - any chance you could post your services.yaml here if you've changed it?

from misp-taxii-server.

combobulator avatar combobulator commented on September 24, 2024

Tried each of the attached. services.yaml is exactly as it was when I cloned the repo, my.services just has changed descriptions. Had to add .txt to upload here

my.services.yaml.txt
services.yaml.txt

from misp-taxii-server.

FloatingGhost avatar FloatingGhost commented on September 24, 2024

That's very weird. I'm using the same version of opentaxii as you, and the create-services script runs just fine with your config.

However, I do appear to be using anyconfig v0.7.0.

Ah here we go. I get the same error as you now if I swap to anyconfig 0.9.1.

I'll see if they updated opentaxii to be compatible with this new version

from misp-taxii-server.

FloatingGhost avatar FloatingGhost commented on September 24, 2024

Ok, there you go - pushed a commit that updates OpenTaxii and gives a slightly different config file. That should fix it for you :)

from misp-taxii-server.

combobulator avatar combobulator commented on September 24, 2024

Awesomesauce, thanks, I'll check it out now and report back :)

EDIT: Worked great :)
I just ran the new OpenTAXII setup script and went straight to installing the services (used the original configs), and now services & collections were created successfully.

from misp-taxii-server.

Danko90 avatar Danko90 commented on September 24, 2024

Hello,
I had the same error and I fixed it by putting the string

services:

at the top in config/services.yaml

Did it work for you even without that string?

from misp-taxii-server.

FloatingGhost avatar FloatingGhost commented on September 24, 2024

Well obviously, otherwise I'd have put that in

from misp-taxii-server.

ventz avatar ventz commented on September 24, 2024

Running into similar issue with mariadb-server-10.1:

sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (1071, 'Specified key was too long; max key length is 767 bytes') [SQL: 'CREATE UNIQUE INDEX ix_data_collections_name ON data_collections (name)']

I don't want to create a new issue since it seems related?

Error caused simply by running default: opentaxii-sync-data config/data-configuration.yaml

from misp-taxii-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.