Skip to content

Container fails to start: route:cache LogicException (duplicate route name products.show) causes Octane to crash / Web UI blank #92

@metallus42

Description

@metallus42

Description

When starting the cybrarist/discount-bandit container on Unraid, the initialization runs migrations + seed successfully, but then fails during route caching with a Laravel LogicException. As a result, Octane repeatedly exits (status 2) and Supervisor eventually gives up, leaving the Web UI unreachable/blank.

This seems to be caused by two routes sharing the same route name (products.show), one of which is temp/products/{product}.

Environment
• Image: cybrarist/discount-bandit:latest
• Host OS: Unraid 9.2.3
• Architecture: x86_64
• Reverse proxy: none
• DB: mysql (external container)
Connection works: migrations + seeding complete successfully.

Steps to reproduce
1. Deploy cybrarist/discount-bandit container (fresh install)
2. Start container
3. Observe logs: dependencies install, migrations/seed run, then route caching fails
4. Web UI is not accessible (blank / nothing served)

Expected behavior

Container should start successfully and expose the Web UI.

Actual behavior

Route caching fails with:

Unable to prepare route [temp/products/{product}] for serialization. Another route has already been assigned name [products.show].

Then Octane repeatedly exits and Supervisor gives up, so nothing is served.

Logs (relevant excerpt)

INFO  Preparing database.
Creating migration table ....................................... DONE

INFO  Running migrations.
... (multiple migrations) ... DONE

INFO  Seeding database.
Database\Seeders\CurrencySeeder ................................. DONE
Database\Seeders\StoreSeeder .................................... DONE

INFO  Caching framework bootstrap, configuration, and metadata.
config ........................................................ DONE
events ......................................................... DONE
routes ........................................................ FAIL

LogicException
Unable to prepare route [temp/products/{product}] for serialization. Another route has already been assigned name [products.show].

at vendor/laravel/framework/src/Illuminate/Routing/AbstractRouteCollection.php:248
...

supervisord started ...
spawned: 'octane' ...
WARN exited: octane (exit status 2; not expected)
...
gave up: octane entered FATAL state, too many start retries too quickly

In case u need anny more input or i should try some stuff... just let me know!

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