Gladys is down

Hello everyone,

For a few days my Gladys instance has been down :sad_but_relieved_face::grimacing:

Gladys is inaccessible from the browser but also via SSH (via Putty).

However, ping responds correctly!

Having reinstalled several weeks ago on an SSD for greater longevity, I initially thought it was a power issue (I use the Sonoff USB Zigbee bridge).

I therefore opted for a separate power supply for the SSD… but without success.

At each reboot (barbaric mode required: unplug/replug), I get access in the browser but it only lasts only 2 or 3 minutes!

Does anyone have any ideas?

Hello,

A reply to a ping just means the IP interface is still « alive »

  • Are there (there should be) any entries in:
    /var/log/syslog
    /var/log/messages
    /var/log/kern.log

  • What is the Raspberry Pi model? How much memory? Which OS?

Phil

thank you @Phil for your feedback

Unfortunately after reboot I don’t have time to do much… it crashes

ok.
the files in question: syslog, messages and kern.log, the name without suffix (« tout court ») is the current file, older files are suffixed with .1, .2 etc, then with .gz (the files are compressed to take up less space)
example on a Raspberry Pi that’s been running for months, continuously.

root@piwigo:/var/log# ls -larlt syslog*
-rw-r----- 1 root adm 734411 Jan  9  2022 syslog.2
-rw-r----- 1 root adm 528729 Jan 23  2022 syslog.4
-rw-r----- 1 root adm 475204 Jan 30  2022 syslog.3
-rw-r----- 1 root adm 112998 Dec 11 00:00 syslog.4.gz
-rw-r----- 1 root adm 111543 Dec 18 00:00 syslog.3.gz
-rw-r----- 1 root adm 114919 Dec 25 00:00 syslog.2.gz
-rw-r----- 1 root adm 890876 Jan  1 00:00 syslog.1
-rw-r----- 1 root adm 771513 Jan  5 09:09 syslog
root@piwigo:/var/log# ls -larlt messages*
-rw-r----- 1 root adm 142 Dec  4 00:10 messages.4.gz
-rw-r----- 1 root adm 141 Dec 11 00:10 messages.3.gz
-rw-r----- 1 root adm 250 Dec 18 06:19 messages.2.gz
-rw-r----- 1 root adm 148 Dec 25 00:10 messages.1
-rw-r----- 1 root adm 148 Jan  1 00:10 messages
root@piwigo:/var/log# ls -larlt kern.log*
-rw-r----- 1 root adm  8944 Nov  3 10:03 kern.log.4.gz
-rw-r----- 1 root adm 15127 Nov 10 23:18 kern.log.3.gz
-rw-r----- 1 root adm 24649 Nov 11 16:38 kern.log.2.gz
-rw-r----- 1 root adm   145 Nov 14 19:58 kern.log.1
-rw-r----- 1 root adm     0 Nov 20 00:00 kern.log

If it’s the Sonoff key that causes the crash, it would be useful to boot the Raspberry Pi without the key to access its files.

pi3 1GB
gladys uses Docker etc., 1 GB might be tight, right?
are there any sizing charts or recommendations for Gladys, like (maybe a question for @pierre-gilles?)

  • minimum configuration: pi3 - x GB
  • with x devices / scenes: recommended memory y GB
    etc
    from experience there’s never enough memory; the CPU is « just » that it’s slower or faster
    The output of the command free would be interesting (Display amount of free and used memory in the system)

If a Unix system crashes there’s always a reason.
I’m willing to read the files
Phil

OK thanks

I’ll restart it tonight without the Zigbee key to give you feedback

ok
it’s a Raspberry Pi 3: so the image that’s running is indeed a 32-bit one?
see the discussion in the thread (Live Youtube bilan de 2022 et projets pour 2023 ce mardi soir à 21h! - #35 par Phil) ..

Phil

From memory I’d say more like 64

hmm, I think a 32-bit version would be the one to use
see: Versions de Raspberry Pi OS : les réponses à vos questions – RaspberryTips
there’s a summary at the bottom of the page that I reproduce here:

So, to summarize your options:

* **Beginners and most people** ⇒ Raspberry Pi OS Bullseye (32-bit).
* **No Internet on the Pi** ⇒ Raspberry Pi OS Bullseye Full (32-bit).
* **Advanced users without a screen** ⇒ Raspberry Pi OS Bullseye Lite (32-bit).
* **Adventurous users with a recent model** ⇒ Same but in 64-bit.
* **Cautious users** ⇒ Legacy.

Personally I have several Pis purring along without any problem .. 64-bit version only on Pi 4s
Phil

I got back a bit late for the tests… I’m counting on the weekend to look into that…
And to get Gladys back up and running.

Temporarily with my Pi and a 32-bit version and afterwards see about using a miniPC

1 Like

So I reverted the image to 32-bit

Several problems encountered:

  1. unable to restore from the home page - login/authentication issue

  2. I therefore created a local user then restored the backup in Settings

That’s normal — you need to re-pair your devices; the backup does not include zigbee2mqtt

The thread is ongoing; the developer is almost finished

That’s great!

That’s what I started doing last night… I suspected it when I saw the « Zigbee discovery » panel completely empty!

However, the « Devices » panel still listed all my devices…

Pairing is therefore simplified because a simple reset and everyone goes back where they belong!!!

Yes, you just need to re-pair them on the Glad

Friday evening (6/01/23) I tried to access the Gladys interface via the IP address but it was impossible. I tried on my PC and my smartphone with Firefox and Chrome and with Putty. Always the same: The connection failed.

Same on Saturday, Sunday and today.
EDIT 3 (14/01/23): It’s been more than a week since I haven’t had access to the Gladys interface, except via Gladys Plus… I’m away for a week starting tomorrow. If someone wants to try to help me, it’s either today or starting next Saturday.

However it’s accessible via Gladysplus
EDIT: and ping responds.

I switched to a mini-PC last week.

EDIT 2 (9/01/23): On the mini-PC side, Ubuntu works, access to Gladys at 192.168.. works, ping to the Windows PC works.

The logs:
Darn, I made a 35-page PDF with docker ps and the container logs. It’s not possible to upload it.
How to put it? A link to my Dropbox?

EDIT 4 (14/01/23): docker restart gladys (in a terminal on the mini PC) changes nothing

EDIT 5 (23/01/23): I’m back if someone can help me.
It looks like connections to the mini PC running Linux are blocked.

As it is, it’s hard to guess what’s happening, but it must be a network issue at your place, I think; otherwise Gladys Plus wouldn’t work and access to Gladys from your mini PC wouldn’t either.

Are you on the same local network? I remember one of your posts where you said you had several local networks.

Yes, Gladys is on an address at 192.168.68.1..
my PC: 192.168.68.1..
my smartphone: 192.168.68.1..
Gateway: 192.168.68.1
The subnet mask is the same for all.
After installing Gladys on the mini-PC, it worked, and one day, it stopped.

EDIT 1 : One question:
Can

Gladys’s address is set to automatic, but have you configured your router to give it a fixed IP address?

Otherwise, have you done a ping from your PC?

Have you run a scan with a tool like Advanced IP Scanner or Wireshark?

From your mini PC, which address do you enter to access Gladys?

Yes, on the mini-PC that hosts Gladys it’s set to automatic.
I’ve set the IP on the router.

As for the ping,

I just connected the PC via Ethernet (it was on Wi‑Fi until now) but nothing changes.
Ping result:
Statistiques Ping pour 192.168.68.1..:
Packets: Sent = 4, Received = 4, Lost = 0 (loss 0%),
Approximate round trip times in milliseconds:
Minimum = 2ms, Maximum = 5ms, Average = 3ms

On the mini-PC, I set either the IP address fixed on the router (192.168.68.1..), or localhost.

EDIT 1:
Result from Advanced IP Scanner:

First, if the ping responds, that’s good. And what does your browser show when you try to access Gladys?
Can you attach a screenshot?

The page takes a very long time to load in FF and I get:
Firefox :
![2023_01_24_ad_ip_gladys_FF|543