Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better Chromium Errors #2410

Closed
3 tasks done
Dlay2017 opened this issue Aug 1, 2023 · 9 comments
Closed
3 tasks done

Better Chromium Errors #2410

Dlay2017 opened this issue Aug 1, 2023 · 9 comments
Labels
bug Something isn't working waiting on response Further information is requested from the issue owner by the pi-apps devs

Comments

@Dlay2017
Copy link

Dlay2017 commented Aug 1, 2023

Confirmations

What happened?

After installing the Better Chromium Update, Chromium doesnt start anymore

Description

After the update, chromium doesnt start anymore.

From console it drops the following error:
/usr/bin/chromium: 12: /etc/chromium.d/enable_sync: Syntax error: "fi" unexpected

after editing the file "enable_sync", removing the fi, another error follows:

dietpi@DietPi:~/Downloads$ chromium /usr/bin/chromium: 51: test: /etc/chromium.d/exte: unexpected operator expr: Syntaxfehler: unerwartetes Argument „sio“ /usr/bin/chromium: 51: .: cannot open /etc/chromium.d/exte: No such file
when uninstalling Better Chromium, chromium starts normal, but, no wonder, lacks the sync support.

What are your system specs (run the following command in your terminal)?

OS: DietPi v8.20 Bookworm based
RPi 4
8 GB
Version 114.0.5735.198 (Offizieller Build) built on Debian 12.0, running on Debian 12.1 (64-Bit)

(Recommended) Error log? Terminal output? Debug messages?

/usr/bin/chromium: 12: /etc/chromium.d/enable_sync: Syntax error: "fi" unexpected

dietpi@DietPi:~/Downloads$ chromium 
/usr/bin/chromium: 51: test: /etc/chromium.d/exte: unexpected operator
expr: Syntaxfehler: unerwartetes Argument „sio“
/usr/bin/chromium: 51: .: cannot open /etc/chromium.d/exte: No such file
@Dlay2017 Dlay2017 added the bug Something isn't working label Aug 1, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Aug 1, 2023

Hello there 👋
Thanks for submitting your first issue to the Pi-Apps project! We'll try to get back to you as soon as possible.
In the meantime, we encourage you join our Discord server, where you can ask any questions you might have.

Please respond as soon as possible if a Pi-Apps maintainer requests more information from you. Stale issues will be closed after a lengthy period of time with no response.

@theofficialgman
Copy link
Collaborator

theofficialgman commented Aug 1, 2023

@Dlay2017 I've removed the extra fi which was a syntax error. bb8d6ad

I don't see any way that we could cause this:

dietpi@DietPi:~/Downloads$ chromium  /usr/bin/chromium: 51: test: /etc/chromium.d/exte: unexpected operator expr: Syntaxfehler: unerwartetes Argument „sio“ /usr/bin/chromium: 51: .: cannot open /etc/chromium.d/exte: No such file 

@theofficialgman theofficialgman added the waiting on response Further information is requested from the issue owner by the pi-apps devs label Aug 1, 2023
@Botspot
Copy link
Owner

Botspot commented Aug 2, 2023

@Dlay2017, could you check for an update to Better Chromium from Pi-Apps and check if everything works now?

@mjc2251
Copy link

mjc2251 commented Aug 13, 2023

i have updated PI-Apps and can confirm the issues still persists.

@Botspot
Copy link
Owner

Botspot commented Aug 16, 2023

i have updated PI-Apps and can confirm the issues still persists.

I would like to see all the contents of all files in your /etc/chromium.d folder.
Please run this command to do that:

grep . -r /etc/chromium.d

Please copy the full output and paste it here.

@mjc2251
Copy link

mjc2251 commented Aug 19, 2023

/etc/chromium.d/default-flags:# A set of command line flags that we want to set by default.
/etc/chromium.d/default-flags:# Do not hide any extensions in the about:extensions dialog
/etc/chromium.d/default-flags:export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --show-component-extension-options"
/etc/chromium.d/default-flags:# Enable GPU rasterization.
/etc/chromium.d/default-flags:export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --enable-gpu-rasterization"
/etc/chromium.d/default-flags:# Don't display any warnings about not being the default browser
/etc/chromium.d/default-flags:export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --no-default-browser-check"
/etc/chromium.d/default-flags:# Disable pinging
/etc/chromium.d/default-flags:export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --disable-pings"
/etc/chromium.d/default-flags:# Disable the builtin media router (bug #833477)
/etc/chromium.d/default-flags:export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --media-router=0"
/etc/chromium.d/README:Any files placed in this directory will be sourced prior to executing chromium.
/etc/chromium.d/apikeys:# API keys found in chromium source code https://chromium.googlesource.com/experimental/chromium/src/+/b08bf82b0df37d15a822b478e23ce633616ed959/google_apis/google_api_keys.cc
/etc/chromium.d/apikeys:export GOOGLE_API_KEY="AIzaSyCkfPOPZXDKNn8hhgu3JrA62wIgC93d44k"
/etc/chromium.d/apikeys:export GOOGLE_DEFAULT_CLIENT_ID="77185425430.apps.googleusercontent.com"
/etc/chromium.d/apikeys:export GOOGLE_DEFAULT_CLIENT_SECRET="OTJgUOQcT7lO7GsGZq2G4IlT"
/etc/chromium.d/zzzz_combine_values:#This script combines multiple invocations of --enable-features and --disable-features into one argument so that Chromium does not ignore any.
/etc/chromium.d/zzzz_combine_values:#Written by Botspot for the Pi-Apps Better Chromium script.
/etc/chromium.d/zzzz_combine_values:IFS=' '
/etc/chromium.d/zzzz_combine_values:enable=''
/etc/chromium.d/zzzz_combine_values:disable=''
/etc/chromium.d/zzzz_combine_values:new_flags=''
/etc/chromium.d/zzzz_combine_values:for word in $CHROMIUM_FLAGS ;do
/etc/chromium.d/zzzz_combine_values:  if [[ "$word" == '--enable-features='* ]];then
/etc/chromium.d/zzzz_combine_values:    enable+=",${word/--enable-features=/}"
/etc/chromium.d/zzzz_combine_values:  elif [[ "$word" == '--disable-features='* ]];then
/etc/chromium.d/zzzz_combine_values:    enable+=",${word/--disable-features=/}"
/etc/chromium.d/zzzz_combine_values:  else
/etc/chromium.d/zzzz_combine_values:    new_flags+=" $word"
/etc/chromium.d/zzzz_combine_values:  fi
/etc/chromium.d/zzzz_combine_values:done
/etc/chromium.d/zzzz_combine_values:#remove initial comma
/etc/chromium.d/zzzz_combine_values:enable="${enable/,/}"
/etc/chromium.d/zzzz_combine_values:disable="${disable/,/}"
/etc/chromium.d/zzzz_combine_values:CHROMIUM_FLAGS="$new_flags"
/etc/chromium.d/zzzz_combine_values:[ ! -z "$enable" ] && CHROMIUM_FLAGS+=" --enable-features=$enable"
/etc/chromium.d/zzzz_combine_values:[ ! -z "$disable" ] && CHROMIUM_FLAGS+=" --disable-features=$disable"
/etc/chromium.d/enable_sync:#!/bin/bash
/etc/chromium.d/enable_sync:profiles="$(find "$HOME/.config/chromium/" -maxdepth 1 -type d '(' -name Default -o -name 'Profile *' ')' | sed 's+.*/++g')"
/etc/chromium.d/enable_sync:IFS=$'\n'
/etc/chromium.d/enable_sync:for profile in $profiles ;do
/etc/chromium.d/enable_sync:  [ ! -f "$HOME/.config/chromium/$profile/Preferences" ] && continue
/etc/chromium.d/enable_sync:  sed -i 's/"signin":{"allowed":false}/"signin":{"allowed":true,"allowed_on_next_startup":true}/g' "$HOME/.config/chromium/$profile/Preferences"
/etc/chromium.d/enable_sync:  sed -i 's/"signin":{"allowed":false,"allowed_on_next_startup":false}/"signin":{"allowed":true,"allowed_on_next_startup":true}/g' "$HOME/.config/chromium/$profile/Preferences"
/etc/chromium.d/enable_sync:  sed -i 's/"signin":{"AccountReconcilor":{"kDiceMigrationOnStartup2":true},"allowed":false,"allowed_on_next_startup":false}/"signin":{"AccountReconcilor":{"kDiceMigrationOnStartup2":true},"allowed":true,"allowed_on_next_startup":true}/g' "$HOME/.config/chromium/$profile/Preferences"
/etc/chromium.d/enable_sync:done
/etc/chromium.d/extensions:# remote extensions on by default
/etc/chromium.d/extensions:export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --enable-remote-extensions"
/etc/chromium.d/extensions:# load all of the extensions installed to /usr/share/chromium/extensions
/etc/chromium.d/extensions:export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --load-extension=`ls -dm /usr/share/chromium/extensions/* 2>/dev/null | tr -d '\n'`"

@theofficialgman
Copy link
Collaborator

@mjc2251 can you please also copy the fully output of

cat /usr/bin/chromium

and put it here?

I don't run dietpi so don't know what your script looks like, but I imagine it has to do with a similar function to this

if test -d /etc/$APPNAME/customizations; then
	while read f; do
		. "$f"
	done < <(run-parts --list -- /etc/$APPNAME/customizations)
fi
test -f ~/.chromium-browser.init && . ~/.chromium-browser.init

encourtering a syntax error when trying to execute a script, causing cascading failures

@theofficialgman
Copy link
Collaborator

@Dlay2017 @mjc2251 we need the above output inorder to debug any further

@Botspot
Copy link
Owner

Botspot commented Sep 22, 2023

Closing this issue as stale.

@Botspot Botspot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting on response Further information is requested from the issue owner by the pi-apps devs
Projects
None yet
Development

No branches or pull requests

4 participants