Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
abdc141c
Unverified
Commit
abdc141c
authored
6 years ago
by
Amber Brown
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update instructions to point to pip install (#3985)
parent
b5b93f45
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.circleci/merge_base_branch.sh
+8
-5
8 additions, 5 deletions
.circleci/merge_base_branch.sh
README.rst
+17
-53
17 additions, 53 deletions
README.rst
UPGRADE.rst
+3
-3
3 additions, 3 deletions
UPGRADE.rst
changelog.d/3985.misc
+1
-0
1 addition, 0 deletions
changelog.d/3985.misc
with
29 additions
and
61 deletions
.circleci/merge_base_branch.sh
+
8
−
5
View file @
abdc141c
...
...
@@ -9,13 +9,16 @@ source $BASH_ENV
if
[[
-z
"
${
CIRCLE_PR_NUMBER
}
"
]]
then
echo
"Can't figure out what the PR number is!"
exit
1
echo
"Can't figure out what the PR number is! Assuming merge target is develop."
# It probably hasn't had a PR opened yet. Since all PRs land on develop, we
# can probably assume it's based on it and will be merged into it.
GITBASE
=
"develop"
else
# Get the reference, using the GitHub API
GITBASE
=
`
curl
-q
https://api.github.com/repos/matrix-org/synapse/pulls/
${
CIRCLE_PR_NUMBER
}
| jq
-r
'.base.ref'
`
fi
# Get the reference, using the GitHub API
GITBASE
=
`
curl
-q
https://api.github.com/repos/matrix-org/synapse/pulls/
${
CIRCLE_PR_NUMBER
}
| jq
-r
'.base.ref'
`
# Show what we are before
git show
-s
...
...
This diff is collapsed.
Click to expand it.
README.rst
+
17
−
53
View file @
abdc141c
...
...
@@ -81,7 +81,7 @@ Thanks for using Matrix!
Synapse Installation
====================
Synapse is the reference
p
ython/
t
wisted Matrix homeserver implementation.
Synapse is the reference
P
ython/
T
wisted Matrix homeserver implementation.
System requirements:
...
...
@@ -91,12 +91,13 @@ System requirements:
Installing from source
----------------------
(Prebuilt packages are available for some platforms - see `Platform-Specific
Instructions`_.)
Synapse is written in
p
ython but some of the libraries it uses are written in
C. So before we can install
s
ynapse itself we need a working C compiler and the
header files for
p
ython C extensions.
Synapse is written in
P
ython but some of the libraries it uses are written in
C. So before we can install
S
ynapse itself we need a working C compiler and the
header files for
P
ython C extensions.
Installing prerequisites on Ubuntu or Debian::
...
...
@@ -143,18 +144,24 @@ Installing prerequisites on OpenBSD::
doas pkg_add python libffi py-pip py-setuptools sqlite3 py-virtualenv \
libxslt
To install the
s
ynapse homeserver run::
To install the
S
ynapse homeserver run::
virtualenv -p python2.7 ~/.synapse
source ~/.synapse/bin/activate
pip install --upgrade pip
pip install --upgrade setuptools
pip install
https://github.com/
matrix-
org/
synapse
/tarball/master
pip install matrix-synapse
This installs
s
ynapse, along with the libraries it uses, into a virtual
This installs
S
ynapse, along with the libraries it uses, into a virtual
environment under ``~/.synapse``. Feel free to pick a different directory
if you prefer.
This Synapse installation can then be later upgraded by using pip again with the
update flag::
source ~/.synapse/bin/activate
pip install -U matrix-synapse
In case of problems, please see the _`Troubleshooting` section below.
There is an offical synapse image available at
...
...
@@ -167,7 +174,7 @@ Alternatively, Andreas Peters (previously Silvio Fricke) has contributed a
Dockerfile to automate a synapse server in a single Docker image, at
https://hub.docker.com/r/avhost/docker-matrix/tags/
Configuring
s
ynapse
Configuring
S
ynapse
-------------------
Before you can start Synapse, you will need to generate a configuration
...
...
@@ -249,26 +256,6 @@ Setting up a TURN server
For reliable VoIP calls to be routed via this homeserver, you MUST configure
a TURN server. See `<docs/turn-howto.rst>`_ for details.
IPv6
----
As of Synapse 0.19 we finally support IPv6, many thanks to @kyrias and @glyph
for providing PR #1696.
However, for federation to work on hosts with IPv6 DNS servers you **must**
be running Twisted 17.1.0 or later - see https://github.com/matrix-org/synapse/issues/1002
for details. We can't make Synapse depend on Twisted 17.1 by default
yet as it will break most older distributions (see https://github.com/matrix-org/synapse/pull/1909)
so if you are using operating system dependencies you'll have to install your
own Twisted 17.1 package via pip or backports etc.
If you're running in a virtualenv then pip should have installed the newest
Twisted automatically, but if your virtualenv is old you will need to manually
upgrade to a newer Twisted dependency via:
pip install Twisted>=17.1.0
Running Synapse
===============
...
...
@@ -444,8 +431,7 @@ settings require a slightly more difficult installation process.
using the ``.`` command, rather than ``bash``'s ``source``.
5) Optionally, use ``pip`` to install ``lxml``, which Synapse needs to parse
webpages for their titles.
6) Use ``pip`` to install this repository: ``pip install
https://github.com/matrix-org/synapse/tarball/master``
6) Use ``pip`` to install this repository: ``pip install matrix-synapse``
7) Optionally, change ``_synapse``'s shell to ``/bin/false`` to reduce the
chance of a compromised Synapse server being used to take over your box.
...
...
@@ -473,7 +459,7 @@ Troubleshooting
Troubleshooting Installation
----------------------------
Synapse requires pip
1.7
or later, so if your OS provides too old a version you
Synapse requires pip
8
or later, so if your OS provides too old a version you
may need to manually upgrade it::
sudo pip install --upgrade pip
...
...
@@ -508,28 +494,6 @@ failing, e.g.::
pip install twisted
On OS X, if you encounter clang: error: unknown argument: '-mno-fused-madd' you
will need to export CFLAGS=-Qunused-arguments.
Troubleshooting Running
-----------------------
If synapse fails with ``missing "sodium.h"`` crypto errors, you may need
to manually upgrade PyNaCL, as synapse uses NaCl (https://nacl.cr.yp.to/) for
encryption and digital signatures.
Unfortunately PyNACL currently has a few issues
(https://github.com/pyca/pynacl/issues/53) and
(https://github.com/pyca/pynacl/issues/79) that mean it may not install
correctly, causing all tests to fail with errors about missing "sodium.h". To
fix try re-installing from PyPI or directly from
(https://github.com/pyca/pynacl)::
# Install from PyPI
pip install --user --upgrade --force pynacl
# Install from github
pip install --user https://github.com/pyca/pynacl/tarball/master
Running out of File Handles
~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
...
This diff is collapsed.
Click to expand it.
UPGRADE.rst
+
3
−
3
View file @
abdc141c
...
...
@@ -18,7 +18,7 @@ instructions that may be required are listed later in this document.
.. code:: bash
pip install --upgrade --process-dependency-links
https://github.com/
matrix-
org/
synapse
/tarball/master
pip install --upgrade --process-dependency-links matrix-synapse
# restart synapse
synctl restart
...
...
@@ -48,11 +48,11 @@ returned by the Client-Server API:
# configured on port 443.
curl -kv https://<host.name>/_matrix/client/versions 2>&1 | grep "Server:"
Upgrading to
$NEXT_VERSION
Upgrading to
v0.27.3
====================
This release expands the anonymous usage stats sent if the opt-in
``report_stats`` configuration is set to ``true``. We now capture RSS memory
``report_stats`` configuration is set to ``true``. We now capture RSS memory
and cpu use at a very coarse level. This requires administrators to install
the optional ``psutil`` python module.
...
...
This diff is collapsed.
Click to expand it.
changelog.d/3985.misc
0 → 100644
+
1
−
0
View file @
abdc141c
Updated the installation instructions to point to the matrix-synapse package on PyPI.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment