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

Missing menu link in Hardware #11

Open
khartahk opened this issue Apr 29, 2017 · 3 comments
Open

Missing menu link in Hardware #11

khartahk opened this issue Apr 29, 2017 · 3 comments

Comments

@khartahk
Copy link

After installation either via git clone or using the webmin plugin file the menu is not found. Also the search does not find it.
The plugin works if you go to it usin a direct link or using the link provided after installation when using the webmin plugin file.

@8layer8
Copy link

8layer8 commented May 19, 2017

I had this too, if you go into Webmin - Webmin Users - Select your username - Available Webmin Modules - Check ZFS Manager and then click Save. The ZFS manager should appear now. I don't know how to fix it code-wise, but this seems to work. Nice work Jon!

@jonmatifa
Copy link
Owner

Yeah, I haven't been able to figure that one out yet. You'll have to follow 8layer8's advice above for now. Additionally, if the module is showing up under "other" or somewhere other than hardware (or you want to reassign the category yourself) you can go to Webmin -> Webmin Configuration -> Reassign Modules and change where any of the webmin modules are found including zfsmanager.

@hjmallon
Copy link

hjmallon commented Aug 29, 2018

I have a fix lined up for Webmin not recognising the category in my branch fix_install. I will make a pull request after my first one (as it is based on top of that) (#29).

Perl on Linux does not strip CRLF from line endings with chomp, only LF, which leaves a random CR on the end of the "hardware" string (for example). This means it won't match the "hardware" string in the categories.

See the following Perl for info

#!/usr/bin/perl

$string = "hardware\n";
$retval  = chomp( $string );
$hstring = unpack ("H*",$string);

print " Chomped String is : $string\n";
print " Hex is : $hstring\n";
print " Number of characters removed : $retval\n";

$string = "hardware\r\n";
$retval  = chomp( $string );
$hstring = unpack ("H*",$string);

print " Chomped String is : $string\n";
print " Hex is : $hstring\n";
print " Number of characters removed : $retval\n";

$nline = unpack ("H*", %/);

print " Chomping off chars: $nline\n";

gives

# ./test.pl 
 Chomped String is : hardware
 Hex is : 6861726477617265
 Number of characters removed : 1
 Chomped String is : hardware
 Hex is : 68617264776172650d
 Number of characters removed : 1
 Chomping off chars: 30

The fix, as I have done, is to dos2unix all the files in this repo (this makes them match other webmin source too).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants