Lighthouse and ORx development snapshot 2.0.002

I replaced those with new versions.

Actually I purchased this card today. It comes with a SD adapter. This is the real photo :smile:

branko,
is it this with the same name/version as the previous?: ORxPi-update-2.0.002.zip 50.64 MB 2 hrs ago in the dropbox?
Or can I use the update image? If I use this second version, will reformat the sd card automatically, and start the process from beginning?
(I commented out the line in the lighttpd.conf file, start manually the lighttpd, and now started the web server, appeared the setuo web page)

The files are named the same, 2.0.002. Update doesn’t reformat the card. It just replaces the kernel and userspace software.

OK, it seems it is working.
I use RPi B version, and PCTV 406e DVB-S2 receiver, and USB hub, with 2A power unit.
Only some notes:

First, when I started to boot from the fresh SD with the v2.0.002 system, I didnt see any console mesages on the HDMI display, only the rainbow graphic.
It would be usefuul, at least in this test period, to enable the console on the graphic display. I dont know, how can make this, maybe in the boot partion in some of the config files.
I didnot see any signes of the ethernet activity. When I disconnected the SD card, I made in the …/network/interfaces file manualy a fix, static ip address config for the RPi on ethrenet. In next boot I can access on it the system.
I dont know what its behavioure at first boot with the dvb receiver, I dont use it in first time.
Finally I downloaded the improoved version of the update file, and chaneged the zImage on the SD card. After boot it start the setup web page on the assigned ip address.

t.janos

Test result for snapshot 2.0.002 fix

With snapshot 2.0.002fix, I just started the RPi2 with HDStar tuner and TP-LINK TL-WN722N attached. Everything is working fine but unable to get the signal LOCK.

The updated image contains config.txt that has these two lines:

hdmi_drive=1
hdmi_force_hotplug=1

If you only updated zImage, it’s possible that these two lines are not present in your config.txt. Try adding them and see if that works.

Has anyone else had a similar issue with Pi connected to LAN?

Can you download the system log from settings page and post it online somewhere?

Uploaded to,
http://1drv.ms/1M5pv7q

NOTE: I did few restarts.

Yes. Ethernet never starts.

So expected behavior (and what I’m seeing here) is that booting with LAN cable plugged in causes the ethernet LEDs to start blinking after 12 seconds or so. Shortly after that, I am able to log into the device. Web server also becomes available shortly after that. I am also able to connect and disconnect the LAN cable during operation without issues. That’s on Pi2 at least. Exact time interfaces would become available may vary depending on whether it’s a first boot and whether it’s Pi1 or Pi2. The condition for this to work is that the router has operational DHCP which is the default on most routers.

Yes. Ethernet works only without the WiFi adapter connected.

After some reboot I left my receiver switched on/online for approx. 3.5 hours, beetween Dec 10 19:28 and Dec 10 22:50.
In this time it received approx 151 M data in /mnt/data dir.
I downloaded the system log file, diags_ORxPi_2015-12-11_07-14-34.log.txt, it is near 1.2 M size, and it has big amount of informtions.
It is a very good structured, easy readable and has all the important informations, need to diagnoze and follow the working state of the system. I would like to express my congrats to design and make this, It will be a good tool in the next test periods and maybe in the real working conditions.
Only one additonal notes on this: on the log partion the reserved space for logs is 33.7 M and the log, collected during this 3.5 hours period it reserved 2.5 M, 8 percentes. It seems, it will need some post-processing, compressing.
I use a 8G sized SD card, here is the space statistics after the setup and this short running period:

Disk space:
Filesystem Size Used Available Use% Mounted on
devtmpfs 171.8M 0 171.8M 0% /dev
tmpfs 199.6M 4.0K 199.6M 0% /dev/shm
tmpfs 199.6M 296.0K 199.4M 0% /tmp
tmpfs 199.6M 64.0K 199.6M 0% /run
/dev/mmcblk0p1 75.1M 53.3M 21.8M 71% /boot
/dev/mmcblk0p2 14.1M 162.0K 12.9M 1% /mnt/persist
/dev/mmcblk0p3 33.7M 2.5M 28.5M 8% /var/log
/dev/mmcblk0p4 6.8G 151.6M 6.3G 2% /mnt/data

t.janos

Yeah, logs can get large. We’ll try to figure out a way to make that work and reduce the amount of logging in general.

What wifi adapter are you using? Also, can you check if ethernet stops working when you hotplug the WiFI adapter after LAN connection is established?

After approx 1 day running, here are some notes about the ORxPi 2 system status based on the diags log:

Platform

Name: orxpi
Arch: armv6l
Version: 2.0.002
08:28:05 up 1 day, 1:33, load average: 1.20, 1.33, 1.22

In the process list there are many postgres idle processes:

================================================================================
Processes

307 root {librarian} /usr/bin/python /usr/bin/librarian --conf /etc/librarian.ini
337 root {fsal-daemon} /usr/bin/python /usr/bin/fsal-daemon --pid-file /var/run/fsal.pid --conf /etc/fsal.ini
265 root /usr/sbin/ondd -d --pid-file /var/run/ondd.pid -o /mnt/data/downloads
253 root /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf

262 postgres /usr/bin/postgres -D /mnt/data/pgsql
274 postgres postgres: checkpointer process
275 postgres postgres: writer process
276 postgres postgres: wal writer process
277 postgres postgres: autovacuum launcher process
278 postgres postgres: stats collector process
339 postgres postgres: postgres fs 127.0.0.1(33962) idle
359 postgres postgres: postgres files 127.0.0.1(33969) idle
360 postgres postgres: postgres sessions 127.0.0.1(33970) idle
361 postgres postgres: postgres twitter 127.0.0.1(33971) idle
362 postgres postgres: postgres auth 127.0.0.1(33972) idle
363 postgres postgres: postgres content 127.0.0.1(33973) idle
364 postgres postgres: postgres notifications 127.0.0.1(33974) idle
374 postgres postgres: postgres fs 127.0.0.1(33975) idle
375 postgres postgres: postgres fs 127.0.0.1(33976) idle
376 postgres postgres: postgres content 127.0.0.1(33977) idle
395 postgres postgres: postgres fs 127.0.0.1(33978) idle
433 postgres postgres: postgres fs 127.0.0.1(33984) idle
448 postgres postgres: postgres sessions 127.0.0.1(34007) idle
449 postgres postgres: postgres sessions 127.0.0.1(34008) idle
450 postgres postgres: postgres sessions 127.0.0.1(34009) idle
451 postgres postgres: postgres sessions 127.0.0.1(34010) idle
452 postgres postgres: postgres notifications 127.0.0.1(34011) idle
2991 postgres postgres: postgres auth 127.0.0.1(39289) idle
2992 postgres postgres: postgres auth 127.0.0.1(39290) idle
2993 postgres postgres: postgres auth 127.0.0.1(39291) idle
2994 postgres postgres: postgres auth 127.0.0.1(39292) idle
2995 postgres postgres: postgres notifications 127.0.0.1(39293) idle
2996 postgres postgres: postgres notifications 127.0.0.1(39294) idle

The log file sizes:

ORxPi v2.0.002 | outernet@orxpi:/var/log> ls -l
total 13999
-rw-rw-rw- 1 root root 767841 Dec 12 09:01 fsal.log
-rw-r–r-- 1 root root 113141 Dec 12 09:01 librarian.log
-rw-r–r-- 1 root root 10485499 Dec 12 08:59 librarian.log.1
-rw------- 1 root root 2596794 Dec 12 09:01 lighttpd-access.log
drwx------ 2 root root 12288 Jan 1 1970 lost+found
-rw-r–r-- 1 root root 145320 Dec 12 09:00 messages
-rw-r–r-- 1 root root 204861 Dec 12 05:20 messages.0
-rw-r–r-- 1 root root 1887 Jan 1 1970 setup

The status of the “log partition”, used 46%:

ORxPi v2.0.002 | outernet@orxpi:/var/log> df
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 175888 0 175888 0% /dev
tmpfs 204440 4 204436 0% /dev/shm
tmpfs 204440 296 204144 0% /tmp
tmpfs 204440 52 204388 0% /run
/dev/mmcblk0p1 76907 54566 22342 71% /boot
/dev/mmcblk0p2 14455 162 13175 1% /mnt/persist
/dev/mmcblk0p3 34533 14479 17263 46% /var/log
/dev/mmcblk0p4 7181144 507944 6285368 7% /mnt/data

The size of the downloaded diag file is near 10 M:
9978822 Dec 12 09:29 diags_ORxPi_2015-12-12_08-28-05.log.txt

================

I browsed the diag file searching for Error messages. Here is the result (part):

1 —

[2015-12-11 07:15:05 (+0000)] DEBUG ONDD: received data: <?xml version="1.0" encoding="UTF-8"?>World Possible: RACHEL/Infonet Biovision/export/res/files/1308.400x400.jpeg
[2015-12-11 07:15:05 (+0000)] ERROR Unhandled error ‘‘NoneType’ object has no attribute ‘find’’ at GET /ondd/status/:

Traceback (most recent call last):
File “/usr/bin/bottle.py”, line 862, in _handle
return route.call(**args)
File “/usr/lib/python2.7/site-packages/librarian_core/contrib/databases/plugins.py”, line 11, in wrapper
return callback(*args, **kwargs)
File “/usr/lib/python2.7/site-packages/bottle_utils/i18n.py”, line 387, in wrapper
return callback(*args, **kwargs)
File “/usr/bin/bottle.py”, line 1729, in wrapper
rv = callback(*a, **ka)
File “/usr/lib/python2.7/site-packages/librarian_captive/plugins.py”, line 26, in wrapper
return callback(*args, **kwargs)
File “/usr/lib/python2.7/site-packages/librarian_library/plugins.py”, line 39, in wrapper
return callback(*args, **kwargs)
File “/usr/bin/bottle.py”, line 3612, in wrapper
result = func(*args, **kwargs)
File “/usr/lib/python2.7/site-packages/librarian_ondd/routes.py”, line 20, in get_signal_status
return dict(status=ipc.get_status())
File “/usr/lib/python2.7/site-packages/ondd_ipc/ipc.py”, line 170, in get_status
’has_lock’: tuner.find(‘lock’).text == ‘yes’,
AttributeError: ‘NoneType’ object has no attribute ‘find’

2 —

[2015-12-11 07:16:35 (+0000)] DEBUG ONDD: received data: <?xml version="1.0" encoding="UTF-8"?>News/Malawi/Capital Radio Malawi/Parliament under pressure to explain expenditure/image0064.png
[2015-12-11 07:16:35 (+0000)] ERROR Unhandled error ‘‘NoneType’ object has no attribute ‘find’’ at GET /ondd/status/:

((The Traceback text is the same as inn the previous example))

3 —

[2015-12-11 07:36:45 (+0000)] DEBUG ONDD: received data: <?xml version="1.0" encoding="UTF-8"?>News/Malawi/Capital Radio Malawi/Lilongwe by pass to be opened on Tuesday/image0023.jpg
[2015-12-11 07:36:46 (+0000)] ERROR Unhandled error ‘‘NoneType’ object has no attribute ‘find’’ at GET /ondd/status/:

((The Traceback text is the same))

4 —

[2015-12-11 07:44:49 (+0000)] DEBUG ONDD: received data: <?xml version="1.0" encoding="UTF-8"?>World Possible: RACHEL/Infonet Biovision/export/res/files/3574.400x400.jpeg
[2015-12-11 07:44:49 (+0000)] ERROR Unhandled error ‘‘NoneType’ object has no attribute ‘find’’ at GET /ondd/status/:

5 —

((In the “application log” part))

[2015-12-11 07:58:22 (+0000)] DEBUG ONDD: received data: <?xml version="1.0" encoding="UTF-8"?>World Possible: RACHEL/Infonet Biovision/export/res/files/3643.400x300.png
[2015-12-11 07:58:22 (+0000)] ERROR Unhandled error ‘‘NoneType’ object is not iterable’ at GET /ondd/files/:

6 —

[2015-12-11 07:58:43 (+0000)] DEBUG ONDD: received data: <?xml version="1.0" encoding="UTF-8"?>65<carousel_id>1</carousel_id>News/Malawi/Capital Radio Malawi/Opposition for extended debate on termination of JCE increase of school fees/image0052.jpg498e00364e396b56c0379d6233e8f80cbf13314b536f02ec6124323c9a457111<block_count>36</block_count><block_received>12</block_received>no<carousel_id>2</carousel_id>World Possible: RACHEL/Infonet Biovision/export/res/files/3444.400x300.jpege69f477d675b19b83acdc2882b6e6b83e7653e2f1513e2445a2bc660cea581a7<block_count>14</block_count><block_received>6</block_received>no<carousel_id>3</carousel_id>updates/wt200/outernet-rx-2.0.000.pkgfaacf280b6449063c3371e7548d0573420fb647e18aa7d9289519ea737bdfaae<block_count>46140</block_count><block_received>2450</block_received>yes<carousel_id>4</carousel_id>.appdata/unicef-tweets/unicef_nepal/img/674900881016508416.jpg9d9900f22ca4392cc81c8dff8ab511c1f7647a0a0d2f371c18768934c77d4b06<block_count>76</block_count><block_received>49</block_received>yes\00<?xml version="1.0" encoding="UTF-8"?>World Possible: RACHEL/Infonet Biovision/export/res/files/3444.400x300.jpeg
[2015-12-11 07:58:43 (+0000)] ERROR ONDD: Could not parse XML data

7 —

[2015-12-11 09:24:13 (+0000)] DEBUG ONDD: received data: <?xml version="1.0" encoding="UTF-8"?>World Possible: RACHEL/Infonet Biovision/export/res/files/2154.280x185.clip.jpeg
[2015-12-11 09:24:13 (+0000)] ERROR Unhandled error ‘‘NoneType’ object has no attribute ‘find’’ at GET /ondd/status/:

8 —

[2015-12-11 09:27:27 (+0000)] DEBUG ONDD: received data: <?xml version="1.0" encoding="UTF-8"?>News/Malawi/Capital Radio Malawi/Minister maintains stance of school fees hike/image0066.png
[2015-12-11 09:27:27 (+0000)] ERROR Unhandled error ‘‘NoneType’ object has no attribute ‘find’’ at GET /ondd/status/:

9 —

[2015-12-11 09:30:34 (+0000)] DEBUG ONDD: received data: <?xml version="1.0" encoding="UTF-8"?>News/Malawi/Capital Radio Malawi/Minister maintains stance of school fees hike/image0002.jpg
[2015-12-11 09:30:34 (+0000)] ERROR Unhandled error ‘‘NoneType’ object has no attribute ‘find’’ at GET /ondd/status/:

10 —

[2015-12-11 09:39:57 (+0000)] DEBUG ONDD: received data: <?xml version="1.0" encoding="UTF-8"?>World Possible: RACHEL/Infonet Biovision/export/res/files/2130.300x200.jpeg
[2015-12-11 09:39:57 (+0000)] ERROR Unhandled error ‘‘NoneType’ object has no attribute ‘find’’ at GET /ondd/status/:

11 ----

[2015-12-11 09:40:45 (+0000)] DEBUG ONDD: received data: <?xml version="1.0" encoding="UTF-8"?>World Possible: RACHEL/Infonet Biovision/export/res/files/3409.400x400.jpeg
[2015-12-11 09:40:45 (+0000)] ERROR Unhandled error ‘‘NoneType’ object has no attribute ‘find’’ at GET /ondd/status/:


and so…
t.janos

Thanks for checking those out. Can you aslo post the memory usage numbers?

Also, there’s a new image for ORx (2.0.003). Some details provided here.

Branko, I am having the same problem with FSAL again in my Lighthouse which I reported yesterday. After you said the Lighhouse didn’t seem to like my hard drive, I removed it and rebooted/reloaded 2.0.002 to start from scratch.

This morning only after seeing about 10 pages, I did a FSAL restart and about 50 new pages popped up into the Library. I’ll send you my system log. Ken

As mentioned in the email, please update to 2.0.003 as the previous version does not include FSAL logs.

Hi Branko, I’m in the Lighthouse configuration. Dropbox only has the ORxPi 2.0.003. Ken

Here is the memory usage stats:

================================================================================
Memory
--------------------------------------------------------------------------------
             total       used       free     shared    buffers     cached
Mem:           399        386         12         19         40        234
-/+ buffers/cache:        111        288
Swap:            0          0          0

================================================================================

Need to note, here is a very cloudly weather now. And it seems, my dish pointing changed in the last days. The signal strengh tend to go to 6-9 %, and often lost the lock status. But its working, receive the files regularly.
t.janos