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

Aborting: Unable to create engine for new app: Unable to find this app's version of Epichrome (2.3.1). The app can't be run until it's reinstalled or the app is updated. #248

Open
alatteri opened this issue Jun 2, 2020 · 11 comments
Labels
waiting on info waiting for more info from the community

Comments

@alatteri
Copy link

alatteri commented Jun 2, 2020

I had created a new 2.3.1 app a few days ago. Installed 2.3.2 and now I get this.

![732]3CXAdmin(678)/abort(834): Aborting: Unable to create engine for new app: Unable to find this app's version of Epichrome (2.3.1). The app can't be run until it's reinstalled or the app is updated.

@alatteri alatteri changed the title ![732]3CXAdmin(678)/abort(834): Aborting: Unable to create engine for new app: Unable to find this app's version of Epichrome (2.3.1). The app can't be run until it's reinstalled or the app is updated. Aborting: Unable to create engine for new app: Unable to find this app's version of Epichrome (2.3.1). The app can't be run until it's reinstalled or the app is updated. Jun 2, 2020
@dmarmor
Copy link
Owner

dmarmor commented Jun 2, 2020

Sorry about this, @alatteri ! Am I right in assuming that this is a Brave app, and that you had not run the app before you updated from 2.3.1 to 2.3.2? If so, then this is a bug I discovered myself a couple days ago. I'd changed the update logic to let an app run once before prompting for updates, but discovered that it created this unfortunate condition.

I've got it fixed for the next release, but in the meantime, here's a workaround:

  1. If the app doesn't have a config.sh file in its data directory (~/Library/Application Support/Epichrome/Apps/3CXAdmin/config.sh), copy one in from one of your other Brave apps. (If you don't have a Brave app, you can copy from a Chrome app, but will need to do one extra editing step.) If the config.sh file is already there, skip this step.

  2. Open the config.sh file in an editor. Change the SSBLastRunVersion and SSBUpdateVersion lines so they both are set to 2.3.1, like this:

SSBLastRunVersion='2.3.1'
...
SSBUpdateVersion='2.3.1'

You can ignore all the other lines, even if they refer to a different app.

  1. If you copied the config.sh from a Chrome app, you will also need to edit the SSBLastRunEngineType line so it looks like this (important to be exact, so best to just copy and paste this line):
SSBLastRunEngineType='internal|com.brave.Browser'
  1. Save the changes, then run the app. It should now give you the option to update to 2.3.2.

Please let me know how it goes for you. If it doesn't work or you don't want to muck around in the config.sh, I can try to get the next release out sooner. Thanks!

@dmarmor dmarmor added pending working on this for an upcoming release waiting on info waiting for more info from the community labels Jun 2, 2020
@alatteri
Copy link
Author

alatteri commented Jun 2, 2020

@dmarmor I believe I definitely ran all the apps after creation.

@dmarmor
Copy link
Owner

dmarmor commented Jun 2, 2020

Hmm! In that case, could you send me the config.sh file for one of the apps that's not updating or running using this URL?

https://www.dropbox.com/request/737ZtVjZyhcIdogOKJoL

Thanks!

@alatteri
Copy link
Author

alatteri commented Jun 3, 2020

I deleted the Epichrome app and re installed. Now things are working. But instead of just the app, it is now installed in an Epichrome folder. Is this normal behavior? See attached screen shot.
Screen Shot 2020-06-03 at 11 33 40 AM

@dmarmor
Copy link
Owner

dmarmor commented Jun 5, 2020

Yes! That's what the directory structure should look like. Epichrome.app now lives inside an Epichrome folder, which also contains the EpichromeEngines.noindex folder for the engines. That all looks correct.

Still not sure what happened there, but if reinstalling 2.3.2 fixed it, then I guess that's good.

@dmarmor dmarmor removed the waiting on info waiting for more info from the community label Jun 5, 2020
@alatteri
Copy link
Author

alatteri commented Jun 5, 2020

Happening again with a different app. See attached.

Untitled.mp4.zip

@dmarmor
Copy link
Owner

dmarmor commented Jun 5, 2020

So there are two possible issues here:

  1. This app is on 2.3.1 and you have 2.3.2 installed. Did the app not offer the option to update to 2.3.2? If not, then that's a bug I need to look into. Having a look at the config.sh for that app would help.

  2. Regardless, I'm wondering if there's a design weakness here in that Brave-based apps require their identical version of Epichrome to be installed in order to run, so if a user, for instance, installs 2.3.2 (which will generally overwrite 2.3.1), and then clicks "Don't Ask Again For This Version" on the update dialog, and then anything happens to that app's engine, it will render the app unusable until the next release of Epichrome is installed. I'm not yet sure how to best address this...

@dmarmor
Copy link
Owner

dmarmor commented Jun 5, 2020

Another helpful bit of info would be if you could run the app with debugging on so I can see a full log output. You would do that like this in the terminal:

<path-to-app>/Contents/MacOS/Epichrome --epichrome-debug

Thank you!

@dmarmor dmarmor added waiting on info waiting for more info from the community and removed pending working on this for an upcoming release labels Jun 5, 2020
@alatteri
Copy link
Author

alatteri commented Jun 8, 2020

alan@DeezNutz MacOS % ./Epichrome --epichrome-debug [97182]ChmplffgsLSA(1478): Core 2.3.1 initialized in app ChmplffgsLSA. [97182]ChmplffgsLSA(304)/lockset(221)/writevars(1290): Writing to lock: lockPID='97182' [97182]ChmplffgsLSA(304)/lockset(221)/writevars(1290): Writing to lock: lockLogFile='/Users/alan/Library/Application Support/Epichrome/Apps/ChmplffgsLSA/Logs/epichrome_app_log_20200608_104731.txt' [97182]ChmplffgsLSA(304)/lockset(221)/writevars(1290): Writing to lock: lockCmd='/bin/bash /Users/alan/Applications/Chumpaluffagus LSA.app/Contents/Resources/script --epichrome-debug' [97182]ChmplffgsLSA(304)/lockset(221)/writevars(1290): Writing to lock: lockEnginePID='' [97182]ChmplffgsLSA(304)/lockset(221)/writevars(1290): Writing to lock: lockEngineCmd='' [97182]ChmplffgsLSA(304)/lockset(221)/writevars(1290): Writing to lock: lockEnginePath='' [97182]ChmplffgsLSA(304)/lockset(226): Lock set. [97182]ChmplffgsLSA(347): No configuration file found. [97182]ChmplffgsLSA(420)/getepichromeinfo(280): Found Epichrome 2.3.2 at '/Applications/Epichrome/Epichrome.app'. [97182]ChmplffgsLSA(420)/getepichromeinfo(311): Latest version of Epichrome (2.3.2) found at '/Applications/Epichrome/Epichrome.app' [97182]ChmplffgsLSA(432): Engine path '' in outdated location. [97182]ChmplffgsLSA(462): Setting engine path to '/Applications/Epichrome/EpichromeEngines.noindex/alan/ChmplffgsLSA' [97182]ChmplffgsLSA(574)/updatedatadir(582): Updating welcome page assets. [97182]ChmplffgsLSA(580)/setwelcomepage(616): Creating new app welcome page. [97182]ChmplffgsLSA(580)/setwelcomepage(665): App has no extensions, so offering browser extensions. [97182]ChmplffgsLSA(580)/setwelcomepage(681)/getextensioninfo(1214): Adding extension ID aapocclcgogkmnckokdopfmhonfmgoek|/Users/alan/Library/Application Support/Google/Chrome/Default/Extensions to welcome page. [97182]ChmplffgsLSA(580)/setwelcomepage(681)/getextensioninfo(1214): Adding extension ID aohghmighlieiainnegkcijnfilokake|/Users/alan/Library/Application Support/Google/Chrome/Default/Extensions to welcome page. [97182]ChmplffgsLSA(580)/setwelcomepage(681)/getextensioninfo(1214): Adding extension ID apdfllckaahabafndbhieahigkjlhalf|/Users/alan/Library/Application Support/Google/Chrome/Default/Extensions to welcome page. [97182]ChmplffgsLSA(580)/setwelcomepage(681)/getextensioninfo(1214): Adding extension ID blpcfgokakmgnkcojhhkbfbldkacnbeo|/Users/alan/Library/Application Support/Google/Chrome/Default/Extensions to welcome page. [97182]ChmplffgsLSA(580)/setwelcomepage(681)/getextensioninfo(1214): Adding extension ID felcaaldnbdncclmgdcncolpebgiejap|/Users/alan/Library/Application Support/Google/Chrome/Default/Extensions to welcome page. [97182]ChmplffgsLSA(580)/setwelcomepage(681)/getextensioninfo(1214): Adding extension ID ghbmnnjooekpmoecnnnilnnbdlolhkhi|/Users/alan/Library/Application Support/Google/Chrome/Default/Extensions to welcome page. [97182]ChmplffgsLSA(580)/setwelcomepage(681)/getextensioninfo(1262): Found cached icon ghbmnnjooekpmoecnnnilnnbdlolhkhi.png. [97182]ChmplffgsLSA(580)/setwelcomepage(681)/getextensioninfo(1214): Adding extension ID nngceckbapebfimnlniiiahkandclblb|/Users/alan/Library/Application Support/BraveSoftware/Brave-Browser/Default/Extensions to welcome page. [97182]ChmplffgsLSA(580)/setwelcomepage(681)/getextensioninfo(1262): Found cached icon nngceckbapebfimnlniiiahkandclblb.png. [97182]ChmplffgsLSA(580)/setwelcomepage(681)/getextensioninfo(1214): Adding extension ID pjkljhegncpnkpknbcohdijeoejaedia|/Users/alan/Library/Application Support/Google/Chrome/Default/Extensions to welcome page. [97182]ChmplffgsLSA(583)/updateprofiledir(910): Checking app bookmarks... [97182]ChmplffgsLSA(583)/updateprofiledir(930): Adding welcome page bookmark to existing folder. [97182]ChmplffgsLSA(589)/installnmh(1698): Installing host manifest for org.epichrome.runtime. [97182]ChmplffgsLSA(589)/installnmh(1706): Installing host manifest for org.epichrome.helper. [97182]ChmplffgsLSA(621): Creating engine for new app. [97182]ChmplffgsLSA(677)/createengine(2055)/deleteengine(2010): Deleting engine at '/Applications/Epichrome/EpichromeEngines.noindex/alan/ChmplffgsLSA' [97182]ChmplffgsLSA(677)/createengine(2063): Creating internal Brave engine at '/Applications/Epichrome/EpichromeEngines.noindex/alan/ChmplffgsLSA'. ![97182]ChmplffgsLSA(678)/abort(834): Aborting: Unable to create engine for new app: Unable to find this app's version of Epichrome (2.3.1). The app can't be run until it's reinstalled or the app is updated. [97182]ChmplffgsLSA(678)/abort(841)/dialog(1393): Showing dialog 'Unable to Run' with text 'Unable to create engine for new app: Unable to find this app's version of Epichrome (2.3.1). The app can't be run until it's reinstalled or the app is updated.'

@alatteri
Copy link
Author

alatteri commented Jun 8, 2020

So there are two possible issues here:

  1. This app is on 2.3.1 and you have 2.3.2 installed. Did the app not offer the option to update to 2.3.2? If not, then that's a bug I need to look into. Having a look at the config.sh for that app would help.

No prompt to update.

  1. Regardless, I'm wondering if there's a design weakness here in that Brave-based apps require their identical version of Epichrome to be installed in order to run, so if a user, for instance, installs 2.3.2 (which will generally overwrite 2.3.1), and then clicks "Don't Ask Again For This Version" on the update dialog, and then anything happens to that app's engine, it will render the app unusable until the next release of Epichrome is installed. I'm not yet sure how to best address this...

I pretty much always update, so I don't recall clicking "Don't Ask", but I can't be sure.

@dmarmor
Copy link
Owner

dmarmor commented Jun 8, 2020

OK, yeah, this is the config.sh problem I thought it was. The log shows No configuration file found. so it thinks it's a first run. I'd recommend you try the method for creating a temporary config.sh that I outlined in this comment. That should allow you to update to 2.3.2.

Actually, to make it a little simpler, try just saving this as your config.sh for this app:

SSBLastRunVersion='2.3.1'
SSBLastRunEngineType='internal|com.brave.Browser'
SSBUpdateVersion='2.3.1'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting on info waiting for more info from the community
Projects
None yet
Development

No branches or pull requests

2 participants