Skip to content

Cannot figure out the release URL for continuous #65

Open

Description

@buddhi1980

For last two days I have folowing error message on TravisCl when used https://github.com/probonopd/uploadtool/raw/master/upload.sh to upload package to GitHub releases.

Cannot figure out the release URL for continuous

I have no clue what could be wrong. Has any of you similar problem or know the solution?
I used it for last year without any issues and I didn't make any changes in configuration of TravisCl or GitHub.

Full log from GitHub is following:

Please consider submitting your AppImage to AppImageHub, the crowd-sourced
central directory of available AppImages, by opening a pull request
at https://github.com/AppImage/appimage.github.io
Desktop file: /home/travis/build/buddhi1980/mandelbulber2/mandelbulber2/build/appdir/mandelbulber2.desktop
/home/travis/build/buddhi1980/mandelbulber2/mandelbulber2/build/appdir should be packaged as Mandelbulber_v2-16cc8ce-x86_64.AppImage
Size of the embedded runtime: 188456 bytes
Guessing update information based on $TRAVIS_TAG= and $TRAVIS_REPO_SLUG=buddhi1980/mandelbulber2
gh-releases-zsync|buddhi1980|mandelbulber2|continuous|Mandelbulber_v2*-x86_64.AppImage.zsync
updateinformation type: gh-releases-zsync
ui_offset: 175784
ui_length: 1024
--2020-09-12 16:34:28--  https://github.com/probonopd/uploadtool/raw/master/upload.sh
Resolving github.com (github.com)... 140.82.112.3
Connecting to github.com (github.com)|140.82.112.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/probonopd/uploadtool/master/upload.sh [following]
--2020-09-12 16:34:28--  https://raw.githubusercontent.com/probonopd/uploadtool/master/upload.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9755 (9.5K) [text/plain]
Saving to: ‘upload.sh’
     0K .........                                             100% 73.3M=0s
2020-09-12 16:34:28 (73.3 MB/s) - ‘upload.sh’ saved [9755/9755]
Running on Travis CI
TRAVIS_COMMIT: 16cc8ce83751ca8e08ca4a9c1617696fa308ea44
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   135  100   135    0     0    727      0 --:--:-- --:--:-- --:--:--   729
tag_infos: {
  "message": "Not Found",
  "documentation_url": "https://docs.github.com/enterprise/2.18/user/rest/reference/git#get-a-reference"
}
tag_sha: 
Getting the release ID...
release_url: https://api.github.com/repos/buddhi1980/mandelbulber2/releases/tags/continuous
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   126  100   126    0     0    807      0 --:--:-- --:--:-- --:--:--   812
release_infos: {
  "message": "Not Found",
  "documentation_url": "https://docs.github.com/rest/reference/repos#get-a-release-by-tag-name"
}
release ID: 
upload_url: 
release_url: 
target_commit_sha: 
TRAVIS_COMMIT != target_commit_sha, hence deleting continuous...
Delete the tag...
delete_url: https://api.github.com/repos/buddhi1980/mandelbulber2/git/refs/tags/continuous
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   132  100   132    0     0    811      0 --:--:-- --:--:-- --:--:--   814
{
  "message": "Reference does not exist",
  "documentation_url": "https://docs.github.com/rest/reference/git#delete-a-reference"
}
Create release...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   370  100   129  100   241    813   1520 --:--:-- --:--:-- --:--:--  1525
{
  "message": "Problems parsing JSON",
  "documentation_url": "https://docs.github.com/rest/reference/repos#create-a-release"
}
upload_url: 
release_url: 
Cannot figure out the release URL for continuous

Activity

  1. trevorsandy commented on Sep 12, 2020

    @trevorsandy

    Commit 0d90bbc broke the script.

    Workaround:
    Download an earlier revision - for example: 8142d46

    Cheers,

  2. buddhi1980 commented on Sep 13, 2020

    @buddhi1980
    Author

    Final solution was to add
    export UPLOADTOOL_ISPRERELEASE=true
    in travis.yml
    It fixed the problem

  3. trevorsandy commented on Sep 13, 2020

    @trevorsandy

    I don't think you should close this ticket.

    Commit 0d90bbc broke the script. If a user does not have UPLOADTOOL_ISPRERELEASE export var declared the script behaviour should handle that, it should not fail.

    Cheers,

  4. probonopd commented on Sep 13, 2020

    @probonopd
    Owner

    Thanks for analyzing @trevorsandy. This needs to be fixed indeed!

  5. probonopd commented on Sep 13, 2020

    @probonopd
    Owner

    @DamirPorobic can you please have a look at this? Thank you.

    In fact, we are running into this ourselves: https://travis-ci.org/github/probonopd/uploadtool/builds/726059036

  6. added a commit that references this issue on Sep 13, 2020
  7. probonopd commented on Sep 13, 2020

    @probonopd
    Owner

    Please retry. Sorry for the trouble caused.

  8. DamirPorobic commented on Sep 14, 2020

    @DamirPorobic
    Contributor

    Strange, didn't fail on my repos but thanks for fixing.

  9. buddhi1980 commented on Sep 14, 2020

    @buddhi1980
    Author

    What is funny, that now it doesn't work when export UPLOADTOOL_ISPRERELEASE=true is used
    Should I remove UPLOADTOOL_ISPRERELEASE?

    
    release ID: 31212779
    upload_url: https://uploads.github.com/repos/buddhi1980/mandelbulber2/releases/31212779/assets
    release_url: https://api.github.com/repos/buddhi1980/mandelbulber2/releases/31212779
    target_commit_sha: a04f6eb82c1a1ffc2e81a233401ac82591c39bce
    TRAVIS_COMMIT != target_commit_sha, hence deleting continuous...
    Delete the release...
    delete_url: https://api.github.com/repos/buddhi1980/mandelbulber2/releases/31212779
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
    Delete the tag...
    delete_url: https://api.github.com/repos/buddhi1980/mandelbulber2/git/refs/tags/continuous
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
    Create release...
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100   370  100   129  100   241    763   1426 --:--:-- --:--:-- --:--:--  1426
    {
      "message": "Problems parsing JSON",
      "documentation_url": "https://docs.github.com/rest/reference/repos#create-a-release"
    }
    upload_url: 
    release_url: 
    Cannot figure out the release URL for continuous
    The command "if [ "${TRAVIS_OS_NAME}" = "linux" ] && [ "${TRAVIS_EVENT_TYPE}" = "cron" ]; then
      cd ../../build
      
      make INSTALL_ROOT=appdir -j$(nproc) install ; find appdir/
      
      cp appdir/usr/share/icons/hicolor/256x256/apps/mandelbulber.png appdir/usr/share/icons/hicolor/256x256/apps/mandelbulber2.png || true # https://github.com/buddhi1980/mandelbulber2/issues/453#issuecomment-475412753
      
      wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
      chmod a+x linuxdeployqt-continuous-x86_64.AppImage
      
      unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH
      ./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -appimage -extra-plugins=iconengines,imageformats
      
      export UPLOADTOOL_ISPRERELEASE=true
      wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
      
      bash upload.sh Mandelbulber*.AppImage*
    fi
    " exited with 1.
    
  10. probonopd commented on Sep 14, 2020

    @probonopd
    Owner

    Yes, at least then it should be working again...

    @DamirPorobic can you please have another look at this? If else fails, I will have to revert to 8142d46.

  11. added a commit that references this issue on Sep 15, 2020
  12. buddhi1980 commented on Sep 15, 2020

    @buddhi1980
    Author

    Works almost properly again when deleted export UPLOADTOOL_ISPRERELEASE=true
    But now it is published as a Release instead of Pre-release. It is not correct.
    Originally by default everything was published as a pre-releases (drafts)

  13. probonopd commented on Sep 15, 2020

    @probonopd
    Owner

    Yes, we changed the default intentionally. Because otherwise the GitHub GUI hides the continuous builds away from view.

  14. 5 remaining items

  15. buddhi1980 commented on Sep 17, 2020

    @buddhi1980
    Author

    @DamirPorobic this script from your repository works perfect. I have just tested it with export UPLOADTOOL_ISPRERELEASE=true and it created pre-release.

  16. DamirPorobic commented on Sep 20, 2020

    @DamirPorobic
    Contributor

    There is a PR waiting to bring this change into this repo. @probonopd can you have a look?

  17. probonopd commented on Sep 20, 2020

    @probonopd
    Owner

    @buddhi1980 are you saying the latest version from this repository is still not working?

  18. buddhi1980 commented on Sep 20, 2020

    @buddhi1980
    Author

    Yes, it doesn't work when I use version from here. When I use version from DamirPorobic, everything works fine.

  19. probonopd commented on Sep 20, 2020

    @probonopd
    Owner

    When I use version from DamirPorobic, everything works fine.

    Also when you do NOT set UPLOADTOOL_ISPRERELEASE to anything? In this case, it should not be a prerelease. Can you confirm that works, too?

  20. buddhi1980 commented on Sep 20, 2020

    @buddhi1980
    Author

    without UPLOADTOOL_ISPRERELEASE it worked, but everything went to Releases. I was not able to set this flag, because script failed. I needed to post them as pre-releases

  21. buddhi1980 commented on Sep 20, 2020

    @buddhi1980
    Author

    By the way for backward compatibility by default all packages should be posted as drafts or pre-leseases. It was default behavior before these changes.

  22. probonopd commented on Sep 20, 2020

    @probonopd
    Owner

    By the way for backward compatibility by default all packages should be posted as drafts or pre-leseases. It was default behavior before these changes.

    Yes, and then GitHub started to hide the prereleases. Hence I changed the default.

  23. probonopd commented on Sep 20, 2020

    @probonopd
    Owner

    without UPLOADTOOL_ISPRERELEASE it worked, but everything went to Releases. I was not able to set this flag, because script failed

    Just to be clear, so you are saying the DamirPorobic version didn't work without UPLOADTOOL_ISPRERELEASE, "script failed"?

  24. buddhi1980 commented on Sep 20, 2020

    @buddhi1980
    Author

    Pre-releases are visible
    image

  25. DamirPorobic commented on Sep 20, 2020

    @DamirPorobic
    Contributor

    Same for me:
    image

  26. buddhi1980 commented on Sep 20, 2020

    @buddhi1980
    Author

    I havent tested DamirPorobic version without UPLOADTOOL_ISPRERELEASE. I tested it only with UPLOADTOOL_ISPRERELEASE = true.
    Version from here works without UPLOADTOOL_ISPRERELEASE, but fails when there is used UPLOADTOOL_ISPRERELEASE = true.

  27. buddhi1980 commented on Sep 20, 2020

    @buddhi1980
    Author

    It is very good that pre-releases are hidden on main page of repository:
    image

  28. donluca commented on Feb 28, 2023

    @donluca

    I'm having issues as well uploading to Github Releases.

    I've followed the steps in the Readme and I'm using the build.yml file for Minidexed and I'm getting this error in the logs:

    Getting the release ID...
    release_url: https://api.github.com/repos/donluca/MiniDexed/releases/tags/continuous
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    
      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
    100   126  100   126    0     0    577      0 --:--:-- --:--:-- --:--:--   577
    release_infos: {
      "message": "Not Found",
      "documentation_url": "https://docs.github.com/rest/reference/repos#get-a-release-by-tag-name"
    }
    release ID: 
    upload_url: 
    release_url: 
    target_commit_sha: 
    GIT_COMMIT != target_commit_sha, hence deleting continuous...
    Delete the tag...
    delete_url: https://api.github.com/repos/donluca/MiniDexed/git/refs/tags/continuous
      % 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 --:--:-- --:--:-- --:--:--     0
    100   1[46](https://github.com/donluca/MiniDexed/actions/runs/4294595583/jobs/7483841719#step:13:47)  100   146    0     0    559      0 --:--:-- --:--:-- --:--:--   557
    {
      "message": "Resource not accessible by integration",
      "documentation_url": "https://docs.github.com/rest/reference/git#delete-a-reference"
    }
    Create release...
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    
      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
    100   396  100   1[48](https://github.com/donluca/MiniDexed/actions/runs/4294595583/jobs/7483841719#step:13:49)  100   248    594    995 --:--:-- --:--:-- --:--:--  1590
    {
      "message": "Resource not accessible by integration",
      "documentation_url": "https://docs.github.com/rest/releases/releases#create-a-release"
    }
    upload_url: 
    release_url: 
    Cannot figure out the release URL for continuous
    Error: Process completed with exit code 1.
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions