SimonF Posted October 31, 2020 Share Posted October 31, 2020 (edited) This plugin provides a GUI for iSCSI. Kernel needs to be created with ich777 's Kernel Helper, Currently this is still WIP and classed as Beta https://github.com/SimonFair/unraid.iSCSI/raw/main/iSCSI.plg Buttons are dont currently function(WIP) Edited November 5, 2020 by SimonF changed Quote Link to comment
Joedy Posted November 4, 2020 Share Posted November 4, 2020 HI, I installed the ich777 kernel iscsi version beta 30 getting a lot of these errors in the GUI, also states my flash disk is readonly which should be fine? Warning: file_get_contents(/etc/target/saveconfig.json): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 112 Warning: implode(): Invalid arguments passed in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 114 Warning: Invalid argument supplied for foreach() in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 124 Warning: array_column() expects parameter 1 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Warning: array_search() expects parameter 2 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Warning: array_column() expects parameter 1 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Warning: array_search() expects parameter 2 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Warning: array_column() expects parameter 1 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Warning: array_search() expects parameter 2 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Warning: array_column() expects parameter 1 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Warning: array_search() expects parameter 2 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Warning: array_column() expects parameter 1 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Warning: array_search() expects parameter 2 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Warning: array_column() expects parameter 1 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Warning: array_search() expects parameter 2 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Warning: array_column() expects parameter 1 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Warning: array_search() expects parameter 2 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Warning: array_column() expects parameter 1 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Warning: array_search() expects parameter 2 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Warning: array_column() expects parameter 1 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Warning: array_search() expects parameter 2 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Warning: array_column() expects parameter 1 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Warning: array_search() expects parameter 2 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Warning: array_column() expects parameter 1 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Warning: array_search() expects parameter 2 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Warning: array_column() expects parameter 1 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Warning: array_search() expects parameter 2 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Warning: array_column() expects parameter 1 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Warning: array_search() expects parameter 2 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Warning: array_column() expects parameter 1 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Warning: array_search() expects parameter 2 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Warning: array_column() expects parameter 1 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Warning: array_search() expects parameter 2 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Warning: array_column() expects parameter 1 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Warning: array_search() expects parameter 2 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Warning: array_column() expects parameter 1 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Warning: array_search() expects parameter 2 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Warning: array_column() expects parameter 1 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Warning: array_search() expects parameter 2 to be array, null given in /usr/local/emhttp/plugins/unraid.iSCSI/include/lib.php on line 60 Quote Link to comment
Joedy Posted November 4, 2020 Share Posted November 4, 2020 ok fixed all those but the buttons don't work and cant add anything through the gui. am i missing something? Appreciate your help Quote Link to comment
SimonF Posted November 4, 2020 Author Share Posted November 4, 2020 12 hours ago, Joedy said: buttons don't work Hi Joedy, i have only created the base layout at present, Still working on the buttons and process to add. You have to use targetcli at this time. Can i ask what you did to fix issue with the json, was it to create the file via saveconfig? Quote Link to comment
Joedy Posted November 4, 2020 Share Posted November 4, 2020 yeah it was that and also the config location was wrong also it needed an initiator name for the machine which might need to be part of the setup that it creats a standard one automatically. Quote Link to comment
ich777 Posted November 4, 2020 Share Posted November 4, 2020 15 minutes ago, Joedy said: yeah it was that and also the config location was wrong also it needed an initiator name for the machine which might need to be part of the setup that it creats a standard one automatically. Can you please be a little bit more specific what is throwing errors and when, never got a problem in the GUI or does this happen when you install this plugin? You know that the Unraid-Kernel-Helper has now support for iSCSI and you can create Targets? Quote Link to comment
Joedy Posted November 4, 2020 Share Posted November 4, 2020 it is when it is initially installed and it didn't create the config file, it was looking for it and when i manually put it in that place it worked but of course the buttons don't work yet and unsure if the queries work as it is not showing the initiator that i created manually in the plugin. i will have a look at the files today and adjust them for what we need, thanks for your help. Was these files what you were going to send me ages ago? yep aware it does through a command line, the GUI will be helpful to manage them a lot easier especially when i will have about 20 of them. Quote Link to comment
ich777 Posted November 4, 2020 Share Posted November 4, 2020 9 minutes ago, Joedy said: it is when it is initially installed and it didn't create the config file, it was looking for it and when i manually put it in that place it worked but of course the buttons don't work yet and unsure if the queries work as it is not showing the initiator that i created manually in the plugin. The plugin creats a config file? 10 minutes ago, Joedy said: Was these files what you were going to send me ages ago? No, it's the Unraid-Kernel-Helper-Plugin on the CA App. It will show you your targets, drives (now limited to FileIO and Block Targets),... Quote Link to comment
Joedy Posted November 4, 2020 Share Posted November 4, 2020 no the plugin does not create the config file at all, i have modified it so if the config does not exist then it will create it. Quote Link to comment
ich777 Posted November 4, 2020 Share Posted November 4, 2020 10 minutes ago, Joedy said: no the plugin does not create the config file at all, i have modified it so if the config does not exist then it will create it. Oh my god, you saved my life, I had a bug in the Kernel-Helper-Plugin if no IQN was found the IQN page wouldn show up, now it should be fixed after a plugin update: EDIT: After you created a IQN the other tabs will show up. Quote Link to comment
Joedy Posted November 4, 2020 Share Posted November 4, 2020 we are pushinbg our changes up to your Git Quote Link to comment
ich777 Posted November 4, 2020 Share Posted November 4, 2020 17 minutes ago, Joedy said: no the plugin does not create the config file at all, i have modified it so if the config does not exist then it will create it. That's not necessary for upcoming versions of Unraid. Quote Link to comment
Joedy Posted November 4, 2020 Share Posted November 4, 2020 when you click the button to doesn't do anything Nov 5 08:55:57 BackupServer emhttpd: cmd: /usr/local/emhttp/plugins/community.applications/scripts/pluginInstall.sh install https://raw.githubusercontent.com/ich777/unraid-kernel-helper-plugin/master/plugins/Unraid-Kernel-Helper.plg Nov 5 08:56:01 BackupServer root: plugin: running: anonymous Nov 5 08:56:01 BackupServer root: plugin: creating: /boot/config/plugins/Unraid-Kernel-Helper/Unraid-Kernel-Helper-2020.11.04.txz - downloading from URL https://raw.github.com/ich777/unraid-kernel-helper-plugin/master/archive/Unraid-Kernel-Helper-2020.11.04.txz Nov 5 08:56:08 BackupServer root: plugin: checking: /boot/config/plugins/Unraid-Kernel-Helper/Unraid-Kernel-Helper-2020.11.04.txz - MD5 Nov 5 08:56:08 BackupServer root: plugin: running: /boot/config/plugins/Unraid-Kernel-Helper/Unraid-Kernel-Helper-2020.11.04.txz Nov 5 08:56:09 BackupServer root: plugin: creating: /usr/local/emhttp/plugins/Unraid-Kernel-Helper/README.md - from INLINE content Nov 5 08:56:09 BackupServer root: plugin: running: anonymous Quote Link to comment
ich777 Posted November 4, 2020 Share Posted November 4, 2020 4 minutes ago, Joedy said: when you click the button to doesn't do anything Nov 5 08:55:57 BackupServer emhttpd: cmd: /usr/local/emhttp/plugins/community.applications/scripts/pluginInstall.sh install https://raw.githubusercontent.com/ich777/unraid-kernel-helper-plugin/master/plugins/Unraid-Kernel-Helper.plg Nov 5 08:56:01 BackupServer root: plugin: running: anonymous Nov 5 08:56:01 BackupServer root: plugin: creating: /boot/config/plugins/Unraid-Kernel-Helper/Unraid-Kernel-Helper-2020.11.04.txz - downloading from URL https://raw.github.com/ich777/unraid-kernel-helper-plugin/master/archive/Unraid-Kernel-Helper-2020.11.04.txz Nov 5 08:56:08 BackupServer root: plugin: checking: /boot/config/plugins/Unraid-Kernel-Helper/Unraid-Kernel-Helper-2020.11.04.txz - MD5 Nov 5 08:56:08 BackupServer root: plugin: running: /boot/config/plugins/Unraid-Kernel-Helper/Unraid-Kernel-Helper-2020.11.04.txz Nov 5 08:56:09 BackupServer root: plugin: creating: /usr/local/emhttp/plugins/Unraid-Kernel-Helper/README.md - from INLINE content Nov 5 08:56:09 BackupServer root: plugin: running: anonymous Thank you, I replaced the working version with a non working version... Quote Link to comment
ich777 Posted November 4, 2020 Share Posted November 4, 2020 @Joedy The plugin is now working but you have to delete it from your plugins and install it new through the CA App. That happens when you migrating something newer to something older... Quote Link to comment
Joedy Posted November 4, 2020 Share Posted November 4, 2020 The pathway to run the script when creating an iqn is wrong we are pushing the change to you to fix this also the IQN does not show up under the IQN tab when created only the overview page is this by design? Quote Link to comment
Joedy Posted November 4, 2020 Share Posted November 4, 2020 if your plugin is working and ours isnt seems we have issues with the paths that you are using in the files it is not standard like should be unraid-kernel-helper and this is across quite a few lines of code. Quote Link to comment
ich777 Posted November 4, 2020 Share Posted November 4, 2020 1 minute ago, Joedy said: if your plugin is working and ours isnt seems we have issues with the paths that you are using in the files it is not standard like should be unraid-kernel-helper and this is across quite a few lines of code. Sorry but you still have the old version of the plugin the new version looks like this: Quote Link to comment
ich777 Posted November 4, 2020 Share Posted November 4, 2020 In this file are the latest version if you uninstalled and then installed it again it should pull the latest version, but it could possibly be that Unraid or better speaking linux is caching the files and get you stell the old zip. https://github.com/ich777/unraid-kernel-helper-plugin/raw/master/archive/Unraid-Kernel-Helper-2020.11.04.txz Quote Link to comment
Joedy Posted November 4, 2020 Share Posted November 4, 2020 Thanks, yep got the right one now Quote Link to comment
ich777 Posted November 4, 2020 Share Posted November 4, 2020 1 minute ago, Joedy said: Thanks, yep got the right one now The code is not very beautiful but it's the best I can do, never learned any webcoding... Quote Link to comment
Joedy Posted November 4, 2020 Share Posted November 4, 2020 thats ok we are looking at it now and will push any changes and you can decide if you want it or not Quote Link to comment
Joedy Posted November 4, 2020 Share Posted November 4, 2020 supposed to be a button to do something here? Quote Link to comment
ich777 Posted November 4, 2020 Share Posted November 4, 2020 14 minutes ago, Joedy said: supposed to be a button to do something here? Sorry it's past midnight I have to get some rest. Will look into this tomorrow Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.