Cozy drive fails to connect

backlog

#1

Hi,
After successfully setting up cozy on a virtual machine with a public IP, I downloaded cozy drive from the playstore on android. It asks me for the address of the cozy I want to use. I provide it with the URL I use to connect and cozy drive tells me this is not a cozy installation. I tried providing it drive.cozy.* instead but without success. When I give it the IP address it hangs forever.

Is there a way to debug that problem ?

Cheers


#2

Hello,

Cozy Drive for Android communicate with your server using https requests. So the URL of your server must be reachable from a public network, and a valid TLS certificate is required. Are you able to connect to you server on the browser of your phone?


#3

The instance is https://cozy.dachary.org and it is using a public IP. I confirm the web browser of the android phone displays the page. The instance was installed yesterday using instructions at https://docs.cozy.io/fr/install/debian/ (it just needed a little help to find the relevant repository: https://apt.cozy.io/nightly/debian/ stretch unstable).


#4

What is the recommended way for me to troubleshoot this situation ? It says this is beta so I’m not shocked by a little debug.


#6

Yes, that’s what I do. I type cozy.dachary.org and I do not type https://cozy.dachary.org. Is there a way to get more information about the error ? How do you suggest I debug this problem ?


#7

Maybe looking at the logs of the reverse proxy, on the server side, to see if requests send by the mobile application hit the server.


#8

Here is what I get with tcpdump -nnXSs 0 'port 443’

18:52:27.837918 IP 90.92.128.134.44778 > 54.37.30.223.443: Flags [P.], seq 2234965679:2234966060, ack 1427317471, win 214, options [nop,nop,TS val 8910090 ecr 94880093], length 381
	0x0000:  4500 01b1 796d 4000 3406 9bf3 5a5c 8086  E...ym@.4...Z\..
	0x0010:  3625 1edf aeea 01bb 8536 deaf 5513 22df  6%.......6..U.".
	0x0020:  8018 00d6 2e79 0000 0101 080a 0087 f50a  .....y..........
	0x0030:  05a7 c15d 1703 0301 7800 0000 0000 0000  ...]....x.......
	0x0040:  0443 93c4 a8fc bba3 b88e bdb1 1688 b881  .C..............
	0x0050:  5671 1053 1592 d7b1 6920 69f7 89d0 f555  Vq.S....i.i....U
	0x0060:  e371 ab6f 8c15 7c64 a465 2db6 76dc 4ccf  .q.o..|d.e-.v.L.
	0x0070:  4739 24ba 12b9 6f2a bea3 fbc9 c4f7 bda2  G9$...o*........
	0x0080:  5856 be8f 1e25 d0d6 9b81 05bf 3640 6073  XV...%......6@`s
	0x0090:  6b3f 1e65 b48c a317 a7d4 3068 b50d 4ec8  k?.e......0h..N.
	0x00a0:  26ec 2fc5 b768 2d3f e7be 349e e74b 726e  &./..h-?..4..Krn
	0x00b0:  ad3c 63e9 6efa fb61 93ff 01eb 0809 6fb8  ...)...:..
	0x0120:  5471 762d 6e6d 1ec3 0db8 a43a 4354 f3d9  Tqv-nm.....:CT..
	0x0130:  26d9 b393 1ec9 5775 4415 b28d 3a28 dd66  &.....WuD...:(.f
	0x0140:  100b f7ed f94f e4f3 b1d9 0983 ebc7 c36d  .....O.........m
	0x0150:  56fd f7f0 0b0d 3e4b 743d 5391 150e 614c  V.....>Kt=S...aL
	0x0160:  9ff5 b455 cc91 033c f596 359a 1973 6557  ...U...<..5..seW
	0x0170:  e559 02c5 db1a 2394 4e71 bb42 17eb 4f95  .Y....#.Nq.B..O.
	0x0180:  7a8c a9dd f611 1913 bef3 b2c3 418f fe17  z...........A...
	0x0190:  8a01 271d ac15 0750 4ecd 0670 0688 dcea  ..'....PN..p....
	0x01a0:  d24f 0da8 602f 5114 e080 a8d9 8ec2 0219  .O..`/Q.........
	0x01b0:  71                                       q
18:52:27.850332 IP 54.37.30.223.443 > 90.92.128.134.44778: Flags [P.], seq 1427317471:1427318040, ack 2234966060, win 269, options [nop,nop,TS val 94883958 ecr 8910090], length 569
	0x0000:  4500 026d 7572 4000 4006 9332 3625 1edf  E..mur@.@..26%..
	0x0010:  5a5c 8086 01bb aeea 5513 22df 8536 e02c  Z\......U."..6.,
	0x0020:  8018 010d 3246 0000 0101 080a 05a7 d076  ....2F.........v
	0x0030:  0087 f50a 1703 0302 348f e009 e610 588f  ........4.....X.
	0x0040:  24b0 0619 4535 933f 9002 7e3a 8cf4 fb75  $...E5.?..~:...u
	0x0050:  afa8 baac 97f6 ef3d 6e23 1736 f981 d43f  .......=n#.6...?
	0x0060:  7851 4cee 422d 955f 6a7a b591 0f07 d6f1  xQL.B-._jz......
	0x0070:  02bf 58ca 564d c494 0816 b338 ae3e ef88  ..X.VM.....8.>..
	0x0080:  ff10 fdaa 5933 7a44 4a12 1be0 32a4 48f2  ....Y3zDJ...2.H.
	0x0090:  6ecd faeb c129 1c9d 748d 15ea 75e3 67bb  n....)..t...u.g.
	0x00a0:  342f 3b58 948b 4310 77d0 b063 6538 4850  4/;X..C.w..ce8HP
	0x00b0:  8447 ffaf 5263 c85c 6fee 8cb8 e335 1a25  .G..Rc.\o....5.%
	0x00c0:  d6ff 34e2 ba9a 3cb0 9323 b380 b96e 1998  ..4...<..#...n..
	0x00d0:  f9fe e311 a0b8 10ba 5850 0101 3f2d 64d6  ........XP..?-d.
	0x00e0:  7aad 5850 0a03 4f7f 6863 27b6 f577 9a48  z.XP..O.hc'..w.H
	0x00f0:  16aa 6615 9297 cfb8 fa47 b47b b377 3894  ..f......G.{.w8.
	0x0100:  7af1 77d5 c01a 3d0c 337f 1d1b fad8 fd59  z.w...=.3......Y
	0x0110:  3c02 58da 621e 97b3 d141 cac1 9ff4 1524  <.X.b....A.....$
	0x0120:  cd9d 2031 a706 b5a3 4b86 f4a9 bfc4 7c5e  ...1....K.....|^
	0x0130:  0b96 b7c9 a6d6 c6db 6e13 7aee e13b 620d  ........n.z..;b.
	0x0140:  96e0 68c8 6fa6 5c60 6869 26b1 b3e3 36cc  ..h.o.\`hi&...6.
	0x0150:  de78 2f97 c8fe 82e8 6b09 5e08 3685 5e94  .x/.....k.^.6.^.
	0x0160:  f1fb 4d9c bf7a fcae f926 6a6c 3652 1e7b  ..M..z...&jl6R.{
	0x0170:  604b 1fa4 675d a583 9e3d 4154 2398 e4e4  `K..g]...=AT#...
	0x0180:  edaa db83 b450 8343 afec ff0a 1175 bb5a  .....P.C.....u.Z
	0x0190:  3860 9654 441b d214 9635 099a a8c9 85c3  8`.TD....5......
	0x01a0:  275e e048 d015 ef16 648e cfb8 0e9d b1d6  '^.H....d.......
	0x01b0:  218a 1185 3049 056a 673c db59 a0b8 5344  !...0I.jg<.Y..SD
	0x01c0:  8edf 7d23 9e47 5b43 8387 5b76 84af 5e16  ..}#.G[C..[v..^.
	0x01d0:  ce32 7bc0 09b1 965f cbc6 4807 e147 be95  .2{...._..H..G..
	0x01e0:  06d9 b6ff b941 03e3 c20d ea59 254f 1bf4  .....A.....Y%O..
	0x01f0:  f619 9df3 0f43 6025 711d b77f dd92 692b  .....C`%q.....i+
	0x0200:  e892 1f8b 8cb2 3dac b7f9 9117 d8f5 e39b  ......=.........
	0x0210:  b1bb 3446 2f9f b22e adee 045f 74eb d5a4  ..4F/......_t...
	0x0220:  8797 c261 caba e4d9 505c d665 4d5e 3ffa  ...a....P\.eM^?.
	0x0230:  e4d1 3322 1011 6d5f 27b1 60a3 ebb7 2301  ..3"..m_'.`...#.
	0x0240:  3b7f c976 2b7c d4df 8083 0399 76b2 ee31  ;..v+|......v..1
	0x0250:  56ca d46b 341d 97e0 3fbe 582c d719 0ac2  V..k4...?.X,....
	0x0260:  03aa 0572 7e61 6e16 da5d 2278 78         ...r~an..]"xx
18:52:27.860909 IP 90.92.128.134.44778 > 54.37.30.223.443: Flags [.], ack 1427318040, win 223, options [nop,nop,TS val 8910097 ecr 94883958], length 0
	0x0000:  4500 0034 796e 4000 3406 9d6f 5a5c 8086  E..4yn@.4..oZ\..
	0x0010:  3625 1edf aeea 01bb 8536 e02c 5513 2518  6%.......6.,U.%.
	0x0020:  8010 00df ea0c 0000 0101 080a 0087 f511  ................
	0x0030:  05a7 d076                                ...v

In nginx logs only one line:

==> /var/log/nginx/cozy.dachary.org.log <==
90.92.128.134 - - [02/Nov/2017:18:48:43 +0000] “GET /status/ HTTP/1.1” 200 36 “-” “Mozilla/5.0 (Linux; Android 4.4.4; GT-I9305 Build/KTU84P) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36”

And nothing shows in /var/log/cozy/*.log. Is there anywhere else I should look for clues ?