Code Monkey home page Code Monkey logo

Comments (16)

driesvints avatar driesvints commented on June 11, 2024

Most likely a duplicate of laravel/jetstream#1454.

Does the same thing happen with Sail and Breeze but without Octane?

from octane.

sts-ryan-holton avatar sts-ryan-holton commented on June 11, 2024

The suggestion in there for now is to add something to the providers.php file. Do I need to add the Octane service provider here as a temp workaround? There's no published service provider within the providers directory 👁️

from octane.

driesvints avatar driesvints commented on June 11, 2024

Can you please try what I asked?

from octane.

driesvints avatar driesvints commented on June 11, 2024

Gonna close this as this most likely is a duplicate of the above. We've also probably got a fix in soon: laravel/framework#50665

from octane.

sts-ryan-holton avatar sts-ryan-holton commented on June 11, 2024

@driesvints I've just tested what you've described, I've removed the Octane integration from my Docker compose file whilst still using Sail and the default PHP artisan server. Also note, I have upgraded to Laravel 11.0.8 which was released a few minutes ago.

Without Octane (commenting this out)

# SUPERVISOR_PHP_COMMAND: "/usr/bin/php -d variables_order=EGPCS /var/www/html/artisan octane:start --server=swoole --host=0.0.0.0 --port=80 --watch"
  • ✅ Everything works fine, I tried three consecutive requests in a row

With Octane

SUPERVISOR_PHP_COMMAND: "/usr/bin/php -d variables_order=EGPCS /var/www/html/artisan octane:start --server=swoole --host=0.0.0.0 --port=80 --watch"
  • ❌ The error persists

@jessarcher Thoughts?

from octane.

driesvints avatar driesvints commented on June 11, 2024

@sts-ryan-holton could you try with opcache disabled? We merged laravel/sail#684 in but still need to tag. If that solves things for you I'll tag a new release.

from octane.

sts-ryan-holton avatar sts-ryan-holton commented on June 11, 2024

How might I do that with Laravel Sail?

from octane.

driesvints avatar driesvints commented on June 11, 2024

Publish the runtime files with sail:publish, do the same changes as in the PR and rebuild the images.

from octane.

sts-ryan-holton avatar sts-ryan-holton commented on June 11, 2024

Standby, currently building without opcache...

from octane.

sts-ryan-holton avatar sts-ryan-holton commented on June 11, 2024

Okay, everything has been built with opcache disabled as per that PR. Launched the project again with Octane, and still getting the error:

Target [Illuminate\Contracts\Routing\ResponseFactory] is not instantiable while building

[Illuminate\Routing\ViewController].
built
opcache-disabled
Screenshot 2024-03-21 at 15 09 54

Guessing then that this isn't opcache related, but rather something else? :(

from octane.

driesvints avatar driesvints commented on June 11, 2024

I tried your steps with latest sail and I don't get the error. I recommend you start from a fresh project, without any docker images/containers and try again.

from octane.

sts-ryan-holton avatar sts-ryan-holton commented on June 11, 2024

The project is only 2 days old 👁️

from octane.

sts-ryan-holton avatar sts-ryan-holton commented on June 11, 2024

If it helps, here's my composer.json file

{
    "name": "laravel/laravel",
    "type": "project",
    "description": "The skeleton application for the Laravel framework.",
    "keywords": ["laravel", "framework"],
    "license": "MIT",
    "require": {
        "php": "^8.2",
        "hashids/hashids": "5.0.2",
        "laravel/framework": "11.0.8",
        "laravel/octane": "2.3.5",
        "laravel/tinker": "^2.9",
        "livewire/livewire": "3.4.9",
        "livewire/volt": "1.6.3",
        "pion/laravel-chunk-upload": "1.5.3"
    },
    "require-dev": {
        "fakerphp/faker": "^1.23",
        "laravel/breeze": "2.0.0",
        "laravel/pint": "^1.13",
        "laravel/sail": "1.29.*",
        "laravel/telescope": "5.0.*",
        "mockery/mockery": "^1.6",
        "nunomaduro/collision": "^8.0",
        "phpunit/phpunit": "^11.0",
        "spatie/laravel-ignition": "^2.4"
    },
    "autoload": {
        "psr-4": {
            "App\\": "app/",
            "Database\\Factories\\": "database/factories/",
            "Database\\Seeders\\": "database/seeders/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        }
    },
    "scripts": {
        "post-autoload-dump": [
            "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover --ansi"
        ],
        "post-update-cmd": [
            "@php artisan vendor:publish --tag=laravel-assets --ansi --force"
        ],
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate --ansi",
            "@php -r \"file_exists('database/database.sqlite') || touch('database/database.sqlite');\"",
            "@php artisan migrate --graceful --ansi"
        ]
    },
    "extra": {
        "laravel": {
            "dont-discover": [
                "laravel/telescope"
            ]
        }
    },
    "config": {
        "optimize-autoloader": true,
        "preferred-install": "dist",
        "sort-packages": true,
        "allow-plugins": {
            "pestphp/pest-plugin": true,
            "php-http/discovery": true
        }
    },
    "minimum-stability": "stable",
    "prefer-stable": true
}

from octane.

sts-ryan-holton avatar sts-ryan-holton commented on June 11, 2024

This issue is still persisting despite updating to newer package versions

from octane.

sts-ryan-holton avatar sts-ryan-holton commented on June 11, 2024

Same as: https://laracasts.com/discuss/channels/livewire/laravel-sail-with-octane-swoole-and-breeze-and-when-i-log-out-an-error-occurs

from octane.

indigoram89 avatar indigoram89 commented on June 11, 2024

The same error right now after I installed Octane with FrankenPHP. Without it everything works fine. I also use Livewire.

from octane.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.