[GH-ISSUE #2512] running git commit in a s3fs mount error #1227

Closed
opened 2026-03-04 01:52:23 +03:00 by kerem · 6 comments
Owner

Originally created by @zhujintao on GitHub (Aug 15, 2024).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2512

git commit -a -m "update"
error: non-monotonic index .git/objects/pack/._pack-50f486edacd086d8cc2259d1aa811a006d8549d0.idx
error: non-monotonic index .git/objects/pack/._pack-50f486edacd086d8cc2259d1aa811a006d8549d0.idx
error: non-monotonic index .git/objects/pack/._pack-50f486edacd086d8cc2259d1aa811a006d8549d0.idx
error: non-monotonic index .git/objects/pack/._pack-50f486edacd086d8cc2259d1aa811a006d8549d0.idx
error: non-monotonic index .git/objects/pack/._pack-50f486edacd086d8cc2259d1aa811a006d8549d0.idx
fatal: sha1 file '/s3disk/zkitx/.git/index.lock' write error: Device not configured

Originally created by @zhujintao on GitHub (Aug 15, 2024). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2512 `git commit -a -m "update"` error: non-monotonic index .git/objects/pack/._pack-50f486edacd086d8cc2259d1aa811a006d8549d0.idx error: non-monotonic index .git/objects/pack/._pack-50f486edacd086d8cc2259d1aa811a006d8549d0.idx error: non-monotonic index .git/objects/pack/._pack-50f486edacd086d8cc2259d1aa811a006d8549d0.idx error: non-monotonic index .git/objects/pack/._pack-50f486edacd086d8cc2259d1aa811a006d8549d0.idx error: non-monotonic index .git/objects/pack/._pack-50f486edacd086d8cc2259d1aa811a006d8549d0.idx fatal: sha1 file '/s3disk/zkitx/.git/index.lock' write error: Device not configured
kerem 2026-03-04 01:52:23 +03:00
  • closed this issue
  • added the
    need info
    label
Author
Owner

@gaul commented on GitHub (Aug 15, 2024):

Are you running git commit in a s3fs mount? Does this reproduce using any specific git repo that I can access?

<!-- gh-comment-id:2290815319 --> @gaul commented on GitHub (Aug 15, 2024): Are you running `git commit` in a s3fs mount? Does this reproduce using any specific git repo that I can access?
Author
Owner

@zhujintao commented on GitHub (Aug 15, 2024):

git clone repository in s3fs mount, modify files and git commit error

<!-- gh-comment-id:2290975547 --> @zhujintao commented on GitHub (Aug 15, 2024): git clone repository in s3fs mount, modify files and git commit error
Author
Owner

@ggtakec commented on GitHub (Aug 17, 2024):

@zhujintao
I have tried clone/change sources/add files/commit/push of the git repository using my own environment.
However, it works fine and I cannot reproduce this problem.

Please tell us your s3fs startup command line(or fstab).
Also, could you collect logs by specifying dbglevel(=info)(and curldbg if necessary) options?
I think you can find logs when an error occurs, so please share that information.

<!-- gh-comment-id:2294549515 --> @ggtakec commented on GitHub (Aug 17, 2024): @zhujintao I have tried clone/change sources/add files/commit/push of the git repository using my own environment. However, it works fine and I cannot reproduce this problem. Please tell us your s3fs startup command line(or fstab). Also, could you collect logs by specifying `dbglevel(=info)`(and `curldbg` if necessary) options? I think you can find logs when an error occurs, so please share that information.
Author
Owner

@zhujintao commented on GitHub (Aug 17, 2024):

@ggtakec
tks! I remount it using command script it will work normally.

use launchd mount problem, for macOS

launchctl load ~/Library/LaunchAgents/mydisk-sync.s3fs.plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
	<dict>
		<key>Keepalive</key>
		<true/>
		<key>Label</key>
		<string>mydisk-sync.s3fs</string>
		<key>Program</key>
		<string>/usr/local/bin/s3fs</string>
		<key>ProgramArguments</key>
		<array>
			<string>/usr/local/bin/s3fs</string>
			<string>mydisk-sync</string>
			<string>/Users/xxxx/mydisk-sync</string>
			<string>-o</string>
			<string>kernel_cache</string>
			<string>-o</string>
			<string>endpoint=xxxxxxxxx</string>
			<string>-o</string>
			<string>passwd_file=/Users/xxxx/.passwd-s3fs</string>
			<string>-o</string>
			<string>url=https://xxxxxxxxxxx</string>
			<string>-f</string>
			<string>-o</string>
			<string>allow_other</string>
			<string>-o</string>
			<string>compat_dir</string>
			<string>-o</string>
			<string>dbglevel=debug</string>
			<string>-o</string>
			<string>curldbg</string>
			<string>-o</string>
			<string>volname=MyDisk-S3</string>
		</array>
		<key>RunAtLoad</key>
		<true/>
		<key>StandardErrorPath</key>
		<string>/tmp/mydisk-sync.s3fs-err.log</string>
		<key>StandardOutPath</key>
		<string>/tmp/mydisk-sync.s3fs-out.log</string>
	</dict>
</plist>
<!-- gh-comment-id:2294898019 --> @zhujintao commented on GitHub (Aug 17, 2024): @ggtakec tks! I remount it using command script it will work normally. use `launchd` mount problem, for macOS `launchctl load ~/Library/LaunchAgents/mydisk-sync.s3fs.plist` ``` <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Keepalive</key> <true/> <key>Label</key> <string>mydisk-sync.s3fs</string> <key>Program</key> <string>/usr/local/bin/s3fs</string> <key>ProgramArguments</key> <array> <string>/usr/local/bin/s3fs</string> <string>mydisk-sync</string> <string>/Users/xxxx/mydisk-sync</string> <string>-o</string> <string>kernel_cache</string> <string>-o</string> <string>endpoint=xxxxxxxxx</string> <string>-o</string> <string>passwd_file=/Users/xxxx/.passwd-s3fs</string> <string>-o</string> <string>url=https://xxxxxxxxxxx</string> <string>-f</string> <string>-o</string> <string>allow_other</string> <string>-o</string> <string>compat_dir</string> <string>-o</string> <string>dbglevel=debug</string> <string>-o</string> <string>curldbg</string> <string>-o</string> <string>volname=MyDisk-S3</string> </array> <key>RunAtLoad</key> <true/> <key>StandardErrorPath</key> <string>/tmp/mydisk-sync.s3fs-err.log</string> <key>StandardOutPath</key> <string>/tmp/mydisk-sync.s3fs-out.log</string> </dict> </plist> ```
Author
Owner

@ggtakec commented on GitHub (Aug 24, 2024):

@zhujintao Thanks for your reply.
Does this issue occur only with s3fs launched via launchd on macOS?
You say that the error occurs with the git commit command, but do other operations such as reading and writing to files and directory listings work normally?
In any case, I think we will need to check the logs output by dbglevel and curldbg to identify the cause.

<!-- gh-comment-id:2307958511 --> @ggtakec commented on GitHub (Aug 24, 2024): @zhujintao Thanks for your reply. Does this issue occur only with s3fs launched via launchd on macOS? You say that the error occurs with the `git commit` command, but do other operations such as reading and writing to files and directory listings work normally? In any case, I think we will need to check the logs output by dbglevel and curldbg to identify the cause.
Author
Owner

@zhujintao commented on GitHub (Aug 27, 2024):

Now, s3fs launched normal, only upgrade macOS 15 Beta 7. Thank!

<!-- gh-comment-id:2312362151 --> @zhujintao commented on GitHub (Aug 27, 2024): Now, s3fs launched normal, only upgrade macOS 15 Beta 7. Thank!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#1227
No description provided.