Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation problem. Trying to fetch pro package from git not from backpackforlaravel repository #5044

Closed
scotchegg opened this issue Apr 21, 2023 · 10 comments
Assignees

Comments

@scotchegg
Copy link

scotchegg commented Apr 21, 2023

Bug report

What I did

Fresh installation from your instructions for the pro version

What I expected to happen

Instalation without any errors

What happened

WE keep getting the following errors

In Git.php line 457:

Failed to execute git clone --mirror -- 'https://ghp...7Ej:[email protected]/Laravel-Backpack/PRO.git' '/home/ubuntu/.cache/composer/vcs/git-github.com-Laravel-Backpack-PRO.git/'

Cloning into bare repository '/home/ubuntu/.cache/composer/vcs/git-github.com-Laravel-Backpack-PRO.git'...
remote: Repository not found.
fatal: repository 'https://github.com/Laravel-Backpack/PRO.git/' not found

What I've already tried to fix it

??

Is it a bug in the latest version of Backpack?

After I run composer update backpack/crud the bug... is it still there?
yes

Backpack, Laravel, PHP, DB version

PHP 8.1 & 8.2 Laravel 9.5.2
When I run php artisan backpack:version the output is:

@welcome
Copy link

welcome bot commented Apr 21, 2023

Hello there! Thanks for opening your first issue on this repo!

Just a heads-up: Here at Backpack we use Github Issues only for tracking bugs. Talk about new features is also acceptable. This helps a lot in keeping our focus on improving Backpack. If you issue is not a bug/feature, please help us out by closing the issue yourself and posting in the appropriate medium (see below). If you're not sure where it fits, it's ok, a community member will probably reply to help you with that.

Backpack communication channels:

  • Bug Reports, Feature Requests - Github Issues (here);
  • Quick help (How do I do X) - Gitter Chatroom;
  • Long questions (I have done X and Y and it won't do Z wtf) - Stackoverflow, using the backpack-for-laravel tag;
  • Showing off something you've made, asking for opinion on Backpack/Laravel matters - Reddit;

Please keep in mind Backpack offers no official / paid support. Whatever help you receive here, on Gitter, Slack or Stackoverflow is thanks to our awesome awesome community members, who give up some of their time to help their peers. If you want to join our community, just start pitching in. We take pride in being a welcoming bunch.

Thank you!

--
Justin Case
The Backpack Robot

@scotchegg scotchegg changed the title [Bug] Installtion / GIT [Bug] Apr 21, 2023
@scotchegg scotchegg changed the title Installtion / GIT [Bug] Installation / GIT [Bug] Apr 21, 2023
@pxpm
Copy link
Contributor

pxpm commented Apr 21, 2023

Hello @scotchegg thanks for raising the issue.

Please make sure you have followed the installation instructions either by running the command php artisan backpack:require:pro or manually.

In any case the problem seems to be with the repository, it shouldn't be trying the github repository (as you don't have access), but our own repository (where you have access).

Check if your composer.json have the following, if not please add it and try again composer require backpack/pro

"repositories": [
        {
            "type": "composer",
            "url": "https://repo.backpackforlaravel.com/"
        }
    ],

Also make sure you already set the backpack auth user/token as described in docs. composer config http-basic.backpackforlaravel.com [your-token-username] [your-token-password]

Let me know if you have any issues.

@pxpm pxpm changed the title Installation / GIT [Bug] Installation problem. Trying to fetch pro package from git not from backpackforlaravel repository Apr 21, 2023
@pxpm pxpm self-assigned this Apr 21, 2023
@pxpm pxpm added Wait Response and removed triage labels Apr 21, 2023
@pxpm pxpm moved this to In Progress in This week Apr 21, 2023
@tabacitu
Copy link
Member

Hey @scotchegg ,

I see you haven't answered yet, so I assume you fixed the problem.
Let us know if you still have it and we'll reopen.

Cheers!

@github-project-automation github-project-automation bot moved this from In Progress to Done in This week Apr 27, 2023
@tabacitu tabacitu removed this from This week Jun 19, 2023
@hirenvjoshi
Copy link

I am still getting following error. I followed all the instructions but still facing the issue.

In Git.php line 471:

Failed to execute git clone --mirror -- https://ghp...AXf:[email protected]/Laravel-Backpack/PRO.git C:/Users/username/AppData/Local/Composer/vcs/git-github.com-Laravel-Backpack-PRO.git/

Cloning into bare repository 'C:/Users/username/AppData/Local/Composer/vcs/git-github.com-Laravel-Backpack-PRO.git'...
remote: Repository not found.
fatal: repository 'https://github.com/Laravel-Backpack/PRO.git/' not found

Kindly let me know what is the issue?

@tabacitu
Copy link
Member

tabacitu commented Nov 9, 2023

Hi @hirenvjoshi ,

Sounds like you are trying to download PRO from source (from our Github). You cannot do that, you don't have access to that. What you have access to is our repository - repo.backpackforlaravel.com. That's where Git should try to download from.

Please check if you are doing prefer-source anywhere in your GIT. Either in the command you run manually, or in your composer.json. To clarify, you shouldn't do prefer-source, you should do prefer-dist. You don't have access to the PRO source.

If you still can't find the culprit please take a screenshot of your entire terminal when you run this, with the command you ran and your entire error stack - that might show us more information about the problem.

Cheers!

@hirenvjoshi
Copy link

backpro-error
Kindly find attached the error I am getting even after using perfer-dist.

@hirenvjoshi
Copy link

hirenvjoshi commented Nov 9, 2023

Here is my composer.josn file:

composerjson

I have also added credentials and token in auth.js

@tabacitu
Copy link
Member

tabacitu commented Nov 9, 2023

I see you're getting a 402 error before that - Could not be downloaded (HTTP/2 402).

402 error means "payment required" so most likely what happened is that you do not have access to the latest updates. When that happens, and you try to install: our system sends you an email detailing that you should do composer require backpack/pro:"1.x.y" (exactly the latest version you have access to) or to buy backpack/pro again to get 12 more months of updates.

Please check your email, you should have an email from our system with the exact last version you have access to, and the code you should run. You can also look inside your account, and in your Tokens page you can see when your token access has expired.

To be clear, you DO still have access to the version you purchased, and 12 months of updates and upgrades after that. You just don't have access to updates after that point, unless you purchase backpack/pro again.

Hope it helps.
Cheers!

@hirenvjoshi
Copy link

hirenvjoshi commented Nov 10, 2023

I am not getting the exact version information from my token page. Here is the screen shot of token page.

tokenpage

Even after trying composer require backpack/pro:"^1.0" I am getting same error.

I am trying to install it on my local system running on windows.

@tabacitu
Copy link
Member

tabacitu commented Nov 10, 2023

Hi @hirenvjoshi ,

I've just added a new Tab there, "Packages", which will show you the last version you have access to. It should look like this if you click refresh:
image

(this isn't your version, it's a screenshot from a dummy account. please hit refresh in your Tokens page)

Hope it helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants