joaoricardo000 / whatsapp-bot-seed

A small python framework to create a whatsapp bot, with regex-callback message routing.
727 stars 245 forks source link

Always "no valid session bad mac" #64

Open x23piracy opened 8 years ago

x23piracy commented 8 years ago

Hi,

today i always get no valid session bad mac repeatedly in shell when i start the bot. I cannot send any messages anymore.

I already deleted axolotl db and restarted, same issue. I updates yowsup2 again deleted axolotl db and restarted, same issue.

What can i do? Anyone else with persistent "no valid session bad mac"

Help please.

Regards X23

e0xify commented 8 years ago

try to delete the full .~yowsup directory

x23piracy commented 8 years ago

What should this change? I don't only delete the db itself i delete the profile dir under .yowsup, so this is still what you suggest.

I can try that but should not make any difference, more ideas? Anyone else with that issue?

Regards X23

Am 21.03.2016 um 18:50 schrieb Rene K. notifications@github.com:

try to delete the full .~yowsup directory

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub

x23piracy commented 8 years ago

Hi,

did that but still receive the error, it seems that the bot only answer to conversations in groups, it seems to work but no direct conversation.

root@NbI-1527:~# python /opt/whatsapp-bot-seed-master/src/server.py server.py [INFO][2016-03-21 22:46:33,982] ################################################## server.py [INFO][2016-03-21 22:46:33,983] Server started. Phone number: 492 server.py [INFO][2016-03-21 22:46:33,983] ################################################## layer.py [INFO][2016-03-21 22:46:34,895] Axolotl layer is generating keys _layer.py_ekeys [ERROR][2016-03-21 22:47:08,917] No session for: 49188, 1 layer.py [ERROR][2016-03-21 22:47:08,919] No session for: 491088, 1 layer.py [ERROR][2016-03-21 22:47:08,921] No session for: 4917088, 1 layer.py [ERROR][2016-03-21 22:47:08,922] No session for: 491088, 1 layer.py [ERROR][2016-03-21 22:47:08,924] No session for: 4915880, 1 layer.py [ERROR][2016-03-21 22:47:08,926] No session for: 49150880, 1 layer.py [ERROR][2016-03-21 22:47:08,927] No session for: 490088, 1 layer.py [ERROR][2016-03-21 22:47:08,932] No such signedprekeyrecord! 5778 layer.py [ERROR][2016-03-21 22:47:08,936] No such signedprekeyrecord! 31737 layer.py [ERROR][2016-03-21 22:47:08,937] No session for: 4915782328416, 1 router.py [INFO]2016-03-21 22:47:08,942[491641@s.whatsapp.net]-[49178-1374692@g.us] /liste router.py [INFO]2016-03-21 22:47:08,991[4916741@s.whatsapp.net]-[491788-1374692@g.us] /spieler layer.py [ERROR][2016-03-21 22:47:09,698] No valid sessionsBad Mac! layer.py [ERROR][2016-03-21 22:47:09,811] No valid sessionsBad Mac! layer.py [ERROR][2016-03-21 22:47:10,101] No valid sessionsBad Mac! layer.py [ERROR][2016-03-21 22:47:10,386] No valid sessionsBad Mac! layer.py [ERROR][2016-03-21 22:47:10,595] No valid sessionsBad Mac! layer.py [ERROR][2016-03-21 22:47:11,923] No valid sessionsBad Mac! layer.py [ERROR][2016-03-21 22:47:11,928] No valid sessionsBad Mac! layer.py [ERROR][2016-03-21 22:47:14,912] No valid sessionsBad Mac! layer.py [ERROR][2016-03-21 22:47:18,509] No valid sessionsBad Mac! layer.py [ERROR][2016-03-21 22:47:19,312] No valid sessionsBad Mac! layer.py [ERROR][2016-03-21 22:47:20,297] No valid sessionsBad Mac! layer.py [ERROR][2016-03-21 22:47:21,207] No valid sessionsBad Mac! layer.py [ERROR][2016-03-21 22:47:22,095] No valid sessionsBad Mac! layer.py [ERROR][2016-03-21 22:47:23,012] No valid sessionsBad Mac! layer.py [ERROR][2016-03-21 22:47:24,199] No valid sessionsBad Mac! layer.py [ERROR][2016-03-21 22:47:25,291] No valid sessionsBad Mac! layer.py [ERROR][2016-03-21 22:47:26,109] No valid sessionsBad Mac! layer.py [ERROR][2016-03-21 22:47:27,099] No valid sessionsBad Mac! layer.py [ERROR][2016-03-21 22:47:28,196] No valid sessionsBad Mac! layer.py [ERROR][2016-03-21 22:47:29,384] No valid sessionsBad Mac! layer.py [ERROR][2016-03-21 22:47:30,308] No valid sessionsBad Mac! layer.py [ERROR][2016-03-21 22:47:31,293] No valid sessionsBad Mac! layer.py [ERROR][2016-03-21 22:47:32,205] No valid sessionsBad Mac! layer.py [ERROR][2016-03-21 22:47:33,093] No valid sessionsBad Mac! layer.py [ERROR][2016-03-21 22:47:34,311] No valid sessionsBad Mac!

Actually the No valid sessionsBad Mac! comes every second into the shell, what is that?

Help please

x23piracy commented 8 years ago

Hi,

i could fix this by sending every user a msg by a script in this style:

yowsup-cli demos -s 49number "Hallo Welt!" -c /root/49number.yowsup

I made this by batch processing with a. shell script

x23piracy commented 8 years ago

Hi,

i think this Problem always accours when someone reregisters his Whatsapp Account so old axolotl encryption data is invalid then and we have the clash.

I have more then 40 users, so i just created a shell script that was sending every single user a "Hello World" after that it seems that the problem is gone.

Regards X23

Sunil02324 commented 8 years ago

Hi, I am also getting an error similar to that. Is your problem solved now.

_layer.py_ [ERROR][2016-03-22 06:08:56,054] No such signedprekeyrecord! 12777

I was getting the same error for some time and again it started working normally.

Thanks

x23piracy commented 8 years ago

Hi,

yes my problem seems to be solved more and more users reporting back that the bot is reacting again.

Regards X23

Sunil02324 commented 8 years ago

Can you help me in this error. I am facing the error always. Can you please elaborate how did you manage to overcome it.

K4CZP3R commented 8 years ago

I always delete db and send msg to user with error (yoswup-cli -y -c (config)) and then just send message

x23piracy commented 8 years ago

Hi,

i also deleted the db in the past but since yesterday that wasn't enough so i send a msg to every of my users using the yowsup demos like that:

yowsup-cli demos -s 49number "Hallo World!" -c config.yowsup

Take care that the bot isn't running when you are using the same credentials within config.yowsup while sending msg to everyone.

Regards X23