!BNzCLICNIgvxBJqcKM:nixos.dev

nixos.dev meta discussions

45 Members
Make sure your GitHub Organisation membership is public as otherwise the login will not work.6 Servers

Load older messages


SenderMessageTime
5 Jun 2022
@winterqt:nixos.devWinter (she/her)Anyone have any idea why I'd be getting logged out from this Element instance every few weeks-ish?01:34:28
9 Jun 2022
@winterqt:nixos.devWinter (she/her) andi-: Did you happen to clear history at some point in the past few months? I lost a bunch of DMs for example. 12:54:06
@andir:nixos.devAndreas Rammholdnope12:54:26
@andir:nixos.devAndreas RammholdThe server purges channels that has nobody in them every once in a while. As long as you are in your DMs you should have access.12:54:54
@winterqt:nixos.devWinter (she/her)nope, i lost like, all my DMs :/12:59:19
@winterqt:nixos.devWinter (she/her) there was also an error while viewing one of the DMs that suffered this fate, that may shed some light onto something? "Tried to load a specific point in this room's timeline, but you do not have permission to view the message in question." 13:32:43
@winterqt:nixos.devWinter (she/her)a new room had to be made entirely :/13:33:03
@winterqt:nixos.devWinter (she/her) andi-: apologies for poking again, but is there any way you could like, go back and see how this could've possibly happened somehow? if not that's fine, this is just a bit concerning and i hope it doesn't happen again. thanks! 15:01:28
16 Jul 2022
@squalus:nixos.dev@squalus:nixos.dev joined the room.17:41:16
31 Jul 2022
@yusdacra:nixos.devdusk changed their profile picture.13:35:00
3 Aug 2022
@lassulus:nixos.dev@lassulus:nixos.devfor some weird reason all profile pictures disappeared08:13:39
@lassulus:nixos.dev@lassulus:nixos.devor maybe it's just me08:13:58
@andir:nixos.devAndreas RammholdInteresting. I updated the server yesterday.11:59:57
@andir:nixos.devAndreas RammholdTo this supposedly stable NixOS (very experimental distro, not sure if you heard of it ;-))12:00:16
@andir:nixos.devAndreas RammholdIt certainly logs a ton about remote media fetching12:02:00
@andir:nixos.devAndreas RammholdI'll try to give this a closer look in the evening.12:03:39
15 Aug 2022
@aciceri:nixos.devzrsksame problem here10:11:38
@andi:kack.itandi-mhmm10:13:04
@andi:kack.itandi-I'll give this another look. Kinda busy these days :(10:13:16
@andi:kack.itandi-
[pid 2176054] mkdir("/persist/synapse/media_store/remote_content/matrix.org/GA/IC", 0777) = 0
[pid 2176054] openat(AT_FDCWD, "/persist/synapse/media_store/remote_content/matrix.org/GA/IC/QcaoFfMrZVjPzVMmGdMS", O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC, 0666) = 220
[pid 2176054] close(220)                = 0
[pid 2176054] unlink("/persist/synapse/media_store/remote_content/matrix.org/GA/IC/QcaoFfMrZVjPzVMmGdMS") = 0

It tries to create the thumbnails whenever you request them. Then for some reason unlinks them. The log isn't really helpful :/

13:16:47
@andi:kack.itandi-

Retrival seems to work just fine..

download/kack.it/lhUtWiwebKiPYXZCWEpPBglQ?allow_remote=false
Aug 15 13:20:35 matrix synapse[2176054]: synapse.http.server: [GET-5857] <XForwardedForRequest at 0x7fa72ec4fc10 method='GET' uri='/_matrix/media/r0/thumbnail/kack.it/lhUtWiwebKiPYXZ
CWEpPBglQ?width=100&height=100&method=crop' clientproto='HTTP/1.0' site='8448'> SynapseError: 404 - Not found
Aug 15 13:20:35 matrix synapse[2176054]: synapse.access.http.8448: [GET-5857] ..... - 8448 - {None} Processed request: 0.076sec/0.001sec (0.008sec, 0.001sec) (0.003sec/0.003sec/3) 45
B 404 "GET /_matrix/media/r0/thumbnail/kack.it/lhUtWiwebKiPYXZCWEpPBglQ?width=100&height=100&method=crop HTTP/1.0" "Mozilla/5.0 (X11; Linux x86_64; rv:103.0) Gecko/20100101 Firefox/1
03.0" [0 dbevts]
13:21:45
@andi:kack.itandi-Just whatever it does to the thumbnails afterwards (maybe the cropping?!?) doesn't work13:22:10
@andir:nixos.devAndreas RammholdHah, the config has "dynamic_thumbnails = false". .. lets see if toggling this fixes it13:23:06
@andi:kack.itandi-Nope :(13:25:10
@andi:kack.itandi-Sorry for all the restart of the service... binary search through the call stack :|14:10:37
@andir:nixos.devAndreas Rammhold
Aug 15 15:18:48 matrix synapse[2181664]: synapse.rest.media.v1.thumbnail_resource: [GET-24790] Retrieving remote media info
Aug 15 15:18:49 matrix synapse[2181664]: synapse.http.matrixfederationclient: [GET-24790] {GET-O-27641} [matrix.org] Completed: 200 OK [104209 bytes] GET matrix://matrix.org/_matrix/media/r0/download/matrix.org/srlqxFAKBkrEcrXIZfXemWPp?allow_remote=false
Aug 15 15:18:49 matrix synapse[2181664]: synapse.rest.media.v1.thumbnail_resource: [GET-24790] Failed to retrieve remote media info: 404: Not found

Added a bunch of logging and apparently it doesn't reach out to the remote server but fails to find it locally. Perhaps the database think it still has a copy but there isn't one.. Will continue later.

15:19:42
@andi:kack.itandi-

Finally a proper backtrace :|

Aug 15 18:08:06 matrix synapse[2186199]: synapse.rest.media.v1.thumbnail_resource: [GET-232] Failed to retrieve remote media info: 404: Not found
                                         Traceback (most recent call last):
                                           File "/nix/store/kxnc94gdrd9r8dh7cfy2dgpfcyzpr7cv-python3.9-Twisted-22.4.0/lib/python3.9/site-packages/twisted/internet/defer.py", line 1660, in _inlineCallbacks
                                             result = current_context.run(gen.send, result)
                                         StopIteration: {'media_type': 'image/jpeg', 'media_length': 30382, 'upload_name': '638836.jpg', 'created_ts': 1625419217683, 'filesystem_id': 'OhNgumzWouNcFiHqjTArWbPX', 'quarantined_by': None}
                                         
                                         During handling of the above exception, another exception occurred:
                                         
                                         Traceback (most recent call last):
                                           File "/nix/store/mp9vi8b1hqnfxi7bpdc30g22j1kdxiax-matrix-synapse-1.64.0/lib/python3.9/site-packages/synapse/rest/media/v1/thumbnail_resource.py", line 205, in _select_or_generate_remote_thumbnail
                                             media_info = await self.media_repo.get_remote_media_info(server_name, media_id)
                                           File "/nix/store/mp9vi8b1hqnfxi7bpdc30g22j1kdxiax-matrix-synapse-1.64.0/lib/python3.9/site-packages/synapse/rest/media/v1/media_repository.py", line 328, in get_remote_media_info
                                             responder, media_info = await self._get_remote_media_impl(
                                           File "/nix/store/mp9vi8b1hqnfxi7bpdc30g22j1kdxiax-matrix-synapse-1.64.0/lib/python3.9/site-packages/synapse/rest/media/v1/media_repository.py", line 403, in _get_remote_media_impl
                                             await self._generate_thumbnails(
                                           File "/nix/store/mp9vi8b1hqnfxi7bpdc30g22j1kdxiax-matrix-synapse-1.64.0/lib/python3.9/site-packages/synapse/rest/media/v1/media_repository.py", line 739, in _generate_thumbnails
                                             input_path = await self.media_storage.ensure_media_is_in_local_cache(
                                           File "/nix/store/mp9vi8b1hqnfxi7bpdc30g22j1kdxiax-matrix-synapse-1.64.0/lib/python3.9/site-packages/synapse/rest/media/v1/media_storage.py", line 262, in ensure_media_is_in_local_cache
                                             raise NotFoundError()
                                         synapse.api.errors.NotFoundError: 404: Not found

18:08:49
@andir:nixos.devAndreas RammholdThis sounds vaguely related: https://github.com/matrix-org/synapse/commit/7b67e93d499cb45f7217e9dfea046ed8b5c455fd21:11:57
@andir:nixos.devAndreas RammholdI'll investigate more tomorrow..21:12:03
16 Aug 2022
@andir:nixos.devAndreas Rammhold set a profile picture.10:49:02

Show newer messages


Back to Room ListRoom Version: 6