Date not appearing when listing using ls -la

Hi everyone,

this strange error suddenly popped up out of no where

when I do a directory listing , the date part doesn't appear

root@oradb:/backup>ls -la
total 58069304
drwxr-xr-x   3 root     system         4096 23  21:56 .
drwxr-xr-x  44 root     system         1536 23  21:47 ..
-rw-r--r--   1 root     system          260 21  2013  app.txt
-rw-r--r--   1 root     system          243 11  21:46 backupcmd.txt
-rw-r--r--   1 root     system         3075 23  21:56 backuptxt.txt
-rw-r--r--   1 root     system    684900352 23  22:01 bkp_23Aug13_oratech.tgz
-rw-r--r--   1 root     system   9328996379  1  05:08 bkp_28FEB13_oraapp.tgz
-rw-r--r--   1 root     system   1792083276  5  00:25 bkp_4JULY13_oradata2.tgz
-rw-r--r--   1 root     system   15487234272  5  04:54 bkp_4JULY13_oradata.tgz
-rw-r--r--   1 root     system   2438222138  4  22:03 bkp_4JULY13_oratech.tgz
-rw-r--r--   1 root     system          325 21  2013  db.txt
drwxr-xr-x   2 root     system          256 21  2013  lost+found
root@oradb:/backup>

on the other machine

root@atec:/testbk>ls -la
total 57777968
drwxr-xr-x   3 root     system          256 Jul 20 00:48 .
drwxr-xr-x  24 root     system         4096 Jul 28 23:42 ..
-rw-r--r--   1 root     system     64460876 Jul 20 00:45 backup.txt
-rw-r--r--   1 root     system     54742027 Jul 20 00:46 backup11apr13.txt
-rw-r--r--   1 root     system           76 Jul 20 00:46 backupcmd.txt
-rw-r--r--   1 root     system   29463099245 Jul 20 07:08 bk_20JUL13_atec.tgz
drwxr-xr-x   2 root     system          256 Jul 20 00:36 lost+found
root@atec:/testbk>

checking the errpt of the machine where date is not appearing

# errpt | more
root@oradb:/backup>errpt | more
IDENTIFIER TIMESTAMP  T C RESOURCE_NAME  DESCRIPTION
173C787F   0801112613 I S topsvcs        Possible malfunction on local adapter
BE0A03E5   0619125613 P H sysplanar0     ENVIRONMENTAL PROBLEM
BE0A03E5   0619125113 P H sysplanar0     ENVIRONMENTAL PROBLEM
0BA49C99   0619125013 T H scsi3          SCSI BUS ERROR
BE0A03E5   0608203113 P H sysplanar0     ENVIRONMENTAL PROBLEM
0BA49C99   0608203013 T H scsi3          SCSI BUS ERROR
BE0A03E5   0605184713 P H sysplanar0     ENVIRONMENTAL PROBLEM
BE0A03E5   0605184513 P H sysplanar0     ENVIRONMENTAL PROBLEM
BE0A03E5   0529020013 P H sysplanar0     ENVIRONMENTAL PROBLEM


anyone came across such problem and where should I begin to troubleshoot it ?

As I wild guess, I'd say that LC_TIME or LC_ALL was modified to specify a locale where the abbreviated month names contain characters that do not display properly on the terminal you're using. On the system where ls is not correctly displaying timestamps, run the command:

locale

Then try running the command:

LC_ALL=C ls -la

instead of the command:

ls -la

and show us the output from both commands.

1 Like

Problem Solved.

Don thank you very much, yes locale was something else, running the command

LC_ALL=C ls -la

did list it properly.

Locale has been changed to english now.

thanks once again.

Glad you figured it out, but you should URGENTLY check your system:

"Environmental Problem" in your errpt output is something serious, usually the hardware: a dead redundant A/C adapter, a fan not working, or something such. Use errpt -aj <error-id> to get the details.

I hope this helps.

bakunin

1 Like

thanks bakunin for the advice and consideration.
there was a problem with power fluctuation....

I will have it sorted it out.