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

MongoServerError: Unrecognized expression '$toString' #4211

Open
fulup-bzh opened this issue Jul 7, 2023 · 1 comment
Open

MongoServerError: Unrecognized expression '$toString' #4211

fulup-bzh opened this issue Jul 7, 2023 · 1 comment

Comments

@fulup-bzh
Copy link

Trying to start ev-server on OpenSuSE-15.5 I have an error Unrecognized expression '$toString' that I fail to trace.

My ev-server connect to mongo-DB, I neverthless have an error message after the connection. It looks like this error prevent server from starting its operation as any of the other port REST, OCCP, ... are open as we can see with lsof here after trace.

My configuration is dam-stupid, outside of changing captcha and mongodb credential, everything else come from demo template. (note: I tried with master and v2.7.8 tag)

any idea ?

07/07/2023, 14:35:18 - e-Mobility Server is starting...
07/07/2023, 14:35:18 - NodeJS is started in 'development' mode
[Warning] Missing property 'Monitoring' in config.json
[Warning] Missing property 'Cache' in config.json
07/07/2023, 14:35:18 - Connecting to the Database...
07/07/2023, 14:35:18 - Connecting to 'mongodb'...
07/07/2023, 14:35:18 - Connecting to 'mongodb://evse-admin:<YourPassword>@localhost:27017'
07/07/2023, 14:35:18 - Try to acquire the lock entity 'database' ('check-database') of type 'E' in Tenant ID 'default'
07/07/2023, 14:35:18 - Acquired successfully the lock entity 'database' ('check-database') of type 'E' in Tenant ID 'default'
07/07/2023, 14:35:18 - Released the lock entity 'database' ('check-database') of type 'E' in Tenant ID 'default' after 0.03 secs
07/07/2023, 14:35:18 - Connected to 'mongodb' successfully
07/07/2023, 14:35:18 - Connected to the Database successfully in 0.072 secs
[Warning] Missing property 'Shield' in config.json
07/07/2023, 14:35:18 - MongoServerError: Unrecognized expression '$toString'
sudo lsof -i | grep node
node18    14478   fulup   22u  IPv6 2681696      0t0  TCP localhost:43796->localhost:27017 (ESTABLISHED)
node18    14478   fulup   23u  IPv6 2681697      0t0  TCP localhost:43800->localhost:27017 (ESTABLISHED)
node18    14478   fulup   24u  IPv6 2681698      0t0  TCP localhost:43806->localhost:27017 (ESTABLISHED)
node18    14478   fulup   25u  IPv6 2681699      0t0  TCP localhost:43810->localhost:27017 (ESTABLISHED)
node18    14478   fulup   26u  IPv6 2681700      0t0  TCP localhost:43824->localhost:27017 (ESTABLISHED)
node18    14478   fulup   27u  IPv6 2681701      0t0  TCP localhost:43834->localhost:27017 (ESTABLISHED)
@UBT-FJ
Copy link

UBT-FJ commented Jul 12, 2023

try this fix:

#4209 (comment)

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

2 participants