jsegaert / iocage-plugin-heimdall

4 stars 0 forks source link

Won't install on TrueNAS 12.0U7 #3

Open l3rady opened 2 years ago

l3rady commented 2 years ago

Hi,

Installing this plugin on a fresh install fails when it attempts to install the php73 packages with the following errors:

Error: heimdall had a failure Exception: RuntimeError Message: pkg error: - php73 :,php73-ctype :,php73-filter :,php73-hash :,php73-json :,php73-mbstring :,php73-openssl :,php73-pdo_sqlite :,php73-session :,php73-sqlite3 :,php73-tokenizer :,php73-xml :,php73-zip : Refusing to fetch artifact and run post_install.sh! Partial plugin destroyed

I suspect php73 packages are no longer available due to PHP73 now EOL.

Could the plugin please be updated to run PHP 8.1 or 8.0 considering 7.4 is now only getting security updates?

Thanks

jsegaert commented 2 years ago

I tried both PHP74 and PHP80, but couldn't get either to build. 😞

Unfortunately, the upstream Heimdall project only runs on PHP 73 or lower. According to this ticket, they actually abandoned PHP in lieu of JavaScript.

I haven't tried the JS version yet. I'll do more troubleshooting over the weekend.

l3rady commented 2 years ago

Thanks @jsegaert for looking into it. I didn't realize that the Heimdall project was in such a bad way. Given that it runs on Laravel, and that Laravel is still actively maintained, I would have assumed that the Heimdall project would be easily upgraded. I guess they have neglected it for so long that upgrading Laravel in Heimdall is now not a trivial task to get it upgraded.

Even if they do finish the JS version rebuild. That surely means that the archive of all dashboard widgets will not work without a re-write too...

jsegaert commented 2 years ago

The easiest workaround, is to revert to an earlier pkg-repo. The commands below will install the plugin in a FreeBSD 12.3 jail using the package snapshot dd 2021-Nov-10. Tested on TrueNAS TrueNAS-12.0-U7.

fetch https://raw.githubusercontent.com/jsegaert/iocage-my-plugins/master/heimdall-dashboard.json
iocage fetch -P heimdall-dashboard.json -n heimdall-plugin

As these packages are not longer updated, you probably do not want to expose this plugin to the internet.

shawnsmithnc commented 2 years ago

ooo wow - thank you - im trying the fetch command now in shell

fetch https://raw.githubusercontent.com/jsegaert/iocage-my-plugins/master/heimdall-dashboard.json iocage fetch -P heimdall-dashboard.json -n heimdall-plugin

shawnsmithnc commented 2 years ago

You are the man - Im so happy to get it working - Thank you 1,000 x

niklas2233 commented 2 years ago

it dosnt seem to work on truenas 13 it just says its going to install pkg but stops half way

jsegaert commented 2 years ago

Can you provide some more information, so that I can try to reproduce? Did you install the plugin from the UI on TrueNAS 13, or via the command line? If so, what commands did you use? What type of networking... did you use the default settings, or change something? etc...

mackenziexD commented 6 months ago

any chance we can get this update for 13.2-RELEASE? as its currently shitting out finfo errors when i try and deploy the jail 😩😩

jsegaert commented 6 months ago

An updated plugin is not in the future, as the iocage plugin system is being retired in TrueNAS CORE.

That being said, you can manually run the updated plugin-script from the command line, using the following commands:

wget https://raw.githubusercontent.com/jsegaert/iocage-my-plugins/master/heimdall-dashboard.json
iocage fetch -n heimdall-jail -P heimdall-dashboard.json

This will create a jail will be named heimdall-jail that is indistinguishable from a plugin. 😁 Change the command accordingly if you want to name it something else. Tested on TrueNAS-13.0-U6.1