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

make_app got an unexpeted keyowrd argument full_stack #5235

Open
MichaelHarmsTIB opened this issue Feb 24, 2020 · 7 comments
Open

make_app got an unexpeted keyowrd argument full_stack #5235

MichaelHarmsTIB opened this issue Feb 24, 2020 · 7 comments
Assignees

Comments

@MichaelHarmsTIB
Copy link

MichaelHarmsTIB commented Feb 24, 2020

Note: Are you submitting a security related issue that could be a potential vulnerability? Please send it to security@ckan.org instead.

CKAN Version if known (or site URL)

2.9 latest

Please describe the expected behaviour

Starting the Ckan Server with paster serve /etc/ckan/default/development.ini

Please describe the actual behaviour

Since today the ckan server dont start, i got the following error:

"Traceback (most recent call last):\n  File \"/usr/lib/ckan/default/bin/paster\", line 8, in <module>\n    sys.exit(run())\n  File \"/usr/lib/ckan/default/lib/python3.7/site-packages/paste/script/command.py\", line 102, in run\n    invoke(command, command_name, options, args[1:])\n  File \"/usr/lib/ckan/default/lib/python3.7/site-packages/paste/script/command.py\", line 141, in invoke\n    exit_code = runner.run(args)\n  File \"/usr/lib/ckan/default/lib/python3.7/site-packages/paste/script/command.py\", line 236, in run\n    result = self.command()\n  File \"/usr/lib/ckan/default/lib/python3.7/site-packages/paste/script/serve.py\", line 284, in command\n    relative_to=base, global_conf=vars)\n  File \"/usr/lib/ckan/default/lib/python3.7/site-packages/paste/script/serve.py\", line 329, in loadapp\n    **kw)\n  File \"/usr/lib/ckan/default/lib/python3.7/site-packages/paste/deploy/loadwsgi.py\", line 253, in loadapp\n    return loadobj(APP, uri, name=name, **kw)\n  File \"/usr/lib/ckan/default/lib/python3.7/site-packages/paste/deploy/loadwsgi.py\", line 278, in loadobj\n    return context.create()\n  File \"/usr/lib/ckan/default/lib/python3.7/site-packages/paste/deploy/loadwsgi.py\", line 715, in create\n    return self.object_type.invoke(self)\n  File \"/usr/lib/ckan/default/lib/python3.7/site-packages/paste/deploy/loadwsgi.py\", line 152, in invoke\n    return fix_call(context.object, context.global_conf, **context.local_conf)\n  File \"/usr/lib/ckan/default/lib/python3.7/site-packages/paste/deploy/util.py\", line 58, in fix_call\n    reraise(*exc_info)\n  File \"/usr/lib/ckan/default/lib/python3.7/site-packages/paste/deploy/compat.py\", line 32, in reraise\n    raise e.with_traceback(tb)\n  File \"/usr/lib/ckan/default/lib/python3.7/site-packages/paste/deploy/util.py\", line 55, in fix_call\n    val = callable(*args, **kw)\nTypeError: make_app() got an unexpected keyword argument 'full_stack'", 
    "stderr_lines": [
        "Traceback (most recent call last):", 
        "  File \"/usr/lib/ckan/default/bin/paster\", line 8, in <module>", 
        "    sys.exit(run())", 
        "  File \"/usr/lib/ckan/default/lib/python3.7/site-packages/paste/script/command.py\", line 102, in run", 
        "    invoke(command, command_name, options, args[1:])", 
        "  File \"/usr/lib/ckan/default/lib/python3.7/site-packages/paste/script/command.py\", line 141, in invoke", 
        "    exit_code = runner.run(args)", 
        "  File \"/usr/lib/ckan/default/lib/python3.7/site-packages/paste/script/command.py\", line 236, in run", 
        "    result = self.command()", 
        "  File \"/usr/lib/ckan/default/lib/python3.7/site-packages/paste/script/serve.py\", line 284, in command", 
        "    relative_to=base, global_conf=vars)", 
        "  File \"/usr/lib/ckan/default/lib/python3.7/site-packages/paste/script/serve.py\", line 329, in loadapp", 
        "    **kw)", 
        "  File \"/usr/lib/ckan/default/lib/python3.7/site-packages/paste/deploy/loadwsgi.py\", line 253, in loadapp", 
        "    return loadobj(APP, uri, name=name, **kw)", 
        "  File \"/usr/lib/ckan/default/lib/python3.7/site-packages/paste/deploy/loadwsgi.py\", line 278, in loadobj", 
        "    return context.create()", 
        "  File \"/usr/lib/ckan/default/lib/python3.7/site-packages/paste/deploy/loadwsgi.py\", line 715, in create", 
        "    return self.object_type.invoke(self)", 
        "  File \"/usr/lib/ckan/default/lib/python3.7/site-packages/paste/deploy/loadwsgi.py\", line 152, in invoke", 
        "    return fix_call(context.object, context.global_conf, **context.local_conf)", 
        "  File \"/usr/lib/ckan/default/lib/python3.7/site-packages/paste/deploy/util.py\", line 58, in fix_call", 
        "    reraise(*exc_info)", 
        "  File \"/usr/lib/ckan/default/lib/python3.7/site-packages/paste/deploy/compat.py\", line 32, in reraise", 
        "    raise e.with_traceback(tb)", 
        "  File \"/usr/lib/ckan/default/lib/python3.7/site-packages/paste/deploy/util.py\", line 55, in fix_call", 
        "    val = callable(*args, **kw)", 
        "TypeError: make_app() got an unexpected keyword argument 'full_stack'"
    ], 
    "stdout": "", 
    "stdout_lines": []

What steps can be taken to reproduce the issue?

Install latest Ckan with python 3.7.

@MichaelHarmsTIB
Copy link
Author

with ckan run development.ini or ckan.ini i got the error unexpected extra argument

@MichaelHarmsTIB
Copy link
Author

i tried ckan generate config also

@MichaelHarmsTIB
Copy link
Author

I tried with ckan -c dev.ini run. Server starts, but a request gives no feedback.

@MichaelHarmsTIB
Copy link
Author

Connection to 127.0.0.1:5000 ... conected.
HTTP request sent, awaiting response...
I still waiting ;P

@MichaelHarmsTIB
Copy link
Author

In my ini, I use a IP like 192.168.10.50:5000, why ckan not use it ?

@Zharktas
Copy link
Member

By default the werkzeug dev server only listens localhost connection so it won't respond to request coming from somewhere else.

You can however add argument to run command -H some_ip_address to listen different host. This however caused error in repoze.who for me, but I haven't been able to pinpoint the cause yet, so it might not be an issue with ckan itself.

@shubham-mahajan
Copy link
Member

shubham-mahajan commented Jun 2, 2020

@MichaelHarmsTIB If you trying to use paster instead of ckan as command while using python3 then this issue will come!

Starting the Ckan Server with paster serve /etc/ckan/default/development.ini

Instead

Starting the Ckan Server with ckan -c /etc/ckan/default/development.ini run --host 0.0.0.0

You can pass host flag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants