Bug 1662672
Summary: | Why synapse folder became owned by root after release upgrade ? | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Matteo <matteo> |
Component: | matrix-synapse | Assignee: | Jeremy Cline <jeremy> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 29 | CC: | jcline, jeremy |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | matrix-synapse-0.34.0.1-3.fc28 matrix-synapse-0.34.0.1-3.fc29 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-02-04 11:13:19 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Matteo
2018-12-31 13:47:23 UTC
Hello, Just to inform that i did a dnf update and this break again my synapse installation. So the problem appears to be also in a simple "dnf update". Can you check on this because breaking my system on each dnf update is not normal. Thanks Hey Matteo, Sorry, this got lost in the storm of email I went through after the holidays. Looking at the specfile, I would expect the initial installation to mark /etc/synapse as owned by root and that would continue with every upgrade. However, I suppose it should be owned by the synapse user. Is that what you're changing the owner to? Hey Jeremy, No problem, i know that storm ^^ So yes the problem is that because if this folder is owned by root, then you should run synapse with root user and it's a security issue. To get back on working with synapse user i have to apply the following command after update: sudo chown -R synapse: /etc/synapse Matrix-synapse admins have confirmed to me that it should run with the synapse user. Okay, great. I've updated Rawhide so /etc/synapse and the config files are owned by synapse and I'll file Bodhi updates shortly (which will close out the bug when it goes to stable). Please test the update and let me know if you have any problems. matrix-synapse-0.34.0.1-3.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-99d7d217d6 matrix-synapse-0.34.0.1-3.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2019-d38643cfa9 OK sure, How have i to test ? i wait for an upgrade in dnf ? Or should i enable testing repo ? I'm on fedora 29 It should be available in the updates-testing repository sometime tomorrow or you can also download it directly from the build at https://koji.fedoraproject.org/koji/buildinfo?buildID=1182011. You can install it with "dnf update --enablerepo=updates-testing matrix-synapse" when it arrives in the repository. Ok, As soon as the testing repo is updated, i'll do the test and i'll come here to give you the result. Thanks matrix-synapse-0.34.0.1-3.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-d38643cfa9 matrix-synapse-0.34.0.1-3.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-99d7d217d6 Hi Jeremy, I saw that the package is pushed but dnf says me no update to do: sudo dnf update --enablerepo=updates-testing matrix-synapse Last metadata expiration check: 0:00:46 ago on ven. 25 janv. 2019 10:30:54 CET. Dependencies resolved. Nothing to do. Complete! For information: sudo uname -a Linux melis 4.19.10-300.fc29.x86_64 #1 SMP Mon Dec 17 15:34:44 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux What should i do ? Hey Matteo, It's likely resolved at this point, but you often need to refresh your metadata when pulling updates that just got pushed out. Adding the "--refresh" flag to dnf will make it fetch the update metadata again. Hey Jeremy, Indeed the --refresh did the trick. I can confirm that it's ok. No more change of owner after the update. I restarted also the synapse server to be sure, and no problem. Big thanks to you Great, glad to hear it. This bug will get closed automatically when the update arrives in the stable repositories. matrix-synapse-0.34.0.1-3.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report. matrix-synapse-0.34.0.1-3.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report. |