Comments (10)
Understood, you didn't write the username and password field in config.yml
, I see.
To address this, I would recommend updating your config.yml
file to include these two fields because it's recommended that you create a separate user account specifically for MongoDB usage, as outlined in the MongoDB Manual.
Alternatively, if you don't want to create a user then you could modify the code to fix the issue.
In your case, deleting L48-L49 and changing L52 from
f"mongodb://{username}:{password}@{ip}:{port}/{db}",
to
f"mongodb://{ip}:{port}/{db}",
might resolve the issue. However, this is just a suggestion and you are welcome to try it out.
from lccn_predictor.
Hello, @Kabir1506. Just a gentle reminder that it's necessary to install MongoDB before proceeding. You can find detailed instructions on how to do this by referring to the MongoDB Installation Tutorials. Version 5.0+ should work.
from lccn_predictor.
Hi @baoliay2008 , I have already installed 6.0.5 version
from lccn_predictor.
Please check your config.yaml
file, for example
mongodb:
ip: 192.168.1.12
port: 27017
username: testing
password: 'password'
db: testing
You may verify the authentication configuration of your MongoDB instance by using the ip
, port
, username
, password
and db
information provided above with the command of ⏎
mongosh --host 192.168.1.12 --port 27017 -u "testing" -p "password" --authenticationDatabase "testing"
from lccn_predictor.
Now getting this error:
ERROR | app.db.mongodb:start_async_mongodb:100 - Failed to start mongodb. error=quote_from_bytes() expected bytes.
The mongodb server is up..
from lccn_predictor.
Now getting this error: ERROR | app.db.mongodb:start_async_mongodb:100 - Failed to start mongodb. error=quote_from_bytes() expected bytes. The mongodb server is up..
It seems that the issue might still be with the config.yaml
file. My assumption is that you might have entered a numeric password without enclosing it in quotes.
For instance, if your MongoDB password configuration is password: 20230403
, the YAML parser will interpret it as a number
data type instead of a string
. In this case, kindly try using password: "20230403"
instead, which should ensure that it gets parsed as a string data type.
from lccn_predictor.
I have started the mongo server with this command
mongod --port 27017 --dbpath C:\MongoDB\data\db
and have commented username password in config.yml
mongodb: ip: 127.0.0.1 port: 27017 db: lccn
from lccn_predictor.
cool thanks alot. Now working on front-end steps
from lccn_predictor.
@baoliay2008 I don't see any dummy contest data in front-end. Is there a way to load dummy data to test and work upon.
from lccn_predictor.
In the next version, I will include some dummy data.
However, for now, you can still test the functionality by running a very old contest (this is only recommended for temporary testing purposes as the results will be completely inaccurate). To do this, kindly add the following two lines after main.py L13:
from app.core.schedulers import composed_predict_jobs
await composed_predict_jobs("biweekly-contest-1")
from lccn_predictor.
Related Issues (20)
- Username history is lost HOT 3
- Color in Rank Change (Delta) should be reversed HOT 2
- Biweekly Contest 107 unrated HOT 1
- Graph is invisible HOT 3
- Site is down - Aug 5, 2023 HOT 4
- Site is down - Aug 30
- Weekly Contest 364 is missing HOT 11
- Biweekly Contest 115 - Ranks are slightly off HOT 1
- Navigating to different page numbers is difficult HOT 1
- Plag checker HOT 3
- biweekly-contest-116 ratings not up yet HOT 2
- [BUG] Site stuck in loading phase HOT 23
- Site is Still down. HOT 2
- Weekly contest 373 - Ratings are not correct, after 45 mins post contest HOT 2
- Number of successful submissions differs from leetcode HOT 2
- Only LCCN users rating is predicted in Biweekly contest 122 HOT 1
- [BUG] Wrong predictions in Biweekly 122 HOT 4
- Rating readjustment needed after last week contest HOT 2
- Searching for a name without exact capitalization doesnt show results HOT 3
- Edge case in prediction algorithm HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lccn_predictor.