Neo-Store icon indicating copy to clipboard operation
Neo-Store copied to clipboard

[Bug] Sync dir making error ENOENT

Open 8dmusichannels-star opened this issue 5 months ago • 3 comments

Guidelines

  • [x] I have searched the issue tracker for open and closed issues that are similar to the feature request I want to file, without success.
  • [x] I'm on the latest version.
  • [x] I'm not using a test build (alpha/beta/release-candidate).
  • [x] This issue contains only one bug.

Describe the bug

Logcat error: java.lang.IllegalStateException: Failed to prepare /storage/emulated/0/Android/data/com.machiav3lli.fdroid/files at RepositoryUpdater.processIndexV2(...:353)

Root cause: Neo Store calls getExternalFilesDir() to store index-v2 JSON files, but the directory is not created automatically on this ROM.

Expected Behavior

I found a way to fix this error. I'm opening the problems, but this fix will prevent the error from occurring. By entering the commands below, the synchronization problem will be eliminated by creating the targeted index directory.

su -c "mkdir -p /storage/emulated/0/Android/data/com.machiav3lli.fdroid/files/index"
su -c "chmod 777 /storage/emulated/0/Android/data/com.machiav3lli.fdroid/files"
su -c "chmod 777 /storage/emulated/0/Android/data/com.machiav3lli.fdroid/files/index"

If you want root access, you can solve this in this way, but this solution is temporary. For the real solution, the application needs to create the directory it directly targets.

Neo Store's Version

1.2.6

Installation Source

Github/Codeberg/Gitlab releases

Last Known Working Version

1.2.6

Relevant information

  • Device: Redmi note 10 pro
  • Android Version: 16
  • ROM: İnfinity X
  • Disabled battery optimization for Neo Store? = yeah
  • What is your selected installer? = Root installer

8dmusichannels-star avatar Jun 26 '26 03:06 8dmusichannels-star

have you been able to resolve this issue?

Yes, I solved it, but root is required. I have to say that if this problem is not solved, I recommend you to switch to droidify. This solution will only be useful if you are running it for now. If it is lacking in support in the long term, you should use droidify instead of neo store.

8dmusichannels-star avatar Jul 08 '26 23:07 8dmusichannels-star

The permissions on the directory are wrong.

have you been able to resolve this issue?

Yes, I solved it, but root is required. I have to say that if this problem is not solved, I recommend you to switch to droidify. This solution will only be useful if you are running it for now. If it is lacking in support in the long term, you should use droidify instead of neo store.

I don't think this is the appropriate place to advertise another app.

You can do this with the right permissions with:

mkdir -m770 -p /storage/emulated/0/Android/data/com.machiav3lli.fdroid/files/index
ls -l /storage/emulated/0/Android/data/com.machiav3lli.fdroid/files/
# take copy the user and group id of the existing files
# and replace what's below 
chmod user-id:group-id /storage/emulated/0/Android/data/com.machiav3lli.fdroid/files/index

The files directory should exist already.

Thaodan avatar Jul 14 '26 17:07 Thaodan

The permissions on the directory are wrong.

have you been able to resolve this issue?

Yes, I solved it, but root is required. I have to say that if this problem is not solved, I recommend you to switch to droidify. This solution will only be useful if you are running it for now. If it is lacking in support in the long term, you should use droidify instead of neo store.

I don't think this is the appropriate place to advertise another app.

You can do this with the right permissions with:

mkdir -m770 -p /storage/emulated/0/Android/data/com.machiav3lli.fdroid/files/index
ls -l /storage/emulated/0/Android/data/com.machiav3lli.fdroid/files/
# take copy the user and group id of the existing files
# and replace what's below 
chmod user-id:group-id /storage/emulated/0/Android/data/com.machiav3lli.fdroid/files/index

The files directory should exist already.

There's no prohibition against me mentioning issues in my application suggestion, and it's not possible to bypass sandbox restrictions on any platform with the correct permissions. Furthermore, the inability to create a directory is a current bug, so how can you expect it to be created?

8dmusichannels-star avatar Jul 14 '26 21:07 8dmusichannels-star