No messages in web interface

34 views
Skip to first unread message

Stephan Mühlstrasser

unread,
Feb 27, 2025, 10:13:56 AMFeb 27
to swupdate
Hi,

I'm working on an update procedure via swupdate in Yocto Scarthgap. I can upload software updates via the web interface and they are installed successfully.

In the web interface there is the "Messages" box at the bottom, but no messages do appear there during an update. I remember that I have seen an implementation of swupdate elsewhere where some progress messages appeared in that box.

Is it necessary to configure something in the swupdate build to make that "Messages" box functional in the web interface?

I also can see messages from the swupdate process when I look at the log files with "journalctl -u swupdate".

swupdate says this:

# swupdate --version
SWUpdate v2024.12.1

The swupdate web interface is started like this:

/usr/bin/swupdate -v -l 5 -e stable,copy-2 -w "--document-root /root/www-swupdate --port 8080"

Thanks
Stephan

Stefano Babic

unread,
Feb 27, 2025, 10:22:38 AMFeb 27
to Stephan Mühlstrasser, swupdate
Hallo Stephan,

On 2/27/25 16:12, Stephan Mühlstrasser wrote:
> Hi,
>
> I'm working on an update procedure via swupdate in Yocto Scarthgap. I
> can upload software updates via the web interface and they are installed
> successfully.
>
> In the web interface there is the "Messages" box at the bottom, but no
> messages do appear there during an update. I remember that I have seen
> an implementation of swupdate elsewhere where some progress messages
> appeared in that box.
>
> Is it necessary to configure something in the swupdate build to make
> that "Messages" box functional in the web interface?

No, it works out of the box with the provide web application (package
swupdate-www). The messages are sent via Websockets, if they re blocked
in some way, it doesn't work.

>
> I also can see messages from the swupdate process when I look at the log
> files with "journalctl -u swupdate".
>

Messages are surely sent.

> swupdate says this:
>
> # swupdate --version
> SWUpdate v2024.12.1
>
> The swupdate web interface is started like this:
>
> /usr/bin/swupdate -v -l 5 -e stable,copy-2 -w "--document-root /root/
> www-swupdate --port 8080"
>

It looks ok to me.

What is in /root, that is which application have you installed ?

Best regards,
Stefano Babic


Stephan Mühlstrasser

unread,
Feb 27, 2025, 10:59:12 AMFeb 27
to swupdate
Hi Stefano,

Stefano Babic schrieb am Donnerstag, 27. Februar 2025 um 16:22:38 UTC+1:
> Is it necessary to configure something in the swupdate build to make
> that "Messages" box functional in the web interface?

No, it works out of the box with the provide web application (package
swupdate-www). The messages are sent via Websockets, if they re blocked
in some way, it doesn't work.

Thanks for confirming that it should work out of the box.
 
...

It looks ok to me.

What is in /root, that is which application have you installed ?
 
Your question caused me to check what is actually installed under www-swupdate directory. I discovered that my Yocto swupdate layer had an "index.html" file that I obviously inadvertedly copied from an existing "swupdate" Yocto example layer when I started to work on this. After I removed this extra "index.html" from my Yocto layer everything started to work as expected. Lots of log messages now appear during an update :-)

Sorry for the false alarm, and thank you for your quick reply!
Stephan
Reply all
Reply to author
Forward
0 new messages