Error when installing a new cask

(Khaldoon Mutahar) #1

Im trying to make a new cask all test that I have done have cleared the only problem is that when trying to install it fails

cask 'calendar366-ii' do
  version '2.6.0'
  sha256 '44f297342e5a29486c4ef21b246c073ec59928de52bd4b9b3939fee8a919e424'

  url "{version}.dmg"
  name 'Calendar 366 II'
  homepage ''

  app 'Calendar 366'

doing brew cask install calendar366-ii
I get the folllowing error after the download is marked at 100%

curl: (56) Unexpected EOF
Error: Download failed on Cask 'calendar366-ii' with message: Download failed:

Trying the command a second time and anytime after that I get the following error.

curl: (22) The requested URL returned error: 416
Error: Download failed on Cask 'calendar366-ii' with message: Download failed:

At this point Im not sure if the problem is with the cask itself, the location of download or my internet (But I have tried it with a VPN and with out just incase).

Going to the download URL directly using a browsers does work and it downloads with no error.

(Sean Molenaar) #2

What happens when you run curl -v Because it seems your connection is interrupting the download.

(Khaldoon Mutahar) #3

I get the following

$ curl -v
*   Trying
* Connected to ( port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/cert.pem
  CApath: none
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-CHACHA20-POLY1305
* ALPN, server accepted to use h2
* Server certificate:
*  subject: CN=*
*  start date: Mar  8 01:00:30 2019 GMT
*  expire date: Jun  6 01:00:30 2019 GMT
*  subjectAltName: host "" matched cert's ""
*  issuer: C=US; O=Let's Encrypt; CN=Let's Encrypt Authority X3
*  SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x7f83f9806600)
> GET /downloads/Calendar366_v2.6.0.dmg HTTP/2
> Host:
> User-Agent: curl/7.54.0
> Accept: */*
* Connection state changed (MAX_CONCURRENT_STREAMS updated)!
< HTTP/2 200
< date: Fri, 15 Mar 2019 06:59:07 GMT
< server: Apache
< last-modified: Tue, 12 Mar 2019 11:06:10 GMT
< etag: "da69f0-583e3ad3bf232"
< content-length: 14313968
< cache-control: max-age=2592000, public
< expires: Sun, 14 Apr 2019 06:59:07 GMT
< content-type: application/x-apple-diskimage
< x-varnish: 104204051 29655205
< age: 11759
< via: 1.1 varnish (Varnish/6.1)
< accept-ranges: bytes

Then for a couple of seconds something like this

BZh11AY&SY�с'F� 1
6�1;Uk�ܑN$-�`I�BZh11AY&SY��p���P��BH���� u=Q����Ѡi�R��M\g��(^]	\�*��	 H�0H+������=�4C�����~�S���A�Τ"��w$S�
                       � @HA�DLB@
4���sLL&&0J�jdhL��ш=��&����[���z�j`,m@@���&8�A�	i������b��戴�\��k�*�ז��K�h�F��3G�*�#�1�'tS!��A!A�c����@���^��-��L>Q�'�d1(>�	!�@|��u�) �=Sv�E�Y-+�J�7��֚Q*��
4hi�M�@�4���4Lis�]�Z�5�+w.��k���Wj���xDB	��a2i��
�@���z�h�x���@��BY2���ze"$�b��m�""ȶD[%H �f����/��hG����F�D�M
                                                 ;�u1�l���פ�ؖ���Ձռ�̗���,�T���"u�� �]dńXD�!�d�ne����'�N��bL�ʒİD�,��L��2ԯ{�`/��ъ�uzs�b��A��h���V�pDT.�D��$�dE
                    ��D�y�/�o%���U�r�3�3?;���c�/-��L�������^�����'b�i��d����C$�o~�+C)��@�:�1���	9@�
��Fp��g$�USQ�U_M�o+2ֵ��;??����O�}�#�a�7F 233$O��k��
                                            jبTD���BªA-U�RU�Z��������)BDHYH��,���m�!al!b$���>��{�G����3+	L����ΘQ�e��y��T��>��+�8�Тhђڴ�$�%钪������˯�>W5�����0�1jK=�>�p�w?�q��]'#��pd��QmW�<\�>�k�q~��	�E���o�]T7(>9�k�cio�w4���_�����dMD;ؖ�jddZ�[o��.`MM,<u�~ٯc
�B���\o3�T����z�>�����#�ՕG� t��J��T�����#�#���Pm�/%|��)���䌐�QK�Z5[�5CاLy�@B���,�
}�(`�:�p �-	?��a����Ww���OT����E��^�����·x'
~;nw�k�e�$u�<��}U�P[�î�W�a�6����X�6�`�أ���b���ptn����f�7�۹��ը�SvЂ]Lp�zL�>������rq��u���8,�R��޽s}Z<��Ӎ��wj���y��1�U͟$D�㡜��iu��B���s��s,�}�Bp����Y����w$�.%�Q����k�qK�dAk��wI����ɺ�hޭ�Y��LK�e���z�:��J���QuA��Ԣnd���*�Sf�^��o7^��][aZjF�H$<�m'u��$��	"�,�TQ�**ZE*J��	% "H���H��	!�$�iR�ZT�eH��� -�+�H�!7�f�t���MLDU��e���4��+R�>�\S��{���Y�ca���&*��o6�dX��*|ju���K��vh��5_S��~�m��7���^����;����t�U����҂0�&ҿ=�a�v'q��

So not sure what that is

at the end it says curl: (56) Unexpected EOF

(Sean Molenaar) #4

that’s the actual content of the file, it seems to be ending the connection before the transfer can complete though. What happens when you remove the cache ~/Library/Caches/Homebrew and try again?

(Khaldoon Mutahar) #5

There doesnt to be an actualy file in the ~/Library/Caches/Homebrew but there is a file in ~/Library/Caches/Homebrew/downloads called 08689d20382d1649640eae86106d812d9c955de8bd9a4747d060430a624e432e--Calendar366_v2.6.0.dmg.incomplete even if i delete it and try again its the same problem and the same file comes again