Skip to content

Roadrunner cannot start, broken by #601 #602

@saulens22

Description

@saulens22
  • Octane Version: 1.3.4
  • Laravel Version: 9.37.0
  • PHP Version: 8.1.11
  • RoadRunner: 2.11.4
  • Database Driver & Version: not relevant

Description:

When not setting log level in octane:roadrunner command, RoadRunner fails to start. Setting it fixes the problem, but the parameter logLevel should be optional.

Here's error log:


    INFO  Server running…
   Local: http://0.0.0.0:80
   Press Ctrl+C to stop the server
    ERROR  2022-10-26T03:33:05.409+0300 ERROR   container/init.go:75    error calling internal_init     {"id": "config.Plugin", "error": "config_plugin_init: value should not be empty"}
    ERROR  github.com/roadrunner-server/endure/pkg/container.(*Endure).callInitFn
    ERROR       github.com/roadrunner-server/endure@v1.4.5/pkg/container/init.go:75
    ERROR  github.com/roadrunner-server/endure/pkg/container.(*Endure).internalInit
    ERROR       github.com/roadrunner-server/endure@v1.4.5/pkg/container/init.go:25
    ERROR  github.com/roadrunner-server/endure/pkg/container.(*Endure).Initialize
    ERROR       github.com/roadrunner-server/endure@v1.4.5/pkg/container/endure.go:404
    ERROR  reflect.Value.call
    ERROR       reflect/value.go:584
    ERROR  reflect.Value.Call
    ERROR       reflect/value.go:368
    ERROR  github.com/roadrunner-server/endure/pkg/fsm.(*FSMImpl).Transition
    ERROR       github.com/roadrunner-server/endure@v1.4.5/pkg/fsm/fsm.go:180
    ERROR  github.com/roadrunner-server/endure/pkg/container.(*Endure).Init
    ERROR       github.com/roadrunner-server/endure@v1.4.5/pkg/container/endure.go:314
    ERROR  github.com/roadrunner-server/roadrunner/v2/internal/cli/serve.NewCommand.func1
    ERROR       github.com/roadrunner-server/roadrunner/v2/internal/cli/serve/command.go:60
    ERROR  github.com/spf13/cobra.(*Command).execute
    ERROR       github.com/spf13/cobra@v1.5.0/command.go:872
    ERROR  github.com/spf13/cobra.(*Command).ExecuteC
    ERROR       github.com/spf13/cobra@v1.5.0/command.go:990
    ERROR  github.com/spf13/cobra.(*Command).Execute
    ERROR       github.com/spf13/cobra@v1.5.0/command.go:918
    ERROR  main.run
    ERROR       github.com/roadrunner-server/roadrunner/v2/cmd/rr/main.go:21
    ERROR  main.main
    ERROR       github.com/roadrunner-server/roadrunner/v2/cmd/rr/main.go:15
    ERROR  runtime.main
    ERROR       runtime/proc.go:250
    ERROR  2022-10-26T03:33:05.410+0300 ERROR   container/init.go:30    error occurred during the call INIT function    {"id": "config.Plugin", "error": "endure_call_init_fn: Function call error:\n\tconfig_plugin_init: value should not be empty"}
    ERROR  github.com/roadrunner-server/endure/pkg/container.(*Endure).internalInit
    ERROR       github.com/roadrunner-server/endure@v1.4.5/pkg/container/init.go:30
    ERROR  github.com/roadrunner-server/endure/pkg/container.(*Endure).Initialize
    ERROR       github.com/roadrunner-server/endure@v1.4.5/pkg/container/endure.go:404
    ERROR  reflect.Value.call
    ERROR       reflect/value.go:584
    ERROR  reflect.Value.Call
    ERROR       reflect/value.go:368
    ERROR  github.com/roadrunner-server/endure/pkg/fsm.(*FSMImpl).Transition
    ERROR       github.com/roadrunner-server/endure@v1.4.5/pkg/fsm/fsm.go:180
    ERROR  github.com/roadrunner-server/endure/pkg/container.(*Endure).Init
    ERROR       github.com/roadrunner-server/endure@v1.4.5/pkg/container/endure.go:314
    ERROR  github.com/roadrunner-server/roadrunner/v2/internal/cli/serve.NewCommand.func1
    ERROR       github.com/roadrunner-server/roadrunner/v2/internal/cli/serve/command.go:60
    ERROR  github.com/spf13/cobra.(*Command).execute
    ERROR       github.com/spf13/cobra@v1.5.0/command.go:872
    ERROR  github.com/spf13/cobra.(*Command).ExecuteC
    ERROR       github.com/spf13/cobra@v1.5.0/command.go:990
    ERROR  github.com/spf13/cobra.(*Command).Execute
    ERROR       github.com/spf13/cobra@v1.5.0/command.go:918
    ERROR  main.run
    ERROR       github.com/roadrunner-server/roadrunner/v2/cmd/rr/main.go:21
    ERROR  main.main
    ERROR       github.com/roadrunner-server/roadrunner/v2/cmd/rr/main.go:15
    ERROR  runtime.main
    ERROR       runtime/proc.go:250
    ERROR  2022-10-26T03:33:05.410+0300 ERROR   container/endure.go:418 error during the internal_init  {"error": "endure_internal_init: Function call error:\n\tendure_call_init_fn:\n\tconfig_plugin_init: value should not be empty"}
    ERROR  github.com/roadrunner-server/endure/pkg/container.(*Endure).Initialize
    ERROR       github.com/roadrunner-server/endure@v1.4.5/pkg/container/endure.go:418
    ERROR  reflect.Value.call
    ERROR       reflect/value.go:584
    ERROR  reflect.Value.Call
    ERROR       reflect/value.go:368
    ERROR  github.com/roadrunner-server/endure/pkg/fsm.(*FSMImpl).Transition
    ERROR       github.com/roadrunner-server/endure@v1.4.5/pkg/fsm/fsm.go:180
    ERROR  github.com/roadrunner-server/endure/pkg/container.(*Endure).Init
    ERROR       github.com/roadrunner-server/endure@v1.4.5/pkg/container/endure.go:314
    ERROR  github.com/roadrunner-server/roadrunner/v2/internal/cli/serve.NewCommand.func1
    ERROR       github.com/roadrunner-server/roadrunner/v2/internal/cli/serve/command.go:60
    ERROR  github.com/spf13/cobra.(*Command).execute
    ERROR       github.com/spf13/cobra@v1.5.0/command.go:872
    ERROR  github.com/spf13/cobra.(*Command).ExecuteC
    ERROR       github.com/spf13/cobra@v1.5.0/command.go:990
    ERROR  github.com/spf13/cobra.(*Command).Execute
    ERROR       github.com/spf13/cobra@v1.5.0/command.go:918
    ERROR  main.run
    ERROR       github.com/roadrunner-server/roadrunner/v2/cmd/rr/main.go:21
    ERROR  main.main
    ERROR       github.com/roadrunner-server/roadrunner/v2/cmd/rr/main.go:15
    ERROR  runtime.main
    ERROR       runtime/proc.go:250
    ERROR  handle_serve_command: Init error:
    ERROR       endure_initialize:
    ERROR       endure_internal_init: Function call error:
    ERROR       endure_call_init_fn:
    ERROR       config_plugin_init: value should not be empty

Steps To Reproduce:

Update to Octane v1.3.4 and run:
artisan octane:roadrunner --host=0.0.0.0 --rpc-port=6001 --port=80 --watch --max-requests=250 --workers=4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions