kwindrem / SetupHelper

Helper functions to simplify writing setup scripts that modify VenusOs functionality. The package includes automatic reinstallation of the package after a VenusOs update.
171 stars 18 forks source link

/data/SetupHelper/HelperResources/EssentialResources: line 78: /var/log/PackageManager/current: No such file or directory warning on fresh install #100

Open onnimonni opened 6 days ago

onnimonni commented 6 days ago

Hey,

I wasn't able to get the blind installation working so I enabled the ssh root access and followed the installation steps to install:

root@einstein:/data# wget -qO - https://github.com/kwindrem/SetupHelper/archive/latest.tar.gz | tar -xzf - -C /data
root@einstein:/data# mv -f /data/SetupHelper-latest /data/SetupHelper
root@einstein:/data# /data/SetupHelper/setup
--- starting setup script v8.21 action: NONE
/data/SetupHelper/HelperResources/EssentialResources: line 78: /var/log/PackageManager/current: No such file or directory
creating package options directory /data/setupOptions/SetupHelper
/data/SetupHelper/HelperResources/EssentialResources: line 78: /var/log/PackageManager/current: No such file or directory

Available actions:
  Install and activate (i)
  Reinstall (r) based on options provided at last install
  Uninstall (u) and restores all files to stock
  Quit (q) without further action
  Display log (l) outputs the last 100 lines of the log

Choose an action from the list above: i
installing files
/data/SetupHelper/HelperResources/EssentialResources: line 78: /var/log/PackageManager/current: No such file or directory
installing services
/data/SetupHelper/HelperResources/EssentialResources: line 78: /var/log/PackageManager/current: No such file or directory
installing PackageManager service
/data/SetupHelper/HelperResources/EssentialResources: line 78: /var/log/PackageManager/current: No such file or directory
waiting for PackageManager service to start
service PackageManager running
creating /data/rcS.local
Restart the GUI now (y) or issue a do it manually later (n): y
restarting GUI V1 (/service/start-gui)
complete - no errors

Is the included No such file or directory error important or should I just ignore it? I'm using the latest 3.42 Venus OS.

The "Package manager" option does show up correctly in the menu after the GUI was rebooted ✅.

kwindrem commented 5 days ago

The error indicates an issue with logging information to the log file. This should not prevent the install to otherwise run to completion as you are seeing. I suspect that when the PackageManager service starts, it's creating the necessary directory because the errors stop after that happens. I see a bug in the code I have to create a missing log file/directory tree which I've fixed in SetupHelper v8.22. Thanks for the report. For now, rerunning the setup script you should no longer see this error.

As far as PackageManager not showing up in the menus, I wonder if the GUI didn't actually restart. This should not happen and my tests indicate the GUI is restarting on both Cerbo and Raspberry PI. Try a reboot to see if PackageManger shows up. What firmware version are you running?

Blind install should work. What problems did you experience? Logs would be helpful (but may not exist because of the error noted above).