This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

ERROR Bad file descriptor
#1
Hi all,

With every script that runs, I see the following message in the log files:

Quote:* string: [01][03][00][C8][00][01][05][F4]

ERROR Bad file descriptor


The following messages appear in the system log:

Quote:Jan 1 00:00:02 LogicMachine kern.info kernel: [ 0.797559] Waiting for root device /dev/mmcblk0p2...
Jan 1 00:00:02 LogicMachine kern.info kernel: [ 0.808955] mmcblk0: mmc0:59b4 00000 3.67 GiB
Jan 1 00:00:02 LogicMachine kern.info kernel: [ 0.811916] mmcblk0: p1 p2 p3
Jan 1 00:00:02 LogicMachine kern.info kernel: [ 0.905507] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
Jan 1 00:00:02 LogicMachine kern.info kernel: [ 0.905568] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
Jan 1 00:00:02 LogicMachine kern.info kernel: [ 1.025102] EXT4-fs (mmcblk0p2): recovery complete
Jan 1 00:00:02 LogicMachine kern.info kernel: [ 1.045362] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
Jan 1 00:00:02 LogicMachine kern.info kernel: [ 1.045540] VFS: Mounted root (ext3 filesystem) readonly on device 179:2.
Jan 1 00:00:02 LogicMachine kern.info kernel: [ 1.905694] EXT4-fs (mmcblk0p2): re-mounted. Opts: nodelalloc
Feb 16 04:00:04 LogicMachine user.info sysinit: /dev/mmcblk0p3: recovering journal
Feb 16 04:00:05 LogicMachine user.info sysinit: Setting free inodes count to 126732 (was 0)
Feb 16 04:00:05 LogicMachine user.info sysinit: Setting free blocks count to 482477 (was 0)
Feb 16 04:00:05 LogicMachine user.info sysinit: /dev/mmcblk0p3: clean, 4340/131072 files, 41811/524288 blocks
Feb 16 04:00:05 LogicMachine kern.info kernel: [ 5.865568] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: nodelalloc
Feb 16 04:00:04 LogicMachine user.info sysinit: e2fsck 1.44.5 (15-Dec-2018)


Quote:File system, Total size, Used, Free, Mounted on
/dev/root, 108.0M, 23.3M (22%), 84.6M, /
tmpfs, 61.3M, 24.7M (40%), 36.6M, /tmp
tmpfs, 4.0M, 12.0K (0%), 4.0M, /dev
/dev/mmcblk0p3, 1.9G, 74.8M (4%), 1.8G, /data


Any idea how I can check and repair the filesystem? Or how I can figure out which file is causing the issue? Should I replace the SD card?

Thanks
Reply
#2
Check what you have in common functions and all user libraries that have "auto load" enabled. This looks like modbus debug messages.
Reply


Forum Jump: