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

Simultaneous loading of client and server plugins does not load the server one #834

Closed
lmorozkol opened this issue Dec 28, 2023 · 1 comment
Labels

Comments

@lmorozkol
Copy link

Server plugin works when i tried to start it alone, without client plugin.
The server plugin works fine when it is the only one in the 'generated' folder. However, when the client plugin is added there as well, the server plugin is launched for the Executor plugin, instead of the Handler, just like it does when the server plugin is run solo.

logs:

go run cmd/krakend-ce/main.go run -dc krakend.json
Parsing configuration file: krakend.json
2023/12/28 12:39:47 KRAKEND INFO: Starting KrakenD vundefined
2023/12/28 12:39:47 KRAKEND DEBUG: [SERVICE: Plugin Loader] Starting loading process
2023/12/28 12:39:47 KRAKEND DEBUG: [SERVICE: Executor Plugin] plugin #1 (generated/wildcard.so): plugin.Open("generated/wildcard"): plugin already loaded
2023/12/28 12:39:47 KRAKEND INFO: [SERVICE: Executor Plugin] Total plugins loaded: 1
2023/12/28 12:39:47 KRAKEND DEBUG: [SERVICE: Handler Plugin] plugin #0 (generated/health-host.so): plugin: symbol HandlerRegisterer not found in plugin krakend-server
2023/12/28 12:39:47 KRAKEND DEBUG: [SERVICE: Handler Plugin] plugin #1 (generated/wildcard.so): plugin.Open("generated/wildcard.so"): plugin already loaded (previous failure)
2023/12/28 12:39:47 KRAKEND DEBUG: [SERVICE: Modifier Plugin] plugin #0 (generated/health-host.so): plugin: symbol ModifierRegisterer not found in plugin krakend-server
2023/12/28 12:39:47 KRAKEND DEBUG: [SERVICE: Modifier Plugin] plugin #1 (generated/wildcard.so): plugin.Open("generated/wildcard.so"): plugin already loaded (previous failure)
2023/12/28 12:39:47 KRAKEND DEBUG: [SERVICE: Plugin Loader] Loading process completed
2023/12/28 12:39:47 KRAKEND DEBUG: [SERVICE: Gin] Debug enabled
2023/12/28 12:39:47 KRAKEND INFO: Starting the KrakenD instance
2023/12/28 12:39:47 KRAKEND DEBUG: [ENDPOINT: /random] Building the proxy pipe
2023/12/28 12:39:47 KRAKEND DEBUG: [BACKEND: /rnd] Building the backend pipe
2023/12/28 12:39:47 KRAKEND DEBUG: [BACKEND: /rnd] Injecting plugin health-host
2023/12/28 12:39:47 KRAKEND DEBUG: [ENDPOINT: /random] Building the http handler
2023/12/28 12:39:47 KRAKEND DEBUG: [ENDPOINT: /random][JWTSigner] Signer disabled
2023/12/28 12:39:47 KRAKEND INFO: [ENDPOINT: /random][JWTValidator] Validator disabled for this endpoint
2023/12/28 12:39:47 KRAKEND INFO: [SERVICE: Gin] Listening on port: 8080
2023/12/28 12:39:47 KRAKEND DEBUG: [PLUGIN: Server] No plugins registered for the module
2023/12/28 12:39:52 KRAKEND DEBUG: [SERVICE: Telemetry] Registering usage stats for Cluster ID mKGXa6a3kIJtsH9JE+IAOM30mTiBFMQx2gngl9kn/T4=

config:

{
    "version": 3,
    "name": "krakend-wwl",
    "port": 8080,
    "cache_ttl": "3600s",
    "timeout": "3s",
    "plugin": {
        "pattern": ".so",
        "folder": "./generated/"
    },
    "extra_config": {
        "plugin/http-server": {
            "name": [ "wildcard" ],
            "wildcard": {
                "endpoints": {
                    "/random": [ "/foo/*", "/boo" ]
                }
            }
        }
    },
    "endpoints": [
        {
            "endpoint": "/random",
            "backend": [
                {
                    "host": [
                        "http://localhost:8081",
                        "http://localhost:8082",
                        "http://localhost:8083"
                    ],
                    "url_pattern": "/rnd",
                    "extra_config": {
                        "plugin/http-client": {
                            "name": "health-host",
                            "health-host": [
                                "http://localhost:8081",
                                "http://localhost:8082",
                                "http://localhost:8083"
                            ]
                        }
                    }
                }
            ]
        }
    ]
    }
Copy link

This issue was marked as resolved a long time ago and now has been automatically locked as there has not been any recent activity after it. You can still open a new issue and reference this link.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant