Comments (6)
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.
Hi,
I already asked directly to the developers (~july 2016) but still no answers...
I gave up for the moment.
from sydent.
@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.
@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.
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.
hopefully this is fixed now
from sydent.
Related Issues (20)
- SMS Support HOT 1
- Is 2.5.2 the latest version of Sydent? HOT 2
- A bug in third party invitations HOT 3
- Documentation of Config File HOT 1
- Back-off retries for requests to `/3pid/onbind` against homeservers after a successful bind are not tested
- Homeserver url issue HOT 7
- [docker] Bad working directory HOT 1
- prometheus-client is required to start sydent HOT 1
- [Question] Connect with homeserver HOT 4
- `POST /_matrix/identity/v2/store-invite` returns unspecced `public_key` property HOT 2
- Allow restricting Sydent to use by a specific list of Homeservers
- Allow turning off of terms for Sydent restricted to one homeserver HOT 3
- [docker] Permission denied: '/home/sydent/src/requirements.txt' HOT 5
- cargo/rust permission denied HOT 2
- Is there a detailed explanation of the configuration file, please? HOT 1
- LDAP search support HOT 1
- MatrixError: [502] Third party certificate could not be checked HOT 8
- `poetry install` failing on Python 3.12 HOT 2
- Inverted logic in configuration merge HOT 3
- Matrix homeserver did not include 'sub' in its response HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sydent.