TeamYukki / YukkiMusicBot

Telegram Group Calls Streaming bot with some useful features, written in Python with Pyrogram and Py-Tgcalls. Supporting platforms like Youtube, Spotify, Resso, AppleMusic, Soundcloud and M3u8 Links.
https://Yukki.tech
MIT License
1.29k stars 3.79k forks source link

sqlite3.OperationalError: database is locked #350

Closed lsyyktv closed 1 year ago

lsyyktv commented 1 year ago

Provide a general summary of the issue in the Title above.

Expected behavior

Current behavior

Screenshot [ Optional ]

Possible reasons and solutions [ Optional ]

Context

Custom values [Optional]

Your environment

*ARM DEBIAN 11

Stack trace

Checklist

Go over all the following points, and put an x in all the boxes that apply.

  • [ ] I searched the current issues and the issue is not known.
  • [ ] I searched on Google, Steam, YouTube, Reddit and there's no fix.
  • [ ] I am mostly sure that the problem is related to the project and isn't my fault. image
Alpha-Like commented 1 year ago

Do in main dir of YukkiMusic

rm YukkiMusicBot.session rm YukkiMusicBot.session-journal

And start the bot !

lsyyktv commented 1 year ago

Do in main dir of YukkiMusic

rm YukkiMusicBot.session rm YukkiMusicBot.session-journal

And start the bot !

But the error still exists

Alpha-Like commented 1 year ago

Do in main dir of YukkiMusic

rm YukkiMusicBot.session rm YukkiMusicBot.session-journal

And start the bot !

But the error still exists

Delete current directory (for clearing old saved sessions which cause lock of database) and re clone it.

OR

Do command 'ls' in main directory, if you find any '.session' or '.session-journal' files, remove it.

lsyyktv commented 1 year ago

Do in main dir of YukkiMusic

rm YukkiMusicBot.session rm YukkiMusicBot.session-journal

And start the bot !

But the error still exists

Delete current directory (for clearing old saved sessions which cause lock of database) and re clone it.

OR

Do command 'ls' in main directory, if you find any '.session' or '.session-journal' files, remove it.

Thanks,I have done that,but the error still exists, is there something wrong with the python version(3.9.2)? image

Alpha-Like commented 1 year ago

Do in main dir of YukkiMusic

rm YukkiMusicBot.session rm YukkiMusicBot.session-journal

And start the bot !

But the error still exists

Delete current directory (for clearing old saved sessions which cause lock of database) and re clone it.

OR

Do command 'ls' in main directory, if you find any '.session' or '.session-journal' files, remove it.

Thanks,I have done that,but the error still exists, is there something wrong with the python version(3.9.2)?

image

Nope ig 🙂, try upgrading python if you believe in it.

lsyyktv commented 1 year ago

Do in main dir of YukkiMusic

rm YukkiMusicBot.session rm YukkiMusicBot.session-journal

And start the bot !

But the error still exists

Delete current directory (for clearing old saved sessions which cause lock of database) and re clone it.

OR

Do command 'ls' in main directory, if you find any '.session' or '.session-journal' files, remove it.

Thanks,I have done that,but the error still exists, is there something wrong with the python version(3.9.2)? image

Nope ig 🙂, try upgrading python if you believe in it.

Thank you,I'll try that later!

Jatindalal875 commented 1 year ago

Try

sudo pkill -9 python3

rm -r *.session

Than tmux and bash start

axrav commented 1 year ago

marking this as closed, as seems like it has been solved