Friday, January 18, 2019
grimoire@muc.metronome.im
January
Mon Tue Wed Thu Fri Sat Sun
  1
2 3 4
5 6
7
8
9
10 11 12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 27
28 29 30 31      
             
Metronome IM "cook" book room | Support and Dev talk about the Metronome XMPP server.

Latest stable version build is: 4.0.3

For more information you can visit: https://metronome.im

Room logs can be found here: https://muc.metronome.im/logs/grimoire/

* Links *
<==========================================================>
- Building & Installation:
https://metronome.im/building
- Documentation:
https://metronome.im/documentation
- Issues Tracker:
https://github.com/maranda/metronome/issues
<==========================================================>

[21:15:05] <massimiliano> hi Maranda.
[21:15:21] <massimiliano> I have nginx part up and running now
[21:15:29] <massimiliano> :-)
[21:15:48] <Maranda> Nice
[21:15:49] <Maranda> :)
[21:16:08] <massimiliano> now i have error pf mismatch token. secret string double checked
[21:17:03] <massimiliano> my logs whe i try to upload 2 times in a row same file
[21:17:05] <massimiliano> 2019/01/18 22:08:40 [error] 4478#4478: *348 FastCGI sent in stderr: "PHP message: Token mismatch: calculated 94815afc504c0e530ab878bb91c169421dda2ca0e737981a4ca7929ab4c3d770 got 9015f512778020dc1814e881fb474453db348247fb0497ef402ae52687692aee" while reading response header from upstream, client: 83.134.70.209, server: upload.insurge.org, request: "PUT /PKKetVSIyEGd5720/14.jpg?token=9015f512778020dc1814e881fb474453db348247fb0497ef402ae52687692aee HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "upload.insurge.org"
2019/01/18 22:12:49 [error] 4476#4476: *391 FastCGI sent in stderr: "PHP message: Token mismatch: calculated 94815afc504c0e530ab878bb91c169421dda2ca0e737981a4ca7929ab4c3d770 got a646b8d5c44138b5b92ffc561d0be273c2e540b6f93f3e6b26aba6088b11c2e1" while reading response header from upstream, client: 83.134.70.209, server: upload.insurge.org, request: "PUT /o9ScBwB4jHBx5969/14.jpg?token=a646b8d5c44138b5b92ffc561d0be273c2e540b6f93f3e6b26aba6088b11c2e1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "upload.insurge.org"
[21:17:33] <massimiliano> share.php always calculates the sam hash
[21:17:42] <massimiliano> same
[21:19:09] <massimiliano> while gajim or conversations changes each time
[21:22:09] <massimiliano> Maranda, i am still on topic right?
[23:26:06] <Maranda> massimiliano: the secret configured into the php script doesn't match the one configured in Metronome
[23:26:19] <Maranda> There's no other possibility
[23:27:06] <Maranda> Otherwise Gajim is not uploading with the mime it requested
[23:27:17] <Maranda> But it's unlikely
[23:27:51] <massimiliano> I simplified to just secret for testing purpose in both metronome conf and php script

[23:29:08] <Maranda> Check you didn't mess with different encodings, it's not possible
[23:29:55] <Maranda> The only other way it will mismatch it's that Gajim is sending with the wrong mime
[23:30:09] <Maranda> (or not sending with a mime)
[23:30:29] <massimiliano> I alsi tested with converations
[23:31:20] <Maranda> Then nginx is messing with headers
[23:31:23] <massimiliano> The thing i don't understand is why the php script always do the same hash while conversations and gajim changes
[23:31:32] <massimiliano> Ok
[23:32:13] <massimiliano> Maranda: i will check my configuration further
[23:32:18] <massimiliano> Thanks
[23:37:33] <Maranda> np