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

NocoDB loosing connection to other table after syncing meta data #1009

Closed
WeT-Klb opened this issue Jan 26, 2022 · 23 comments
Closed

NocoDB loosing connection to other table after syncing meta data #1009

WeT-Klb opened this issue Jan 26, 2022 · 23 comments
Labels
👋 For : Community or Good First Issue Targeting community to contribute

Comments

@WeT-Klb
Copy link
Contributor

WeT-Klb commented Jan 26, 2022

Node: v12.22.6
Arch: x64
Platform: linux
Docker: true
Database: mysql2
ProjectOnRootDB: true
RootDB: mysql2
PackageVersion: 0.84.8
Project was created by clicking : Create New Project
OS on which NocoDB is running : QNAP 5.0.0.1891
Database version : MariaDB 10.5

Steps To Reproduce

  1. Go to table 'Arztadressen`, set name field to "Primary Value" and create a connection to table 'Impfbuch_Mian'
  2. Go to table 'Impfbuch_Mian' and creaty lookup entries to 'Arztadressen'
  3. Click on refresh tables or 'Sync Now' in meta file data
  4. The connection between both tables gets lost and in 'Impfbuch_Mian' the conection field type changes
  5. The "Primary entry setting" in 'Arztadressen' got lost, too.

Expected behavior
A refresh of tables or a sync shouldn´t change the ralation.

Screenshots
I

Join our discord : https://discord.gg/5RgZmkW for realtime help.
1 Creating Connection
2 Creating Lookup Entry
3 Sync Now
4 Problem Case
5 Primary key gets lost

@o1lab
Copy link
Member

o1lab commented Jan 26, 2022

Looks like you have created the same database in NC_DB to create a project by connecting to external database.

This is not an intended usecase.

NC_DB and Project creation by connecting to external database should be seperate.

@o1lab
Copy link
Member

o1lab commented Jan 26, 2022

Im unable to reproduce the issue. Can you reach out to me in discord.

@WeT-Klb
Copy link
Contributor Author

WeT-Klb commented Jan 26, 2022 via email

@o1lab
Copy link
Member

o1lab commented Jan 26, 2022

Please reach out at n at nocodb.com

@WeT-Klb
Copy link
Contributor Author

WeT-Klb commented Jan 26, 2022

I deleted the whole project, deleted the data base and restarted from the scratch with building everything new.
First i choose "Create" instead of "Create with external data base". Then i addes the three tables which i exported before from old data base and in field mapping i deleted everything showing a connection to another sheet.
Then i set table connections and set up everything like it should be. But again in meta files i am shown the connections were released. I don´t dare to click on "Sync now" as i guess again everything will be screwed up.

6 Correct connection
7 What to do

EDIT 30.1.2022
Ok - i tried what happens after i click "Sync Now". The result is the "Link to another record" from "Arztpraxis" to "Impfbuch_Mian" and "Impfbuch_Werner" got lost again and the primary key in "Arztadressen" resetted.
The entries in both "Impfbuch"-tables looks like this now:
8-New result
As long as the marked row exists it is impossible to recreate a "Link to another record" to this table - first this row has to be deleted.
Then after recreating the link and syncing the metadata again the same behaviour like before where the link has gone.

@WeT-Klb
Copy link
Contributor Author

WeT-Klb commented Jan 27, 2022

Please reach out at n at nocodb.com

Do you want me to send an email to P-at-nocodb.com?
Discord always tells me the invitation has expired.

@o1lab
Copy link
Member

o1lab commented Jan 27, 2022

It is n at nocodb.com :)

Thank you for letting us know discord link has an issue.

Here is another invite link to discord : https://discord.gg/xT47QnTy

@WeT-Klb
Copy link
Contributor Author

WeT-Klb commented Jan 27, 2022

I tried your new invitation link - but still the same:
image

Yesterday and today i sent an email to "n @ nocodb.com" - did you get it?

@o1lab
Copy link
Member

o1lab commented Jan 28, 2022

No idea on discord expiry, I tried those links to be sure. They worked.

Meantime you can book a time here calendly.com/nocodb

@o1lab
Copy link
Member

o1lab commented Jan 28, 2022

Sorry, I havent received any email so far.

@WeT-Klb
Copy link
Contributor Author

WeT-Klb commented Jan 28, 2022

This is what i sent yesterday:
image

This what is shown to me when i check "Why my invitation is invalid?":

Invalid Invite Links
 Tann
2 months ago Updated
You finally got that invite to the super-secret Discord server you've been wanting to join, yes!

So... why isn't it working? There are a few reasons your server link may be 'Invalid'.

WHAT TO CHECK
Expiration: Your invite link may have expired. In this case, please contact the server owner and ask them for a new invite.

Invalid Code: You may not have a legitimate invite code. Please check your code and try again. Remember that invite codes -are- case sensitive!

Ban: You may have been banned from joining this server. Bans are based on IP address, so you would need to contact the server admins and ask them to revoke all bans in their Server Settings. Just because they remove your name, does not mean the invite will work.

100 Server Limit: A user cannot be a member of more than 100 servers. If you are in too many servers, you'll need to leave one before you can join.

@WeT-Klb WeT-Klb changed the title NocoDB loosing connection to other table NocoDB loosing connection to other table after syncing meta data Jan 31, 2022
@WeT-Klb
Copy link
Contributor Author

WeT-Klb commented Mar 10, 2022

I still have that problem with "Sync Now". NocoDB still tells me the relation between the tables was removed - but this is not true.
Still "Arztadresse" is the parent table and the both "Impfbuch" are the child table - at least that´s what i want and like it works.

SyncNow

@o1lab
Copy link
Member

o1lab commented Mar 10, 2022

Can you please project info. Do you suspect anything that might have led to this ?

Please DM in discord, happy to help.

@WeT-Klb
Copy link
Contributor Author

WeT-Klb commented Mar 10, 2022

The project info is:

Node: v12.22.6
Arch: x64
Platform: linux (QNAP 5.0.0.1932)
Docker: true
Database: mysql2 (MariaDB 10.5.8)
ProjectOnRootDB: true
RootDB: mysql2
PackageVersion: 0.84.14

I have no idea what can cause this - but it already happened in january (when i started with NocoDB) - with all releases since then.
Every time after pressing "Sync Now" the connections between the tables will be destroyed.
Again i have trouble with Discord - this time it tells me they registered a Log-In from a different location and i would need to see the Email they sent - but no Mail apperas yet. Always trouble with Discord :-(

@o1lab
Copy link
Member

o1lab commented Mar 10, 2022

Were there database changes done externally on your database which made you sync meta changes ?

And with Discord : would you like to access the same with a different browser - it looks like Discord may be flagging something on your end.

@WeT-Klb
Copy link
Contributor Author

WeT-Klb commented Mar 10, 2022 via email

@o1lab
Copy link
Member

o1lab commented Mar 10, 2022

Have mailed you a zoom link - pls join. Happy to help.

@o1lab
Copy link
Member

o1lab commented Mar 10, 2022

Thanks for showing the problem and sharing the relevant files.

Would be also helpful to know the MariaDB version.

Looks like the issue might be to do with mariadb as same scenario was fine on PG. I will add more details here later.

@WeT-Klb
Copy link
Contributor Author

WeT-Klb commented Mar 10, 2022 via email

@WeT-Klb
Copy link
Contributor Author

WeT-Klb commented Mar 31, 2022

@o1lab
Did you find any solution? This problem still exists even with latest docker version of NocoDB.

@WeT-Klb
Copy link
Contributor Author

WeT-Klb commented Apr 18, 2022

I still have this same behaviour in 0.90.3 now. Do you think there will be any solution for this?

@wingkwong wingkwong self-assigned this Apr 19, 2022
@nocodb nocodb deleted a comment from o1lab Apr 19, 2022
@wingkwong
Copy link
Member

@WeT-Klb I tried to follow your screenshots to reproduce the issue. After following the first two screenshots, it leads me to the following screen where it shows the metadata is in sync. Your third screenshot shows no change identified but Sync Now button is enabled which is not expected.

image

As it's hard to trace back in previous versions, if you create a new project at 0.90.3 and do the same thing again, are you able to reproduce the issue? You may try creating a brand new project and connect to existing one.

If you have discord, please feel free to reach me (same username) or you can reach me at w@nocodb.com via email.

@dstala
Copy link
Member

dstala commented Sep 1, 2023

@WeT-Klb reopen or connect with us in discord if issue still persists

@dstala dstala closed this as completed Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👋 For : Community or Good First Issue Targeting community to contribute
Projects
None yet
Development

No branches or pull requests

4 participants