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

[BUG] Issue with Hattrick Organizer Installer process on macOS #1849

Closed
MaxiGalaxi opened this issue Apr 9, 2023 · 37 comments · Fixed by #1906
Closed

[BUG] Issue with Hattrick Organizer Installer process on macOS #1849

MaxiGalaxi opened this issue Apr 9, 2023 · 37 comments · Fixed by #1906
Labels
os: macOS specific to macOS platform scope: installer HO installer status: needs test might be fixed, needs test before closing
Milestone

Comments

@MaxiGalaxi
Copy link

Describe the bug
I can't update nor can I reinstall HO.

To Reproduce
I'll download the JRE version either manually or via the updater in HO. Then I'll start the updater, this seems to open up a process called "Hattrick Organizer Installer" but I can't view the application/windows thus I am not able to navigate through the update process.

Platform information:

  • OS: macOS
  • Version 13.3
  • HO 5.2

Additional context
I have been the issue for quite a while ;)

@github-actions
Copy link

github-actions bot commented Apr 9, 2023

Hey, thanks for opening your first issue! 🙂
Be sure to check out the wiki and the HT forum for support.

@madcooper82
Copy link

I have the same issue. MacOS does not install HO and freezes with the Java Installer I guess.

@wsbrenk
Copy link
Collaborator

wsbrenk commented Apr 12, 2023

@tychobrailleur you are the mac expert, i remember. do you have any idea?

@sergei-cl
Copy link

Same problem here 😞

@sergei-cl
Copy link

The problem still remains with the 7.1.506.2 version :(

@wsbrenk
Copy link
Collaborator

wsbrenk commented Jun 26, 2023

@tychobrailleur you are the mac expert - could you try to fix this?

@wsbrenk wsbrenk added os: macOS specific to macOS platform scope: installer HO installer labels Jun 26, 2023
@sergei-cl
Copy link

@tychobrailleur you are the mac expert - could you try to fix this?

I'm available for any kind of feedback or testing if needed @tychobrailleur

@sergei-cl
Copy link

7.2 still have the same installer problem on MacOS :(

@wsbrenk
Copy link
Collaborator

wsbrenk commented Jul 24, 2023

@sergei-cl sorry - but i'm not a mac expert. maybe this video can help? (https://www.youtube.com/watch?v=GUDrWcNi9pA)

@sergei-cl
Copy link

Thanks @wsbrenk unfortunately this video doesn't help at all. The installer just get stucked after opening this:
CleanShot 2023-07-24 at 12 30 21@2x
Then it simply dissappears and nothing happens even being open.

@wsbrenk
Copy link
Collaborator

wsbrenk commented Jul 24, 2023

@sergei-cl could you check if there are install4j log files in the subdirectory .install4j of your installation directory. in my case (windows) there are

  • installation.log
  • uninstallPrevious.log

Please check if there are hints or better upload them to this thread.

@sergei-cl
Copy link

@wsbrenk I've try to find those files but don't know how to locate it on my Mac 😢

@sergei-cl could you check if there are install4j log files in the subdirectory .install4j of your installation directory. in my case (windows) there are

  • installation.log
  • uninstallPrevious.log

Please check if there are hints or better upload them to this thread.

@kempsu
Copy link

kempsu commented Jul 29, 2023

Thanks @wsbrenk unfortunately this video doesn't help at all. The installer just get stucked after opening this: CleanShot 2023-07-24 at 12 30 21@2x Then it simply dissappears and nothing happens even being open.

Can confirm. This needs to be fixed :/
I am happy to help, so I will see if I can find any log files

@kempsu
Copy link

kempsu commented Jul 29, 2023

Here's a log file I was able to obtain:

i4j_log_HO_11756506834732886662.log

@sergei-cl
Copy link

sergei-cl commented Jul 29, 2023

Then it simply dissappears and nothing happens even being open.

Can confirm. This needs to be fixed :/ I am happy to help, so I will see if I can find any log files
@kempsu where do you find this log file to look for it too?

@kempsu
Copy link

kempsu commented Jul 29, 2023

  1. Open Terminal app on your Mac
  2. Type: open $TMPDIR

@sergei-cl
Copy link

Here is my log too:
i4j_log_HO_2659267347727084719.log

@madcooper82
Copy link

Still the same here. Her is my log of the same issue:
i4j_log_HO_1819841152434609014.log

@sergei-cl
Copy link

@tychobrailleur @wsbrenk any clue of a possible solution?? 🙏🏻

@tychobrailleur
Copy link
Collaborator

tychobrailleur commented Aug 15, 2023

Hi folks, sorry, I have been on and off the project, busy with real life... I no longer have a Mac so cannot test right now.

At first glance, it seems to be some issue with the install4j installer, it seems to be hanging at the same place:

[INFO] com.install4j.runtime.beans.screens.StartupScreen [ID 1]: command: move 1 screens, executing actions, checking condition
[INFO] com.install4j.runtime.beans.screens.WelcomeScreen [ID 2]: Show screen
[INFO] Using communication backend com.install4j.runtime.installer.platform.unix.PipeCommunicationBackend

which seems to be around the time where the installer asks for Admin permission to install java. It doesn't seem to be an architecture issue, because it seems to happen on both aarch64 (I assume M1) and x86_64 (I presume Intel).

I'll do some research to see if this is a known issue, but in the meantime, some questions:

  1. Which dmg does it happen with, with or without JRE? Or both?
  2. Any possibility that the prompt window is somewhat hidden, for example behind another window? Or on a separate monitor?

admin

  1. Any antivirus that might block this permission request? We don't sign our packages, so this might cause some troubles with them
  2. Anything interesting in the install4j logs? It'd be nice if someone with the issue could do the following:
  • Extract the installer from the dmg
  • Open a terminal window, and cd into the directory where the installer is extracted
  • Execute:
INSTALL4J_LOG=yes Hattrick\ Organizer\ Installer.app/Contents/MacOS/JavaApplicationStub

(see https://www.ej-technologies.com/resources/install4j/help/doc/installers/errors.html for more details)

For people who are completely stuck, you can still use the portable version of HO:

  1. Install Java 17 on your system
  2. Download the portable version of HO
  3. Create a new directory somewhere on your system, for example called “Hattrick”
  4. Extract the content of the downloaded portable package (HO-7.2.510.2-portable-unix.tar.gz) into that new folder – it should work by right-clicking, Open With, Archive Utility
  5. Execute the HO file in the folder

@sergei-cl
Copy link

sergei-cl commented Aug 16, 2023

Hi @tychobrailleur ,
Great to ear from you !!
About your questions:

1. Which dmg does it happen with, with or without JRE? Or both?
Both.
2. Any possibility that the prompt window is somewhat hidden, for example behind another window? Or on a separate monitor?
No, I've checked it more than once.
3. Any antivirus that might block this permission request? We don't sign our packages, so this might cause some troubles with them
Not in my case.
4. Anything interesting in the install4j logs? It'd be nice if someone with the issue could do the following:
Here's the log.
ho_installer.log

About using the portable version, I've followed the step by step and I get stuck too in a HOLauncher process but it shows nothing. HO 6.1 still works fine.
CleanShot 2023-08-16 at 16 47 09@2x

@tychobrailleur
Copy link
Collaborator

About using the portable version, I've followed the step by step and I get stuck too in a HOLauncher process but it shows nothing. HO 6.1 still works fine.

Interesting. I don't think this is related, but this mean you already have an existing installation of HO working. Do you have logs for that hanging portable version startup? I suspect here this could be related to database migrations. This could potentially be validated by moving the existing HO files:

mv ~/Library/Application\ Support/{HO,HO.bak}

and restarting.

So far I haven't found anything on that issue mentioned anywhere. There is mention in the install4j changelog of a potential hanging when using dark mode: https://www.ej-technologies.com/download/install4j/changelog.html fixed in release 10.0.3 – in any case, we probably need to update the version of the installer, or find an alternative solution. I'll see if I can look into that at the weekend.

@sergei-cl
Copy link

Hi @tychobrailleur !
I've moved the HO files and tried 2 things:

  1. Installing the latest version of HO installer. - Doesn't work.
  2. Run the portable version of the latest stable version. - Works but a lot of stuff seems quite buggy and slow.

Hope it helps.

@tychobrailleur
Copy link
Collaborator

1. Installing the latest version of HO installer. - Doesn't work.

Ah, sorry sergei if I haven't been clear on this: this one is on me, I would need to update the code and re-package the app. :-)

2. Run the portable version of the latest stable version. - Works but a lot of stuff seems quite buggy and slow.

Hmm, the portable version is the same code you'd get with the non-portable version. It is expected that initial executions of the app might be slow, but please report any bug you might spot.

tychobrailleur added a commit that referenced this issue Aug 19, 2023
This is an attempt at fixing issue #1849 by updating install4j to the latest
version, as it is unclear at this point what is causing the install to hang on
some MacOS machines.
tychobrailleur added a commit that referenced this issue Aug 19, 2023
This is an attempt at fixing issue #1849 by updating install4j to the latest
version, as it is unclear at this point what is causing the install to hang on
some MacOS machines.
wsbrenk pushed a commit that referenced this issue Aug 21, 2023
This is an attempt at fixing issue #1849 by updating install4j to the latest
version, as it is unclear at this point what is causing the install to hang on
some MacOS machines.
@wsbrenk
Copy link
Collaborator

wsbrenk commented Aug 21, 2023

@tychobrailleur

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':media'.
> Executable /opt/install4j9/bin/install4jc does not exist

@wsbrenk wsbrenk reopened this Aug 21, 2023
@wsbrenk
Copy link
Collaborator

wsbrenk commented Aug 22, 2023

@tychobrailleur changing the /opt sub dir of install4j is not sufficiant:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':media'.
> Process 'command '/bin/sh'' finished with non-zero exit value 1

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org/

BUILD FAILED in 1m 57s
> Task :media FAILED
Updated licensing information.
install4j version 10.0.6 (build 10097), built on 2023-06-19
Your license key is only valid for a previous major release of install4j. Please run the install4j GUI to enter a valid license key.

@wsbrenk
Copy link
Collaborator

wsbrenk commented Aug 22, 2023

i just asked for a new license key

@wsbrenk
Copy link
Collaborator

wsbrenk commented Aug 22, 2023

@tychobrailleur i don't see the settings option (anymore) in this repository. I'm not sure if i installed the install4j license two years ago or if @akasolace did it.

Maybe we should do the move of this repo to the new place now to handle such things.

@tychobrailleur
Copy link
Collaborator

@tychobrailleur

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':media'.
> Executable /opt/install4j9/bin/install4jc does not exist

Ah yes – sorry, that's the kind of things that cannot be tested before it's actually merged :-)

@tychobrailleur
Copy link
Collaborator

i just asked for a new license key

It looks like we need a new license for that new major version all right. I think this is set as a env var, so moving to the new repo at this stage may indeed be a good idea.

@wsbrenk
Copy link
Collaborator

wsbrenk commented Sep 3, 2023

information from german question forum:

I currently like to use my stable version of the HO in version 6.0 on my MacBool Pro with Ventura 13.5.1
Every now and then the curious finger twitches to update to version 7.2. ==> The download starts ==> the first queries are normal and then the installation hangs. Nothing is happening anymore.
...

It's the same with me. After loading the installation file, you will be asked for the password. Afterwards nothing happens anymore and if I want to turn off the MacBook, I have to kill the "Hattrick Organizer Installer" because it interrupts the shutdown ...

@wsbrenk
Copy link
Collaborator

wsbrenk commented Sep 6, 2023

@tychobrailleur new dev version is successfully build

i replaced the install4j license key
and all urls pointing to the old repository

@sergei-cl
Copy link

@wsbrenk @tychobrailleur I've downloaded the dev version and install HO without any kind of issue 👍

@tychobrailleur
Copy link
Collaborator

@wsbrenk @tychobrailleur I've downloaded the dev version and install HO without any kind of issue 👍

That's great news! Credit where credit is due, it's all thanks to @wsbrenk !

@sergei-cl
Copy link

Hope we can see it solve soon on the stable version !

@wsbrenk wsbrenk added this to the 7.3 milestone Sep 6, 2023
wsbrenk pushed a commit to wsbrenk/HO that referenced this issue Sep 6, 2023
This is an attempt at fixing issue ho-dev#1849 by updating install4j to the latest
version, as it is unclear at this point what is causing the install to hang on
some MacOS machines.

(cherry picked from commit d2a5b0b)
wsbrenk added a commit to wsbrenk/HO that referenced this issue Sep 6, 2023
@wsbrenk wsbrenk mentioned this issue Sep 6, 2023
2 tasks
wsbrenk added a commit that referenced this issue Sep 6, 2023
* ModuleConfigTable.saveConfig

* Update install4j version. (#1906)

This is an attempt at fixing issue #1849 by updating install4j to the latest
version, as it is unclear at this point what is causing the install to hang on
some MacOS machines.

(cherry picked from commit d2a5b0b)

* release-dev INSTALL4J_HOME (#1907)

(cherry picked from commit 628d685)

* https://github.com/ho-dev/HattrickOrganizer (#1911)

(cherry picked from commit 823bfa0)

* #1849 release_notes.md

---------

Co-authored-by: Sébastien Le Callonnec <[email protected]>
@wsbrenk wsbrenk added the status: needs test might be fixed, needs test before closing label Sep 6, 2023
@sergei-cl
Copy link

Works fine on the latest 7.3 beta version !

@madcooper82
Copy link

Can confirm this too. Works with Beta now for me. Thanks a lot for all your efforts.

@wsbrenk wsbrenk closed this as completed Sep 9, 2023
tychobrailleur added a commit to tychobrailleur/HO-t that referenced this issue Sep 16, 2023
This is an attempt at fixing issue ho-dev#1849 by updating install4j to the latest
version, as it is unclear at this point what is causing the install to hang on
some MacOS machines.
wsbrenk added a commit that referenced this issue Oct 1, 2023
* team analyzer filter handles challenger cup as friendlies now

* logging RatingPredictionManager

* Speciality.java->specialty

* rating logging

* refactoring RatingPredictionManager

* #1782 start schum rating

* #1782 schum rating

* #1782 RatingPredictionManager teamspirit formula

* #1805 release_notes.md

* typo

* #1782 rating refactoring

* #1782 rating refactoring

* #1782 rating refactoring

* #1782 add experience calculations to strenght cache

* init ratingprediction.json

* json preciction definition

* ratingprediction.json

* start HO7.1

* start HO8.0

* continue

* Release/7 (#1859)

* start HO7.1

* #1856 fix currency of secondary teams

* #1856 fix currency of secondary teams

---------

Co-authored-by: wsbrenk <zissener-weg-brenk.de>

* #1857 fix playername getter in MatchHighlightsTable (#1860)

Co-authored-by: wsbrenk <zissener-weg-brenk.de>

* #1861 fix exception in GoalDiffCriteria (#1864)

Co-authored-by: wsbrenk <zissener-weg-brenk.de>

* Fix click on “Last Match” column when it has been moved. (#1863)

The “Last Match” column is clickable, and opens:
- The match in Hattrick when shift-clicking,
- The match in HO when double-clicking.

This commit also adds some comment to clarify the behaviour.

* Minor UI improvement in teamAnalyzer. (#1867)

This adds a bit of padding around the check boxes on the teamAnalyser panel,
and centers the automatic / manual radio buttons.

It also cleans up code a bit, in particular in lineup assistant.  Probably more
effort to come on that front.

* #1858 (#1869)

* #1858 debug date time parsing

* #1858 debug currency parsing

* #1858 using Helper.formatCurrency

* #1858 Player.baseWage reset setter getter (not used for now, but senseful for the future)

* #1858 Player.baseWage reset setter getter (not used for now, but senseful for the future)

* #1858 translate comments in Helper.java

* #1858 remove  unused imports in HODateTime.java (add some comments)

* #1858 fix Player.setExpiryDate, use localized DateTimeFormatter

* #1858 fix PlayerConverter add comment explaining offsSpecialty

* #1858 fix PlayerConverter remove old commented methods

* #1858 fix PlayerConverter.parseLocalDateTime

* #1858 PlayerConverter scan wage

* #1858 PlayerConverter scan skill refactored

* #1858 PlayerConverter scan wage
fix indexRowWarning

* Fixes deadline date parsing in Transfer Scout.

---------

Co-authored-by: Sébastien Le Callonnec <[email protected]>

* refactor rating prediction

* #1873 (#1874)

* #1873 fix MatchAndLineupSelectionPanel.updateStyleOfPlayComboBox nt team selection

* #1873 release_notes.md

* ratingprediction formulas (wip)

* #1878 (#1879)

* fix OnlineWorker.downloadLastLineup

* MyConnector.downloadPlayerDetails include match info

* #1878 release_notes.md

* #1878 show last match date of nt team players

* RatingPredictionManager remove debug logs

* new class RatingPredictionModel

* new class RatingPredictionModel

* #1881 (#1882)

* some cleanup

* #1881 add undocumented goal difference criteria

* #1881 add undocumented goal difference criteria release_notes.md

* #1881 debug worlflow (#1883)

* some cleanup

* #1881 add undocumented goal difference criteria

* #1881 add undocumented goal difference criteria release_notes.md

* #1881 fix workflow

* RatingPredictionModel (wip)

* Release ho7.1 (#1887)

* release_notes.md update translaation statistics

* release_notes.md

* release HO 7.1

* release_notes.md

* RatingPredictionModel

* #1889 download new trainer info from player details (#1890)

* RatingPredictionModel (wip)

* RatingPredictionModel (wip)

* stable 7.2 (#1893)

* rating prediction (wip)

* rating prediction (wip)

* #1899 (#1900)

* #1899 training recalculation recovers deleted skill ups

* #1901 PlayerDetailsPanel reset homegrown icon (#1902)

* RatingPredictionModel (wip)

* RatingPredictionModel (wip)

* RatingPredictionModel (wip)

* RatingPredictionModel (wip)

* RatingPredictionModel (wip)

* RatingPredictionModel (wip)

* calcTeamSpirit

* fix RatingChartData

* fix RatingChartData

* fix RatingChartData

* #1849 (#1912)

* ModuleConfigTable.saveConfig

* Update install4j version. (#1906)

This is an attempt at fixing issue #1849 by updating install4j to the latest
version, as it is unclear at this point what is causing the install to hang on
some MacOS machines.

(cherry picked from commit d2a5b0b)

* release-dev INSTALL4J_HOME (#1907)

(cherry picked from commit 628d685)

* https://github.com/ho-dev/HattrickOrganizer (#1911)

(cherry picked from commit 823bfa0)

* #1849 release_notes.md

---------

Co-authored-by: Sébastien Le Callonnec <[email protected]>

* wip

* #1913 fix Player.getMotherclubId

* fit values of RatingPredictionModel.calcSector

* RatingPredictionModel.calcRatingSectorScale

* RatingPredictionModel.calcPlayerScale (wip)

* Player.getPositionRating

* copyrights

* getPlayerMatchAverageRating

* fix edit SubstitutionEditView hatstats update

* fix Substitution.pos

* fix Substitution.setRoleId

* fix RatingPredictionModel.calcStamina

* tune RatingPredictionModel.getRatingSectorScaleFactor

* fix enum coding style

* read.me

* adjust player rating to hatstats formula (factor 3 for midfield contribution)

* implement schum rank

* tychobrailleur's review

* release_notes.md

---------

Co-authored-by: wsbrenk <zissener-weg-brenk.de>
Co-authored-by: Sébastien Le Callonnec <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os: macOS specific to macOS platform scope: installer HO installer status: needs test might be fixed, needs test before closing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants