weixin_39907311
2021-01-08 20:52 阅读 4

collider build failed

Browsers and versions affected browser:chrome

Description After I run go test collider,there is some log below:


collider
../../go/src/collider/dashboard_test.go:35: Errorf format %d has arg expected of wrong type string
../../go/src/collider/room_test.go:89: Errorf format %v reads arg #4, but call has only 3 args
FAIL    collider [build failed]

Steps to reproduce 1.go get collidermain 2.go install collidermain 3.generate ssh certificate 4.run go test collider

该提问来源于开源项目:webrtc/apprtc

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

14条回答 默认 最新

  • weixin_40004212 weixin_40004212 2021-01-08 20:52

    Any update on this issue? Having the same prob.

    Also, running the server also fails for me using tls: $GOPATH/bin/collidermain -port=8089 -tls=true

    2018/05/20 09:48:35 Starting collider: tls = true, port = 8089, room-server=https://appr.tc 2018/05/20 09:48:35 Run: open /cert/cert.pem: no such file or directory

    Could anyone please help? Thanks in advance.

    点赞 评论 复制链接分享
  • weixin_39800062 weixin_39800062 2021-01-08 20:52

    Hi, same cast issue here with the Errorf.

    you probably forgot to create a certificate, like:

    sh
    sudo mkdir -p /cert
    sudo openssl req -x509 -newkey rsa:2048 -keyout /cert/key.pem -out /cert/cert.pem -days 99999 -nodes
    
    点赞 评论 复制链接分享
  • weixin_39519741 weixin_39519741 2021-01-08 20:52

    Did anyone resolve this?

    点赞 评论 复制链接分享
  • weixin_39637256 weixin_39637256 2021-01-08 20:52

    Hello I have the same error

    ~$ go test collider

    collider

    /src/collider/dashboard_test.go:35: Errorf format %d has arg expected of wrong type string /src/collider/room_test.go:89: Errorf format %v reads arg #4, but call has only 3 args

    the certificate created collidermain starting work but on client webrtc WebSocket connection to 'wss://test.realmax.fi:8089/ws' failed: Error in connection establishment: net::ERR_CERT_AUTHORITY_INVALID

    点赞 评论 复制链接分享
  • weixin_39767121 weixin_39767121 2021-01-08 20:52

    Hi, same cast issue here with the Errorf.

    you probably forgot to create a certificate, like:

    shell
    sudo mkdir -p /cert
    sudo openssl req -x509 -newkey rsa:2048 -keyout /cert/key.pem -out /cert/cert.pem -days 99999 -nodes
    

    Thank you, I did it, just: sudo chmod -R a+r /cert/

    点赞 评论 复制链接分享
  • weixin_39914107 weixin_39914107 2021-01-08 20:52

    Hi! excuse me, any update on this error? I am having the same issue.

    I already created the certificates and when I run $go test collider

    crashes with the message:

    collider ../../../../../../Educational/go/src/collider/dashboard_test.go:35:3: Errorf format %d has arg expected of wrong type string ../../../../../../Educational/go/src/collider/room_test.go:89:3: Errorf format %v reads arg #4, but call has 3 args FAIL collider [build failed]

    点赞 评论 复制链接分享
  • weixin_39767121 weixin_39767121 2021-01-08 20:52

    i didn't run this test

    On Tue, Aug 13, 2019, 20:31 Eliomar Conde wrote:

    Hi! excuse me, any update on this error? I am having the same issue.

    I already created the certificates and when I run $go test collider

    crashes with the message:

    collider ../../../../../../Educational/go/src/collider/dashboard_test.go:35:3: Errorf format %d has arg expected of wrong type string ../../../../../../Educational/go/src/collider/room_test.go:89:3: Errorf format %v reads arg #4 https://github.com/webrtc/apprtc/issues/4, but call has 3 args FAIL collider [build failed]

    — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/webrtc/apprtc/issues/556?email_source=notifications&email_token=ACELXBAWOE5E4HCPD5BW773QEKZUVA5CNFSM4E6OA3MKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4FVD5Q#issuecomment-520835574, or mute the thread https://github.com/notifications/unsubscribe-auth/ACELXBH2LPIWH5GFADJYWWTQEKZUVANCNFSM4E6OA3MA .

    点赞 评论 复制链接分享
  • weixin_39914107 weixin_39914107 2021-01-08 20:52

    but you could use the collider program normally? I mean it is not mandatory for the operation of the program?

    点赞 评论 复制链接分享
  • weixin_39767121 weixin_39767121 2021-01-08 20:52

    Yes, I just did following readme manual page of collinder. But you should attention about path of project, I build successfully on ubuntu >= 16.04, you should search this keyword [hieu19926, einsteinarbert, collinder] in google, here is my tree directory: [root goWorkspace]# tree -L 3 /cert/cert.pem /cert/key.pem . ├── bin │ └── collidermain ├── collider.log ├── nohup.out ├── pkg │ └── linux_386 │ └── golang.org ├── src │ ├── collider -> /root/uav-project/apprtc/src/collider/src/collider │ ├── collidermain -> /root/uav-project/apprtc/src/collider/src/collidermain │ ├── collidertest -> /root/uav-project/apprtc/src/collider/src/collidertest │ ├── golang.org │ │ └── x │ └── nohup.out └── start.sh

    in .bashrc:

    export GOROOT=/root/uav-project/go export GOPATH=/root/uav-project/goWorkspace export GOBIN=$GOROOT/bin export PATH=$PATH:$GOBIN:$GOPATH

    Vào Th 4, 14 thg 8, 2019 vào lúc 09:13 Eliomar Conde < notifications.com> đã viết:

    but you could use the collider program normally? I mean it is not mandatory for the operation of the program?

    — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/webrtc/apprtc/issues/556?email_source=notifications&email_token=ACELXBD5CMLAPBXKPB4UC4LQENS6NA5CNFSM4E6OA3MKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4HPZHY#issuecomment-521075871, or mute the thread https://github.com/notifications/unsubscribe-auth/ACELXBEGQ4UEWAR7APKVES3QENS6NANCNFSM4E6OA3MA .

    点赞 评论 复制链接分享
  • weixin_39767121 weixin_39767121 2021-01-08 20:52

    But now when I deploy apprtc on google cloud, I can connect via chrome of Android without any error but My android native app can't connect, collinder error shown: 2019/08/15 16:52:00 http: TLS handshake error from 117.6.160.102:18961: remote error: tls: unknown certificate I don't know why because in my server using dev test to run Apprtc, Andriod worked perfect. Difference is in my server, I used my cert file, but in google cloud I don't use any thing, the domain auto switch to https: https://my-project-id.appspot.com

    点赞 评论 复制链接分享
  • weixin_39767121 weixin_39767121 2021-01-08 20:52

    cert.pem file is a full chain file (join public and private key into one text file cert.pem) :

    SSL Collider: /cert/

    Collider using full chain file: -----BEGIN CERTIFICATE----- (Your Primary SSL certificate: your_domain_name.crt) -----END CERTIFICATE----- -----BEGIN RSA PRIVATE KEY----- (Your Private Key: your_domain_name.key) -----END RSA PRIVATE KEY-----

    SSL Apprtc: config command direct to /root/ssl/

    Aprtc using full.pem file. Structure of full.pem (full chain cert file): -----BEGIN RSA PRIVATE KEY----- (Your Private Key: your_domain_name.key) -----END RSA PRIVATE KEY----- -----BEGIN CERTIFICATE----- (Your Primary SSL certificate: your_domain_name.crt) -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- (Your Intermediate certificate: Chain_RootCA_Bundle.crt) -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- (Your Root certificate: Chain_RootCA_Bundle.crt) -----END CERTIFICATE-----

    SSL turnserver: config in /etc/turnserver.conf to /root/ssl/

    点赞 评论 复制链接分享
  • weixin_39767121 weixin_39767121 2021-01-08 20:52

    Dont using google deploy, just using your VPS server, -- tobe continue update late....--

    点赞 评论 复制链接分享
  • weixin_39840733 weixin_39840733 2021-01-08 20:52

    But now when I deploy apprtc on google cloud, I can connect via chrome of Android without any error but My android native app can't connect, collinder error shown: 2019/08/15 16:52:00 http: TLS handshake error from 117.6.160.102:18961: remote error: tls: unknown certificate I don't know why because in my server using dev test to run Apprtc, Andriod worked perfect. Difference is in my server, I used my cert file, but in google cloud I don't use any thing, the domain auto switch to https: https://my-project-id.appspot.com

    Same issue. I just used these commands to generate certificate.

    
    sudo mkdir -p /cert
    sudo openssl req -x509 -newkey rsa:2048 -keyout /cert/key.pem -out /cert/cert.pem -days 99999 -nodes
    

    Do you know how to solve this?

    点赞 评论 复制链接分享
  • weixin_39767121 weixin_39767121 2021-01-08 20:52

    just buy a real cert for your server. In Android, we must to use real cert file.

    Vào Th 4, 5 thg 8, 2020 vào lúc 13:21 wcxdhr đã viết:

    But now when I deploy apprtc on google cloud, I can connect via chrome of Android without any error but My android native app can't connect, collinder error shown: 2019/08/15 16:52:00 http: TLS handshake error from 117.6.160.102:18961: remote error: tls: unknown certificate I don't know why because in my server using dev test to run Apprtc, Andriod worked perfect. Difference is in my server, I used my cert file, but in google cloud I don't use any thing, the domain auto switch to https: https://my-project-id.appspot.com

    Same issue. I just used these commands to generate certificate.

    sudo mkdir -p /cert sudo openssl req -x509 -newkey rsa:2048 -keyout /cert/key.pem -out /cert/cert.pem -days 99999 -nodes

    Do you know how to solve this?

    — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/webrtc/apprtc/issues/556#issuecomment-669004545, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACELXBGKB4B7KRC7QAHZFDDR7D26VANCNFSM4E6OA3MA .

    点赞 评论 复制链接分享

相关推荐