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

Can't install app with cron jobs but without cache #147

Open
dmekhov opened this issue Jul 6, 2024 · 1 comment
Open

Can't install app with cron jobs but without cache #147

dmekhov opened this issue Jul 6, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@dmekhov
Copy link

dmekhov commented Jul 6, 2024

In case when I choose

Do you want to use Cache component?
[1] Yes
[0] No
Make your selection (default: 0):

and

Do you need a cron jobs scheduler?
[1] Yes
[0] No
Make your selection (default: 0): 1

I've got an error:

> php app.php encrypt:key -m .env
[Spiral\Core\Exception\Container\NotFoundException]
Can't resolve `Spiral\Scheduler\JobsLocatorInterface`: undefined class or binding `Spiral\Cache\CacheStorageProviderInterface`.
Container trace list:
- action: 'resolve from binding'
  alias: 'Spiral\Scheduler\JobsLocatorInterface'
  scope: 'root'
  context: Parameter #0 [ <required> Spiral\Scheduler\JobsLocatorInterface $locator ]
  binding: Alias to `Spiral\Scheduler\JobsLocator`
  - action: 'resolve from binding'
    alias: 'Spiral\Scheduler\JobsLocator'
    scope: 'root'
    context: Parameter #0 [ <required> Spiral\Scheduler\JobsLocatorInterface $locator ]
    binding: Deferred factory 'Spiral\Scheduler\Bootloader\SchedulerBootloader'->initJobsLocator()
    - action: 'resolve from binding'
      alias: 'Spiral\Scheduler\Mutex\JobMutexInterface'
      scope: 'root'
      context: Parameter #1 [ <required> Spiral\Scheduler\Mutex\JobMutexInterface $mutex ]
      binding: Deferred factory 'Spiral\Scheduler\Bootloader\SchedulerBootloader'->initEventMutex()
      - action: 'autowire'
        alias: 'Spiral\Cache\CacheStorageProviderInterface'
        context: Parameter #0 [ <required> Spiral\Cache\CacheStorageProviderInterface $provider ]
in vendor/spiral/framework/src/Core/src/Internal/Factory.php:359
Script php app.php encrypt:key -m .env handling the post-create-project-cmd event returned with error code 255
@roxblnfk roxblnfk added the bug Something isn't working label Jul 6, 2024
@roxblnfk roxblnfk assigned roxblnfk and msmakouz and unassigned roxblnfk Jul 6, 2024
@roxblnfk
Copy link
Member

roxblnfk commented Jul 6, 2024

@msmakouz looks like there is no binding for Spiral\Cache\CacheStorageProviderInterface

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants