Skip to content

heimdall.sh and bor.sh failing on Ubuntu #41

Description

@SatpalSandhu61

System details:
6.11.0-25-generic #25~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 15 17:20:50 UTC 2 x86_64 GNU/Linux

Running the heimdall install command:
curl -L https://raw.githubusercontent.com/maticnetwork/install/main/heimdall.sh | bash -s -- v1.2.3 amoy sentry

Gives:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  7733  100  7733    0     0  29402      0 --:--:-- --:--:-- --:--:-- 29515
https://github.com/maticnetwork/heimdall/releases/download/v1.2.3
downloading heimdall binary package for  from 'https://github.com/maticnetwork/heimdall/releases/download/v1.2.3/heimdall-v1.2.3-amd64.deb' to '/tmp/heimdall-temp-dir-aguIc7P3DXk'...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Warning: Failed to open the file 
Warning: /tmp/heimdall-temp-dir-aguIc7P3DXk/heimdall-v1.2.3-amd64.deb: No such 
Warning: file or directory
  0 44.7M    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (23) client returned ERROR on write of 16375 bytes
bash: failed to download 'https://github.com/maticnetwork/heimdall/releases/download/v1.2.3/heimdall-v1.2.3-amd64.deb'

The failed to download error goes away if I use a local copy of heimdall.sh which is modified to use the --create-dirs option in the curl command, but then the download file still doesn't appear to be created and it fails to install.

I only managed to install heimdall using a modified heimdall.sh which uses the local directory instead of mktemp.

The same issue applies to bor.sh.

NB: I could have carried on looking into the issue, but ran out of time. If I have a chance I'll come back to this and try to fix the root cause.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions