laravel / nova-issues

556 stars 34 forks source link

Problems updating to 3.4 #2523

Closed mxm1070 closed 4 years ago

mxm1070 commented 4 years ago

Description:

I was trying to update Nova from 3.3.2 to 3.4 and I ran into this problem in composer:

Package operations: 0 installs, 5 updates, 0 removals
  - Removing laravel/nova (v3.3.2)
  - Installing laravel/nova (3.0.x-dev 73f71a3): Downloading (failed)    Failed to download laravel/nova from dist: The "https://api.github.com/repos/laravel/nova/zipball/73f71a38401dfbdfd6130a0fcc392a9c621b4e45" file could not be downloaded (HTTP/1.1 404 Not Found)
    Now trying to download from source
  - Installing laravel/nova (3.0.x-dev 73f71a3): The authenticity of host 'github.com (140.82.112.3)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)? yes
Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos

I followed the steps to generate a token and used it and it did update to 3.4 according to the footer in the UI. But in composer it now says I'm on laravel/nova 3.0.x-dev 73f71a3 and I feel like that might cause a problem in the future.

ilvalerione commented 4 years ago

Hi, same issue here:

Immagine

davidhemphill commented 4 years ago

Hi there! I republished the version's distribution just in case, and created a fresh Laravel install. I was able to install Nova according to the documentation. Please try again!

mxm1070 commented 4 years ago

I tried updating again, but it still wants to update to the dev branch. I removed the composer requirement, the vendor folder, and composer.lock entry and I was able to get it to attempt an install of 3.4, but now I'm running into the issue from #2516.

ilvalerione commented 4 years ago

404 file not found persist.

Immagine

jbrooksuk commented 4 years ago

What does your composer.json file look like? Please make sure you follow the installation instructions at https://nova.laravel.com/docs/3.0/installation.html#installing-nova-via-composer

ilvalerione commented 4 years ago

Here is my composer file:

    "repositories": [
        {
            "type": "composer",
            "url": "https://nova.laravel.com"
        }
    ],

Dependencies:

        "php": "^7.2",
        "fideloper/proxy": "^4.2",
        "laravel/cashier": "^11.0",
        "laravel/framework": "^7.0",
        "laravel/horizon": "^4.0",
        "laravel/nova": "~3.0",
        "laravel/passport": "^8.4",
        "laravel/tinker": "^2.0"
ilvalerione commented 4 years ago

I have forced horizon to the previous version:

"laravel/horizon": "4.2.1"

that depends from cakephp/chronos ^1.0 and the composer installation process go further.

DougSisk commented 4 years ago

Having the same issue. Adding "cakephp/chronos": "^1.0" to my composer.json fixed it for me.

beebmx commented 4 years ago

I have the same issue with 3.4.0

And I also have horizon in the project.

poldixd commented 4 years ago

Same issue here.

I have "laravel/nova": "~3.0" in my composer.json and I only get the Version 3.0.x-dev 73f71a3.

$ composer show
[...]
cakephp/chronos                         2.0.3
[...]
laravel/framework                       v7.6.2 
laravel/helpers                         v1.2.0
laravel/horizon                         v4.3.0
laravel/nova                            3.0.x-dev 73f71a3
laravel/passport                        v8.4.3
laravel/scout                           v8.0.0 
laravel/socialite                       v4.3.0
laravel/tinker                          v2.4.0
laravel/ui                              v2.0.1
[...]

I deleted the composer.lock and the vendorfolder and executed composer install but I had no success.

- Installing laravel/nova (3.0.x-dev 73f71a3): Downloading    Failed to download laravel/nova from dist: The "https://api.github.com/repos/laravel/nova/zipball/73f71a38401dfbdfd6130a0fcc392a9c621b4e45" file could not be downloaded (HTTP/1.1 404 Not Found)
gaejabong commented 4 years ago

I have the same issue, too.

larsjanssen6 commented 4 years ago

Same here

ruslansteiger commented 4 years ago

Try to set the next higher version range. This worked for me: "laravel/nova": "~3.4"

The operator ~3.4 is equivalent to >=3.4 <4.0.0. This means you still will get further minor and patch updates.

I have tried "laravel/nova": "~3.0" like it is recommended in the documentation. But I also got the 3.0.x-dev branch out of it. Maybe it should be updated in the documentation to use a higher version range.

jaap115 commented 4 years ago

I tried updating again, but it still wants to update to the dev branch. I removed the composer requirement, the vendor folder, and composer.lock entry and I was able to get it to attempt an install of 3.4, but now I'm running into the issue from #2516.

I'm running into the same issue. I can update to 3.4 but then running in to #2516 again

name     : laravel/nova
descrip. : A wonderful administration interface for Laravel.
keywords : admin, laravel
versions : * v3.4.0
type     : library
license  : MIT License (MIT) (OSI approved) https://spdx.org/licenses/MIT.html#licenseText
source   : [git] git@github.com:laravel/nova.git 08bfcfe836310f1492e8bd81f7457d2c961fd00c
dist     : [zip] https://nova.laravel.com/dist/laravel/nova/laravel-nova-08bfcfe836310f1492e8bd81f7457d2c961fd00c-zip-3fffb4.zip 08bfcfe836310f1492e8bd81f7457d2c961fd00c
names    : laravel/nova

autoload
psr-4
Laravel\Nova\ => src/

requires
brick/money ^0.4.2
cakephp/chronos ^1.0
doctrine/dbal ^2.9
ext-intl *
illuminate/support ^7.0
laravel/ui ^2.0
moontoast/math ^1.1
php ^7.2.5
spatie/once ^1.1 | ^2.0
symfony/console ^5.0
symfony/finder ^5.0
symfony/intl ^5.0
symfony/process ^5.0

requires (dev)
mockery/mockery ^1.0
orchestra/testbench ^5.0
phpunit/phpunit ^8.4
predis/predis ^1.1
bobbybouwmann commented 4 years ago

@davidhemphill @jbrooksuk Why is this issue closed?

We hit the same issues with installing the dependencies. I believe a good solution has been provided in #2516 already. Let me know if I can help in any way!

gerardnll commented 4 years ago

Still running into this issue... I'm also using horizon if that helps..

Using Nova: '~3.0' updates it to '3.0.x-dev 73f71a' and allows Horizon to be at 4.3.0 Using Nova: '^3.4', makes horizon downgrade to 4.2.1 (from 4.3.0) and Chronos to 1.30 (from 2.0.3)

...
    "config": {
        "preferred-install": "dist",
        "sort-packages": true,
        "optimize-autoloader": true,
        "private": true
    },
    "minimum-stability": "dev",
    "prefer-stable": true
}
justindantzer commented 4 years ago

This is currently working for me

"require": {
    ...
    "laravel/horizon": "^4.0",
    "laravel/nova": "~3.4",
    ...
}
cakephp/chronos                        1.3.0
...
laravel/framework                      v7.7.0
laravel/horizon                        v4.2.1
laravel/nova                           v3.4.0
benyarb commented 4 years ago

Also had this issue. Composer update with ~3.0 tries to install 3.0.x-dev 73f71a3 and gets a "Repository not found" error. Composer update with ~3.4 installs correctly.

daugaard47 commented 4 years ago

Not sure it this helps or not, but for some reason upgrading to this latest version caused a 404 error every time I tried to access the login screen. Tried all the update this and composer that stuff... I uninstalled/reinstalled twice. 404 every time.

Nothing worked, but I could see all the routes were there with a route check.

Fixed it with a workaround by adding the login route to my web routes.

Route::get('/nova', 'Laravel\Nova\Http\Controllers\LoginController@showLoginForm');

Works on artisan serve and with laragon. Haven't tried in production yet due to this error.

JohnRoux commented 4 years ago

Same issue here. I used "laravel/horizon": "4.2.1" to get around it but would really like a fix

souri84 commented 4 years ago

same issue now :/ i tested cakephp/chronos fix but it's not working for me :/

petethewizard commented 2 years ago

I keep getting:

` [RuntimeException]
Failed to execute git clone --mirror -- 'https://ghp...5iF:x-oauth-basic@github.com/laravel/nova.git' '/home/petar/.cache/composer/vcs/gi
t-github.com-laravel-nova.git/'

Cloning into bare repository '/home/petar/.cache/composer/vcs/git-github.com-laravel-nova.git'...
remote: Repository not found.
fatal: repository 'https://github.com/laravel/nova.git/' not found `

on windows 10 using php 8.0 with composer install why is it trying to pull it from git GitHub?

GalahadXVI commented 2 years ago

I keep getting:

` [RuntimeException] Failed to execute git clone --mirror -- 'https://ghp...5iF:x-oauth-basic@github.com/laravel/nova.git' '/home/petar/.cache/composer/vcs/gi t-github.com-laravel-nova.git/'

Cloning into bare repository '/home/petar/.cache/composer/vcs/git-github.com-laravel-nova.git'... remote: Repository not found. fatal: repository 'https://github.com/laravel/nova.git/' not found `

on windows 10 using php 8.0 with composer install why is it trying to pull it from git GitHub?

Try adding your nova credentials to auth.json

{
  "http-basic": {
    "nova.laravel.com": {
            "username": "email here",
            "password": "licence here"
    }
}
HassanElshazlyEida commented 2 years ago
  1. Create file at root directory with name "auth.json"
  2. copy your nova credentials to it
    {
    "http-basic": {
        "nova.laravel.com": {
            "username": "email",
            "password": "passsword"
        }
    }
    }
  3. composer update