Can't Update Chromium - Reinstall Chromium Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
kolaborek
Posts: 19
Joined: Thu Mar 12, 2020 6:19 pm

Can't Update Chromium - Reinstall Chromium

Post by kolaborek »

Hello,

I run DietPi on Raspberry Pi 4 with Chromium in Kiosk mode. Everything works fine except that Chromium displays popup window with information that Chromium cannot be updated.
I thought that after todays update DietPi to latest version this information will dissapear, but it is not.

Does anyone have idea how to remove it?

Best Regards


Image
User avatar
Joulinar
Posts: 2064
Joined: Sat Nov 16, 2019 12:49 am

Re: Can't Update Chromium - Reinstall Chromium

Post by Joulinar »

Hi,

many thanks for your report. You could try to hide all error messages and pop-up during chromium start. For this you would need to edit chromium config file

Code: Select all

nano /var/lib/dietpi/dietpi-software/installed/chromium-autostart.sh
Basically you would need to change from Kiosk mode into App mode. There is an older discussion on GutHub for this https://github.com/MichaIng/DietPi/issu ... -552434467

Basically you can adjust the 2 lines for CHROMIUM_OPTS as follow

Code: Select all

CHROMIUM_OPTS=" --test-type --window-size=$RES_X,$RES_Y --start-fullscreen --start-maximized --window-position=0,0 --noerrdialogs"
CHROMIUM_OPTS+=" --app=$URL"
As I don't have the update error message on my RPi3B+, I'm not able to check if it really get suppressed

On my system, I'm running following version of chromium

Code: Select all

root@DietPi3:~# dpkg -l chromium-browser
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name             Version            Architecture Description
+++-================-==================-============-===================================================
ii  chromium-browser 78.0.3904.108-rpt1 armhf        Chromium web browser, open-source version of Chrome
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
emersonvier
Posts: 4
Joined: Mon Jul 13, 2020 4:58 pm

Re: Can't Update Chromium - Reinstall Chromium

Post by emersonvier »

hi @kolaborek this works for you? I have the same issue here.
User avatar
Joulinar
Posts: 2064
Joined: Sat Nov 16, 2019 12:49 am

Re: Can't Update Chromium - Reinstall Chromium

Post by Joulinar »

well you could try it yourself @emersonvier and report back if it's working ;)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
emersonvier
Posts: 4
Joined: Mon Jul 13, 2020 4:58 pm

Re: Can't Update Chromium - Reinstall Chromium

Post by emersonvier »

Did not work for me :roll: , I am still looking for a solution....
kolaborek
Posts: 19
Joined: Thu Mar 12, 2020 6:19 pm

Re: Can't Update Chromium - Reinstall Chromium

Post by kolaborek »

It does not work for me too.
Below is my all file /var/lib/dietpi/dietpi-software/installed/chromium-autostart.sh
Did I missed something... ?

Code: Select all

#!/bin/bash
# Autostart run script for Kiosk mode, based on @AYapejian https://github.com/MichaIng/DietPi/issues/1737#issue-318697621
# - Please see /root/.chromium-browser.init (and /etc/chromium.d/custom_flags) for additional egl/gl init options

# Command line switches https://peter.sh/experiments/chromium-command-line-switches/
# --test-type gets rid of some of the chromium warnings that you may or may not care about in kiosk on a LAN
# --pull-to-refresh=1
# --ash-host-window-bounds="400,300"

# Resolution to use for kiosk mode, should ideally match current system resolution
RES_X=$(sed -n '/^[[:blank:]]*SOFTWARE_CHROMIUM_RES_X=/{s/^[^=]*=//p;q}' /boot/dietpi.txt)
RES_Y=$(sed -n '/^[[:blank:]]*SOFTWARE_CHROMIUM_RES_Y=/{s/^[^=]*=//p;q}' /boot/dietpi.txt)

#CHROMIUM_OPTS="--kiosk --test-type --window-size=$RES_X,$RES_Y --start-fullscreen --start-maximized --window-position=0,0"
CHROMIUM_OPTS="--test-type --window-size=$RES_X,$RES_Y --start-fullscreen --start-maximized --window-position=0,0 --incognito --noerrdialogs --disable-features=TranslateUI"


# If you want tablet mode, uncomment the next line.
#CHROMIUM_OPTS+=' --force-tablet-mode --tablet-ui'

# Add URL for first run:
URL=$(sed -n '/^[[:blank:]]*SOFTWARE_CHROMIUM_AUTOSTART_URL=/{s/^[^=]*=//p;q}' /boot/dietpi.txt)
#CHROMIUM_OPTS+=" --homepage $URL"
CHROMIUM_OPTS+=" --app $URL"

# Find absolute filepath location of Chromium binary.
FP_CHROMIUM=$(command -v chromium)
if [[ ! $FP_CHROMIUM ]]; then

        # Assume RPi
        FP_CHROMIUM="$(command -v chromium-browser)"

fi

xinit $FP_CHROMIUM $CHROMIUM_OPTS
User avatar
Joulinar
Posts: 2064
Joined: Sat Nov 16, 2019 12:49 am

Re: Can't Update Chromium - Reinstall Chromium

Post by Joulinar »

What version of Chromium you are running.

Code: Select all

dpkg -l chromium-browser
because I don't see such a message on my test installation
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
kolaborek
Posts: 19
Joined: Thu Mar 12, 2020 6:19 pm

Re: Can't Update Chromium - Reinstall Chromium

Post by kolaborek »

This is my version:

Code: Select all

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name             Version            Architecture Description
+++-================-==================-============-===================================================
ii  chromium-browser 78.0.3904.108-rpt1 armhf        Chromium web browser, open-source version of Chrome
User avatar
Joulinar
Posts: 2064
Joined: Sat Nov 16, 2019 12:49 am

Re: Can't Update Chromium - Reinstall Chromium

Post by Joulinar »

strange. my version is the same and I don't have such a message. Was this message there all the time or just after a while?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
kolaborek
Posts: 19
Joined: Thu Mar 12, 2020 6:19 pm

Re: Can't Update Chromium - Reinstall Chromium

Post by kolaborek »

It shows up after few hours of working Raspberry (~2h ?). Not after booting it up.
Because of that I started to observe this message after start using my SBC in production (now it is working 24/7), not in development process when RPI was restared quite often.
Post Reply