-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
Updating WHDBooter files fails/local WHDBoot directory never created/populated #1615
Comments
Cannot recreate this here, using the usual build process (logfile attached) I do note however the build prefix=/usr/local is being used... (perms?) @mrandreastoth ~ can you detail your build & install commands? |
Additional: Retested this on CachyOS (Arch based), but still can't recreate the issue ~ FTR ... this was a clean install (previously installed amiberry stuffs removed).....at cmdline ;
Seems to work as expected, whdbooter files update as expected, cannot fault the installation ...hmm... ....I'll do it again using cmake defaults, just to check that... edit: cmake defaults (prefix=/usr/local) also works as expected including updating whdbooter files... Cannot recreate ; need more details wrt build/install process undertaken |
I had also cleaned up from the command-line before I rebuilt and reinstalled, all using cmake, and all using defaults. Everything installed to the shares as expected including the whdboot files. I accessed and verified these as myself (user andreas), no special permissions required, i.e., permissions are not an issue. The issue seems to stem from the fact that when I then ran up Amiberry, Amiberry did not properly create the home environment as it did not copy the whdboot files from "/usr/local/share/amiberry/whdboot" into "$XDG_CONFIG_HOME/amiberry", which is what it seems it should have done as the whdboot_path path, in amiberry.conf, defaults to "XDG_CONFIG_HOME/amiberry/whdboot". After I discovered this issue, I blew away the "$HOME/Amiberry" and the "$XDG_CONFIG_HOME/amiberry" directories, created by running Amiberry, and I recreated these using my personal home directory preparation script, running as myself, for Amiberry, the script can be seen here #1612 (comment). This script copies the whdboot directory from "/usr/local/share/amiberry/whdboot" into "$HOME/Amiberry" as whdnoot and modifies the amiberry.conf file to point at this location. Interestingly running Amiberry in this state, i.e., with all the WHDBoot files present, and hitting the "Update HDBooter Files" had the update process succeed. |
I've got no real idea why you're using scripts... //if I really want to exorcise amiberry from the current system makeup (debian example)
There is no need to 'prepare' (make directories) before installation ~ the cmake install command does that automatically. I take it you have read -> https://github.com/BlitterStudio/amiberry/wiki/Compile-from-source ?? Nothing more than what's documented there is required ;) |
Your steps are missing an important bit: how did you install Amiberry in your system in the first place? If you followed another method, perhaps something is missing there. There shouldn't be any need for custom scripts to get Amiberry installed/running, normally. |
@midwan: the very first time it was a manual install but there after I used CMake to install it. The issue reported herein was following the CMake procedure and did NOT involve my script. I always test my script after I have tested the CMake installation first. |
I made a bit of a boo-boo: I looked in the wrong place for the WHDBooter files, i looked in ~/.config/amiberry, not ~/.local/share/amiberry! Doh! However, having just rebuilt and reinstalled (using CMake), I can confirm that, although I looked in the wrong place, only the files from ~/.local/share/amiberry! have copied across BUT, as can be seen below, the folders and the data in them have not, and, as such, Amiberry fails to update the WHDBooter files. Copying across all of the missing data, as per my script, is what sees the WHDBooter update working. Question: why are the missing files that important? Why can't it just download it nevertheless? In fact, isn't this how controller data works, i.e., if the non-user file is missing, isn't it simply downloaded and all is honky-dorey? $ ls -lh ~/.local/share/amiberry/
total 936K
-rw-r--r-- 1 andreas andreas 76 jan 28 20.07 AmiQuit
-rw-r--r-- 1 andreas andreas 687K jan 28 20.07 boot-data.zip
-rw-r--r-- 1 andreas andreas 88K jan 28 20.07 JST
-rw-r--r-- 1 andreas andreas 154K jan 28 20.07 WHDLoad
ls -lh /usr/local/share/amiberry/whdboot/
total 944K
-rw-r--r-- 1 root root 76 jan 20 16.10 AmiQuit
-rw-r--r-- 1 root root 687K jan 20 16.10 boot-data.zip
drwxr-xr-x 2 root root 4,0K jan 26 18.58 game-data
-rw-r--r-- 1 root root 88K jan 20 16.10 JST
drwxr-xr-x 6 root root 4,0K jan 26 18.58 save-data
-rw-r--r-- 1 root root 154K jan 20 16.10 WHDLoad |
- Added one more location check for the whdboot dir on startup, under /usr/local/share/amiberry/whdboot - if that is also not found, added a final fallback option, to recreate the whole structure from scratch, and attempt to download the missing files from the repositories. This last part is identical as if pressing the Update WHDBoot XML button. - Also look in /usr/local/share/amiberry/roms for the bundled ROM files, if not found earlier
New commit to try and improve this further. I still cannot recreate what you've done there, but at least this should help :) |
I can't/couldn't recreate this either (even when using the default cmake $prefix of /usr/local ), but that commit doesn't break anything AFAICT ;) On debian, For mine, |
Updating WHDBooter files fails with the log file showing the following failures...
Notes
On starting up Amiberry, Amiberry never creates and populates "/home/andreas/.local/share/amiberry/whdboot" with the data from "/usr/local/share/amiberry/whdboot"
The directory "/home/andreas/.local/share/amiberry/whdboot" does not exist at the start of the WHDBooter updating process nor does it exist after the process has failed.
To Reproduce
Run up Amiberry
Go to paths
Click on "Update WHDBooter Files" (optionally enable logging beforehand)
Expected behaviour
The process completes successfully with the "/home/andreas/.local/share/amiberry/whdboot" populated with all the required files.
Actual behaviour
The process fails displaying an error message. The "/home/andreas/.local/share/amiberry/whdboot" isn't even created.
Screenshots
![Image](https://private-user-images.githubusercontent.com/26897855/406757605-e81280ec-54df-4fef-b82a-f55fbfbd98ae.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg3Nzk2NDgsIm5iZiI6MTczODc3OTM0OCwicGF0aCI6Ii8yNjg5Nzg1NS80MDY3NTc2MDUtZTgxMjgwZWMtNTRkZi00ZmVmLWI4MmEtZjU1ZmJmYmQ5OGFlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA1VDE4MTU0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdiZDJmMjA0NGNjYWY0MTA1NzEwZDhiNDg1YTEyZDQ5NTFlOTJmYzhlYThiOTk2Zjk0OWJhN2RmZTY3MjUyNGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ffajy37Fwgc-7XncXAiyRPAUygrbgIOreYzzFG8U0Wo)
The error message...
Desktop (please complete the following information):
OS: EndeavourOS
Version 2024.09.22
Additional context
Built from source pulled some hours ago.
The text was updated successfully, but these errors were encountered: