Skip to content

Fatal Error: Uncaught exception "PharExcepetion" #70

Open

Description

@richcaputo

When I run php git-deploy I keep getting this error:

`Fatal error: Uncaught exception 'PharException' with message 'phar "/Users/RichardCaputo/GitHub/sst-dashboard/git-deploy" SHA1 signature could not be verified: broken signature' in /Users/RichardCaputo/GitHub/sst-dashboard/git-deploy:5
Stack trace:
#0 /Users/RichardCaputo/GitHub/sst-dashboard/git-deploy(5): Phar::mapPhar('git-deploy')
#1 {main}

thrown in /Users/RichardCaputo/GitHub/sst-dashboard/git-deploy on line 5`

Activity

  1. pocketarc commented on Jun 24, 2016

    @pocketarc
    Owner

    Ooh, that's really odd. I'll have a look at it. Which PHP version are you using? Not that I think it makes a difference, but maybe it does.

  2. richcaputo commented on Jun 24, 2016

    @richcaputo
    Author

    It is running on AWS EC2 - PHP Version 5.6.13

    If I understand your readme correctly: I only need the git-deploy (on root) and then setup my ftp credentials in the initial.ini (on root) and then run php git-deploy from command line

  3. pocketarc commented on Jun 24, 2016

    @pocketarc
    Owner

    Yes, everything should work fine. Sounds like the git-deploy file is corrupted, from your error message. I'm going to try and clone the repo and try and see if there's anything wrong with it.

  4. richcaputo commented on Jun 24, 2016

    @richcaputo
    Author

    If I look at the file in Sublime, I see sections like this:

    screen shot 2016-06-24 at 2 51 38 pm

  5. pocketarc commented on Jun 24, 2016

    @pocketarc
    Owner

    That's expected; it's a zipped Phar file so it makes sense that it's unreadable.

  6. richcaputo commented on Jun 24, 2016

    @richcaputo
    Author

    Ok. Let me know if you find anything out, I'm anxious to get this working. Thanks for you help.

  7. pocketarc commented on Jun 26, 2016

    @pocketarc
    Owner

    I've just tried it and had no problems; is it possible that the file's been corrupted or maybe changed by Git, or something (on Windows, you have that whole LF to CRLF thing, and FTP/SFTP clients do that too sometimes, so if you uploaded with FTP, that might be the issue)?

    If it is indeed something like that, you might be able to resolve it by adding this to your php.ini:

    phar.require_hash=0
    

    The error you got indicates that the file you have has been modified. It seems to be fine when I make a clean clone, and it seems to be fine for the hundreds of people who are using it and have starred it, so I'm hoping you'll be able to fix it with the above php.ini change.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions