Ticket #6388 (new defect)

Opened 7 years ago

Last modified 6 years ago

journal has problems with more than one external storage

Reported by: danielfuhry Owned by: tomeu
Priority: normal Milestone: 8.2.0 (was Update.2)
Component: journal-activity Version:
Keywords: 8.2.0:? needs-testing Cc: gregorio
Action Needed: diagnose Verified: no
Deployments affected: Blocked By:
Blocking:

Description

1) If an USB stick is plugged-in while a sd card is present only the sd card is shown in journal. 2) If both an USB stick and a sd card are present during boot none of them are shown.

secure G1G1 (no developer key or lease) Build: update.1 691 Firmware: Q2D13

Attachments

org.laptop.JournalActivity-1.log Download (24.8 KB) - added by danielfuhry 7 years ago.
org.laptop.JournalActivity-2.log Download (4.6 KB) - added by danielfuhry 7 years ago.
now with both usb and sd card present during boot
datastore.log Download (391 bytes) - added by danielfuhry 7 years ago.
.olpc.store.tar Download (219.0 KB) - added by danielfuhry 6 years ago.
.olpc.store
files_in_journal.txt Download (2.5 KB) - added by danielfuhry 6 years ago.
75 files in journal

Change History

  Changed 7 years ago by tomeu

Can you attach debugging logs?

 http://wiki.laptop.org/go/Attaching_Sugar_Logs_to_Tickets

Thanks!

Changed 7 years ago by danielfuhry

Changed 7 years ago by danielfuhry

now with both usb and sd card present during boot

follow-up: ↓ 3   Changed 7 years ago by tomeu

ups, looks like your datastore is dying at some point. can you attach the datastore logs?

Also, any of your devices has a lot of files in there?

Changed 7 years ago by danielfuhry

in reply to: ↑ 2   Changed 7 years ago by danielfuhry

on the usb stick (/media/XD) are only two files fs.zip and os691.img. on the sd card is one directory .olpc.store (21 files) and two othere files sampleaudio.ogg and secretgarden.pdf.

Replying to tomeu:

ups, looks like your datastore is dying at some point. can you attach the datastore logs? Also, any of your devices has a lot of files in there?

  Changed 7 years ago by tomeu

The logs are not very useful because, apparently, the datastore is dying unexpectedly.

Can you jump into #sugar at some point? If not, I can give here some more instructions for debugging, although will be a bit complicated.

Thanks!

  Changed 7 years ago by danielfuhry

Further details to the bug in cooperation with tomeu.

The bug #6388 occurs when using the journal with both a sd-card and an usb-stick in place.

At some point it was necessary to use remote debugging because the entire device was blocked and didn't respond.

Setup

A XO (secure G1G1 build update.1 691, firmware: q2d13)

A SD-Memory-Card (128 MB)

An USB Stick (2 GB)

(for purpose of remote debugging)

An unencrypted IEEE 802.11g AP on channel 1 (OpenWRT, Atheros AR2315)

XO booted.

3 console-activities launched

switch to tty1

ps aux

kill pid of datastore-service

kill pid of journal-activity

switch back to Xserver

console-activity 1

datastore-service -m

console-activity 2

sugar-launch journal

SD card was inserted

keyboard and mouse no longer responded

XO was reset

olpc.store was removed from SD card.

Everything was plugged in again.

Now both the usb stick and the SD card showed up in the journal.

the usb stick was unmounted. (using the journal)

17 additional files were copied to the usb stick.

The usb stick was plugged in again and doesn't appear in the journal.

Commands executed on the remote side

ssh root@192.168.10.228

tail -f /var/log/messages

 http://pastebin.be/8960

tail -f /home/olpc/.sugar/default/logs/org.laptop.JournalActivity-1.log

 http://pastebin.be/8961

tail -f /home/olpc/.sugar/default/logs/datastore.log

 http://pastebin.be/8962

  Changed 6 years ago by tomeu

  • keywords 8.2.0:? needs-testing added
  • milestone changed from Never Assigned to 8.2.0 (was Update.2)

  Changed 6 years ago by gregorio

  • cc gregorio added
  • next_action set to never set

Hi Daniel,

Do you lose data in this case?

If it doesn't work but no data lost then we can live with it. If data is lost I would treat it more seriously.

Thanks,

Greg S

Changed 6 years ago by danielfuhry

.olpc.store

Changed 6 years ago by danielfuhry

75 files in journal

  Changed 6 years ago by danielfuhry

Hi Greg, The data gets in inconsistent. The journal shows more files. e.g. the journal shows 75 files but there are only 2 files (except .olpc.store) on the disk. see files_in_journal.txt for all files shown in journal and .olpc.store.tar for the .olpc.store directory.

 http://FileHost.JustFreeSpace.Com/736SD_OLPC.7z partition ID: 1, active: no, capacity: 120 Mb, cylinders: 16, tracks: 255, sectors: 63, bytes: 512, file system: FAT16(HUGE)

daniel

  Changed 6 years ago by marco

  • next_action changed from never set to diagnose

  Changed 6 years ago by mikus

This is just a comment -- I am NOT asking for any kind of a change to the code.


I routinely run with two SD cards on my G1G1 XO, plus a USB hard disk (several partitions), plus one or two additional USB sticks. [Obviously, this is by using a cardreader-hub.] Because I do NOT depend upon the Journal to access these removable storage devices (I use CLI commands), I do not *care* how many icons the Journal shows for those devices. [In fact, some of them have hundreds and hundreds of files, so I don't *want* Journal to be "scanning" them.] And if the OLPC does not "automount" all of these devices, that is o.k. with me as well - I can issue the necessary 'mount' command(s) myself.

Note: See TracTickets for help on using tickets.