Comments (16)
@SplendidFarzad thank you for raising this. Can you tell me how many collections does your mongo database have?
from appsmith.
One Database containing 8 views and 8 collections.
from appsmith.
@Nikhil-Nandagopal Any updates?
from appsmith.
Hi @SplendidFarzad Thanks a lot for reporting this issue!
Is it possible to share the screenshot of network tab (in browser dev console) when you create a new mongo query using this datasource?
You can also get the logs using this link, If you can provide the logs, it will be helpful to debug the issue further.
from appsmith.
Logs: logs.zip
Screenshot: https://internal.mobrog.com/pastebin/dfe40cbb-b139-4d0c-8ccd-0dfea45c8e9c.png
Rercording: https://internal.mobrog.com/pastebin/b0672487-9ac9-46a7-b8f4-e3ba69d4a64c.avi
Attached.
What do you think is the issue here?
from appsmith.
Hi @SplendidFarzad Thanks a lot for sharing these logs, I will check these and get back to you!
from appsmith.
@SplendidFarzad In the logs, I am seeing this error Appsmith has failed to get database structure. Please provide read permission on the database to fix this.
, could you please confirm that sufficient permissions have been given in mongoDB?
from appsmith.
All permissions are correctly set as I am using the root user (which is the only existing user in the Mongo instance) to connect AppSmith.
Here is the log of permissions from Mongo shell:
[
{
_id: 'admin.root',
userId: UUID('cc9f1bb0-70ca-4bb5-b8a5-9680a6bcb126'),
user: 'root',
db: 'admin',
roles: [
{
role: 'root',
db: 'admin'
},
{
role: 'dbOwner',
db: 'splendid'
},
{
role: 'dbAdmin',
db: 'splendid'
},
{
role: 'readWrite',
db: 'splendid'
},
{
role: 'userAdmin',
db: 'splendid'
}
],
mechanisms: [
'SCRAM-SHA-1',
'SCRAM-SHA-256'
]
}
]
How shall I proceed?
from appsmith.
@SplendidFarzad Would you be able to provide the connection string you are using to create this mongoDB datasource? You can redact the password. I want to ensure that mongo connection string is correctly reflecting the appropriate database name.
from appsmith.
@sneha122 I already showed how I connect the source in the video log:
https://internal.mobrog.com/pastebin/fba409c5-70f4-49b3-94de-13098ae370f7.avi
What do you think?
from appsmith.
@SplendidFarzad Apologies, I had not checked the video since it was not opening on my end, checked the video now though. can you please try updating database name in datasource config from admin
to splendid
?
from appsmith.
@sneha122 It understandably gives authentication error as the authentication occurs on admin collection:
The thing is, the structure and everything is fetchable in mongo shell and with other tools like Compass. What do you recommend?
from appsmith.
@SplendidFarzad Makes sense, at this point I do not know what could be causing this issue as the same query in raw works completely fine. Let's get on a call to identify the issue? Here is my calendly link.
from appsmith.
@sneha122 I scheduled the appointment. But there is no meeting link in the appointment. Could you send me the meeting URL?
from appsmith.
@SplendidFarzad I have updated the meeting link in the invite itself
from appsmith.
Thank you so much @SplendidFarzad for reporting this issue, as we saw on the call the issue was because you had collections + views in your database and views is something that is causing issues when fetching collections, without views this structure is fetched correctly. Since you mentioned you would be deleting these views now that you have appsmith pages to replace it with, I am closing this issue resolution and creating a separate issue to track why views is messing up with structures.
from appsmith.
Related Issues (20)
- [Feature]: Custom Widget import from app installed libraries HOT 1
- [Feature]: Changing pie chart color HOT 6
- [Task]: Perf - Optimize JSON From widget's invocation of react-hook-form clearError method
- [Task]: Categorise errors shown on the platform
- [Task]: Removing toast message errors in the editor HOT 1
- [Task - Client]: Fetch the Main JS information from the JS Object itself.
- [Task]: Workflow Wiki completion HOT 1
- [Task] Cron - save cron settings as resource in backend Server HOT 1
- [task] Cron - Create api for Cron in rts HOT 2
- [Bug]: Workflow run history logs get cut off even if the screen is big HOT 1
- [Task]: cron - add apis workflow CRON in backend server HOT 1
- [task] SLA for internal.appsmith.com
- Refactor DSL
- [Task]: Check actions/execute api for blocking calls and unblock if required
- [Feature]: Rotation of a specific page of a file in Document viewer. HOT 5
- [Task] Allow users to link IdP groups to Appsmith groups while provisioning via SCIM
- [Task] Remove browser run from Workflow debugging HOT 1
- Image size (805x936) different than saved snapshot size (806x936)
- RangeError: The argument 'size' is invalid. Received -248248
- [Bug]: Move to Postgres - Error while importing/forking apps HOT 5
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 appsmith.