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

Android sync - datastore - sync error error database or disk is full (code 13 sqlite_full) #8764

Closed
3 tasks done
ajayGadhiya opened this issue Aug 16, 2021 · 2 comments
Closed
3 tasks done
Assignees
Labels
DataStore Related to DataStore category React Native React Native related issue

Comments

@ajayGadhiya
Copy link

Before opening, please confirm:

JavaScript Framework

React Native

Amplify APIs

DataStore

Amplify Categories

storage

Environment information

# Put output below this line
System:
    OS: macOS 11.3
    CPU: (12) x64 Intel(R) Core(TM) i5-10400F CPU @ 2.90GHz
    Memory: 523.75 MB / 8.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.17.0 - /usr/local/bin/node
    npm: 6.14.13 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Browsers:
    Chrome: 92.0.4515.131
    Safari: 14.1
  npmPackages:
    @babel/core: ^7.12.9 => 7.14.6 
    @babel/runtime: ^7.12.5 => 7.14.6 
    @gorhom/bottom-sheet: ^3.6.6 => 3.6.6 
    @react-native-async-storage/async-storage: ^1.15.5 => 1.15.5 
    @react-native-community/checkbox: ^0.5.8 => 0.5.8 
    @react-native-community/eslint-config: ^2.0.0 => 2.0.0 
    @react-native-community/masked-view: ^0.1.11 => 0.1.11 
    @react-native-community/netinfo: ^6.0.0 => 6.0.0 
    @types/react-native-extra-dimensions-android: ^1.2.0 => 1.2.0 
    @types/react-native-i18n: ^2.0.0 => 2.0.0 
    HelloWorld:  0.0.1 
    amazon-cognito-identity-js: ^5.0.4 => 5.0.4 
    aws-amplify: ^4.1.3 => 4.1.3 
    aws-amplify-react-native: ^5.0.3 => 5.0.3 
    axios: ^0.21.1 => 0.21.1 
    axios-mock-adapter: ^1.19.0 => 1.19.0 
    babel-jest: ^26.6.3 => 26.6.3 
    date-fns: ^2.22.1 => 2.22.1 
    eslint: 7.14.0 => 7.14.0 
    fbemitter: ^3.0.0 => 3.0.0 
    hermes-inspector-msggen:  1.0.0 
    jest: ^26.6.3 => 26.6.3 
    metro-react-native-babel-preset: ^0.64.0 => 0.64.0 
    moment: ^2.29.1 => 2.29.1 
    react: 17.0.1 => 17.0.1 
    react-native: 0.64.2 => 0.64.2 
    react-native-extra-dimensions-android: ^1.2.5 => 1.2.5 
    react-native-gesture-handler: ^1.10.3 => 1.10.3 
    react-native-i18n: ^2.0.15 => 2.0.15 
    react-native-interactable: ^2.0.1 => 2.0.1 
    react-native-keyboard-aware-scroll-view: ^0.9.4 => 0.9.4 
    react-native-keyboard-aware-view: ^0.0.14 => 0.0.14 
    react-native-reanimated: ^1.13.3 => 1.13.3 
    react-native-router-flux: ^4.3.1 => 4.3.1 
    react-native-router-flux-cli:  0.0.1 
    react-native-safe-area-context: ^3.2.0 => 3.2.0 
    react-native-screens: ^3.4.0 => 3.4.0 
    react-native-sensitive-info: ^5.5.8 => 5.5.8 
    react-native-snap-carousel: ^3.9.1 => 3.9.1 
    react-native-splash-screen: ^3.2.0 => 3.2.0 
    react-native-svg: ^12.1.1 => 12.1.1 
    react-test-renderer: 17.0.1 => 17.0.1 
    reanimated-bottom-sheet: ^1.0.0-alpha.22 => 1.0.0-alpha.22 
  npmGlobalPackages:
    npm: 6.14.13

Describe the bug

After start sync expression and sync data to the device, iOS functionality is working properly and smooth but while executing in Android, I got this error “[WARN] 39:56.141 DataStore - Sync error [Error: database or disk is full (code 13 SQLITE_FULL)]” and trap into continuing loading process.

Expected behavior

We need to sync data in Android device also the same as iOS.
Means data sync is not done even for the first time so I didn’t get data to show/display on the Android side.

Reproduction steps

  1. Auth Login
  2. Start sync expression by calling datastore configure
  3. Getting error

Code Snippet

// Put your code below this line.
DataStore.configure({
      syncExpressions: [
      syncExpression(OrderVerTwo, () => {
	      const from = addHours(
		      new Date(),
		      ConstantElements.constElements.syncExpressionTime
	      ).toISOString();					
	      return (order) => order.createdAt("ge", from);
      }),
      syncExpression(Transporter, () => {
	      return transporter => transporter.id('eq', userTransporterId);
      }),
      syncExpression(TransporterEvents, () => {
	      return transporterEvent => transporterEvent.transporterID('eq', userTransporterId);
      }),
      syncExpression(Order, () => {
	      return (order) => order.id("eq", null);
      }),
      syncExpression(Patient, () => {
	      return (patient) => patient.id("eq", null);
      }),
      syncExpression(OrderEvent, () => {
	      return (orderEvent) => orderEvent.id("eq", null);
      }),
      syncExpression(BuildingTransitionCosts, () => {
	      return (buildingTransitionCosts) =>
		      buildingTransitionCosts.id("eq", null);
      }),
      syncExpression(OrderNotification, () => {
	      return (orderNotification) => orderNotification.id("eq", null);
      }),
      syncExpression(User, () => {
	      return (user) => user.id("eq", null);
      }),
      syncExpression(UserEvent, () => {
	      return (userEvent) => userEvent.id("eq", null);
      }),
   ],
});

Log output

// Put your logs below this line
WARN  [WARN] 39:56.141 DataStore - Sync error [Error: database or disk is full (code 13 SQLITE_FULL)]
WARN  Possible Unhandled Promise Rejection (id: 0):

aws-exports.js

const awsmobile = {
"aws_project_region": "us-east-1",
"aws_cognito_identity_pool_id": "us-XXXXXXXXXX",
"aws_cognito_region": "us-east-1",
"aws_user_pools_id": "us-XXXXXXXXXX",
"aws_user_pools_web_client_id": "XXXXXXXXXX",
"oauth": {},
"aws_appsync_graphqlEndpoint": "XXXXXXXXXXXXXXX",
"aws_appsync_region": "us-east-1",
"aws_appsync_authenticationType": "AMAZON_COGNITO_USER_POOLS",
"aws_appsync_apiKey": "XXXXXXXXXXXXXXX"
};

Manual configuration

No response

Additional configuration

No response

Mobile Device

Android-All

Mobile Operating System

No response

Mobile Browser

No response

Mobile Browser Version

No response

Additional information and screenshots

Log with continue loading with the
Screen Shot 2021-08-16 at 11 42 35 AM
android device.

@chrisbonifacio chrisbonifacio added DataStore Related to DataStore category React Native React Native related issue labels Aug 16, 2021
@chrisbonifacio chrisbonifacio added the pending-triage Issue is pending triage label Aug 16, 2021
@iartemiev
Copy link
Member

Closing, as this is a duplicate of #8640. Please see the comments on that issue.

@github-actions
Copy link

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
DataStore Related to DataStore category React Native React Native related issue
Projects
None yet
Development

No branches or pull requests

3 participants