siemens / meta-iot2050

SIMATIC IOT2050 Isar/Debian Board Support Package
MIT License
131 stars 77 forks source link

Mongoose webserver not working #516

Closed SCordibella closed 8 months ago

SCordibella commented 8 months ago

Dear all, I am trying to use mongoose as local webserver for swupdate image. I enable it simply adding a package that create the file in /etc/swupdate/conf.d/enable-mongoose with the following content:

SWUPDATE_WEBSERVER_ARGS=" -r /var/swupdate/ -p 8081"

I also add webserver configuration is /etc/swupdate.cfg file as follow:

webserver :
{
        document_root = "/var/swupdate";
        userid        = 1000;
        groupid       = 1000;
        timeout       = 20;
};

The server seems to start, in the process log I see:

Jan 10 10:00:40 iot2050-debian swupdate.sh[398]: [DEBUG] : SWUPDATE running :  [read_settings_file] : Reading config file /etc/swupdate.cfg
Jan 10 10:00:40 iot2050-debian swupdate.sh[398]: [DEBUG] : SWUPDATE running :  [read_module_settings] : Reading config settings for module webserver
Jan 10 10:00:40 iot2050-debian swupdate.sh[398]: [INFO ] : SWUPDATE running :  [start_mongoose] : Mongoose web server version 7.8 with pid 426 started on [31.145.0.0] with web root [/var/swupdate/]

When I try to access to the web server here is the page that I see: Screenshot from 2024-01-10 10-55-56

There are no other error or information on the log file.

Does anyone tried the mongoose server on iot 2050?

Best regards, Stefano.

SCordibella commented 8 months ago

Ok, I apologize for this issue. I forgot to add the application example files on the target.