GithubHelp home page GithubHelp logo

run sydent error about sydent HOT 6 CLOSED

matrix-org avatar matrix-org commented on July 2, 2024
run sydent error

from sydent.

Comments (6)

chlw avatar chlw commented on July 2, 2024 1

Hi all

Trying to set up an identity server myself. But I have some same problems...

@slipeer
Can you give some more hints how it worked for you?

What I did:

cd /path/to/sydent
sqlite3
.open sydent.db

Then ran all the SQL-Statements from the *.sql files in the db-directory (/path/to/sydent/sydent/db) in the console. I stripped out all existing "IF NOT EXISTS " as recommended by you.

When checking the database with the command .tables, ist seems that all the tables are there.

The I run the command

python -m sydent.sydent

which gives me the following error:

INFO:sydent.db.sqlitedb:Using DB file sydent.db
ERROR:sydent.db.sqlitedb:Error importing threepid_associations.sql
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "sydent.py", line 191, in <module>
  File "sydent.py", line 101, in __init__
  File "sydent/db/sqlitedb.py", line 42, in __init__
    c.executescript(fp.read())
sqlite3.OperationalError: near "(": syntax error

The file contains the mentioned command on line 42 (c.executescript(fp.read())), but I don't know, what's wrong.

The only thing I could possibly think of is, that I mistakenly installed the stuff in the directory "/home/temp/" which probably is not exactly where it belongs to.

Installed all on a Debian Jessie.

Any hints from someone...?

Thank you!

from sydent.

floviolleau avatar floviolleau commented on July 2, 2024

Hi,

I already asked directly to the developers (~july 2016) but still no answers...

I gave up for the moment.

from sydent.

slipeer avatar slipeer commented on July 2, 2024

@wjhtinger, @floviolleau
There is installation bug.
In sources in sydent/db there some .sql files describes tables in database. Try to creat nesesary tables with them (Note IF NOT EXISTS don't work in sqlite - remove it) - this solution work for me.

from sydent.

slipeer avatar slipeer commented on July 2, 2024

@chlw I found that to sydent work correctly you need sqlite version >=3.12. I'm use 3.16 and all work for me.
As far as I remember, Debian Jessie has an older version. I'm use Stretch.

from sydent.

chlw avatar chlw commented on July 2, 2024

@slipeer

Thanks for the quick reply and your help! I Installed a fresh copy of Debian Stretch and it now seems to work (at least the thing with the DB...).

I think the Identity-server now is online and working, but I still cannot get it to work with the homeserver, presumably due to a misconfigured conf file...

The Identity server is set up correctly in terms of DNS (sub.mydomain.tld), I have a working postfix-Server on that machine, but still can't get any mail-addresses or phne numbers to be saved.
In the file homeserver.yaml I have added the following:

# The list of identity servers trusted to verify third party
# identifiers by this server.
trusted_third_party_id_servers:
    - matrix.org
    - vector.im
    - sub.mydomain.tld

What am I missing? Should I use an external SMTP-Server?

Below is my sydent.conf

Thanks again for any hints!

[DEFAULT]
replication.https.port = 4434
email.from = Sydent Validation <noreply@{hostname}>
email.smtpport = 25
email.subject = Your Validation Token
log.path = /opt/sydent/log/sydent.log
db.file = sydent.db
email.template = res/invite_template.eml
email.smtphost = localhost
bodytemplate = Your code is {token}
replication.https.certfile = 
email.tlsmode = 0
email.smtppassword = mypassword
pidfile.path = sydent.pid
ed20086.signingkey = ed20086 0 jhzFryfAOkuvrKnRTimyaqq3cy+juvcxpAPNgvDmItc
clientapi.http.port = 8090
token.length = 6
email.hostname = localhost
email.smtpusername = myusername
obey_x_forwarded_for = False
email.invite.subject = %(sender_display_name)s has invited you to chat
replication.https.cacert = 
server.name = sub.mydomain.tld

[general]
server.name = sub.mydomain.tld

[db]

[http]

[email]

[crypto]
ed20086.signingkey = ed20086 0 jhzFryfAOkuvrKnRTimyaqq3cy+juvcxpAPNgvDmItc

[sms]

from sydent.

richvdh avatar richvdh commented on July 2, 2024

hopefully this is fixed now

from sydent.

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.