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

txamqp.client.ChannelClosed #1022

Open
regasaa opened this issue Jan 7, 2022 · 4 comments
Open

txamqp.client.ChannelClosed #1022

regasaa opened this issue Jan 7, 2022 · 4 comments

Comments

@regasaa
Copy link

regasaa commented Jan 7, 2022

Success "[Failure instance: Traceback: <class 'txamqp.client.ChannelClosed'>: Method(name=close, id=40) (404, "NOT_FOUND - no exchange 'messaging' in vhost '/'", 60, 40) content = None
/usr/local/lib/python3.8/dist-packages/jasmin/queues/factory.py:230:publish
:3:basic_publish
/usr/local/lib/python3.8/dist-packages/twisted/internet/defer.py:1613:unwindGenerator
/usr/local/lib/python3.8/dist-packages/twisted/internet/defer.py:1529:_cancellableInlineCallbacks
--- ---
/usr/local/lib/python3.8/dist-packages/jasmin/managers/clients.py:590:perspective_submit_sm
/usr/local/lib/python3.8/dist-packages/twisted/internet/defer.py:1418:_inlineCallbacks
/usr/local/lib/python3.8/dist-packages/txamqp/protocol.py:72:invoke
/usr/local/lib/python3.8/dist-packages/txamqp/protocol.py:123:_raise_closed
]"

@regasaa
Copy link
Author

regasaa commented Jan 7, 2022

While sending SMS it returns

{
"data": "Success "[Failure instance: Traceback: <class 'txamqp.client.ChannelClosed'>: Method(name=close, id=40) (404, "NOT_FOUND - no exchange 'messaging' in vhost '/'", 60, 40) content = None\n/usr/local/lib/python3.8/dist-packages/jasmin/queues/factory.py:230:publish\n:3:basic_publish\n/usr/local/lib/python3.8/dist-packages/twisted/internet/defer.py:1613:unwindGenerator\n/usr/local/lib/python3.8/dist-packages/twisted/internet/defer.py:1529:_cancellableInlineCallbacks\n--- ---\n/usr/local/lib/python3.8/dist-packages/jasmin/managers/clients.py:590:perspective_submit_sm\n/usr/local/lib/python3.8/dist-packages/twisted/internet/defer.py:1418:_inlineCallbacks\n/usr/local/lib/python3.8/dist-packages/txamqp/protocol.py:72:invoke\n/usr/local/lib/python3.8/dist-packages/txamqp/protocol.py:123:_raise_closed\n]"
}

@farirat
Copy link
Contributor

farirat commented Feb 21, 2022

it seems there's some issue on rabbitmq side where the messaging exchange is not found.

Do you have access rights on rabbit ?

@hadpro24
Copy link

I got the same problem @farirat

@zoliapjove
Copy link

zoliapjove commented May 11, 2023

Hello,

I had the same issue and it was caused by Ubuntu "Daily apt upgrade and clean activities". It updated and restarted RabbitMQ.

These daily jobs can be disabled like this:

sudo systemctl list-timers

sudo systemctl stop apt-daily.timer
sudo systemctl disable apt-daily.timer
sudo systemctl disable apt-daily.service
sudo systemctl daemon-reload

sudo systemctl stop apt-daily-upgrade.timer
sudo systemctl disable apt-daily-upgrade.timer
sudo systemctl disable apt-daily-upgrade.service
sudo systemctl daemon-reload

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

4 participants