TeamUltroid / Ultroid

Advanced Multi-Featured Telegram UserBot, Built in Python Using Telethon lib.
https://ultroid.tech
GNU Affero General Public License v3.0
2.83k stars 7.92k forks source link

[BUG REPORT] Refused to start #392

Closed Velosofy closed 1 year ago

Velosofy commented 2 years ago

Contact Details

@velosofyy

What happened?

Ultroid refused to start Hosted on a docker container using Dockerfile

I already make sure that I fill the .env properly

Version

0.7

Hosted On

Vps

Relevant logs output

┏┳┓╋┏┓╋╋╋╋┏┓┏┓
            ┃┃┣┓┃┗┳┳┳━╋╋┛┃
            ┃┃┃┗┫┏┫┏┫╋┃┃╋┃
            ┗━┻━┻━┻┛┗━┻┻━┛

      Visit @TheUltroid for updates!!

11/29/2022, 21:11:32 | pyUltLogs [INFO] :
                    -----------------------------------
                            Starting Deployment
                    -----------------------------------

11/29/2022, 21:11:32 | pyUltLogs [INFO] : Python version - 3.10.2
11/29/2022, 21:11:32 | pyUltLogs [INFO] : py-Ultroid Version - 2022.08.30
11/29/2022, 21:11:32 | pyUltLogs [INFO] : Telethon Version - 1.25.1 [Layer: 146]
11/29/2022, 21:11:32 | pyUltLogs [INFO] : Ultroid Version - 0.7.1 [github actions]
11/29/2022, 21:11:32 | pyUltLogs [INFO] : Using local file as database.
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
11/29/2022, 21:11:39 | pyUltLogs [CRITICAL] : No DB requirement fullfilled!
Please install redis, mongo or sql dependencies...
Till then using local file as database.

Acknowledgement

xditya commented 2 years ago

please make sure to install the requirements via pip install -r requirements.txt && pip install -r resources/startup/opt*. if done already, just pip install -q redis hiredis (for redis) or pip install -q pymongo[srv] (for mongodb) or pip install -q psycopg2-binary (for SQL), whichever is preferred.

Velosofy commented 2 years ago

After a lot of troubleshooting, the problem is because the Dockerfile doesnt copy the config file

xditya commented 1 year ago

Hope it's fixed now. Closing.