webmin / authentic-theme

Official theme for the best server management panel of the 21st Century
https://authentic-theme.com
MIT License
947 stars 163 forks source link

Theme appears to have broken Webmin #1018

Closed b0blee closed 6 years ago

b0blee commented 6 years ago

I'm running under Ubuntu 16.04, and all of my packages are up to date. Webmin has broken. I'm getting the following error message, which points a finger at authentic-theme: Error - Perl execution failed Can't locate /authentic-init.pm in @INC (you may need to install the ::authentic-init module) (@INC contains: /usr/share/webmin/authentic-theme/lib /usr/share/webmin /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base . /usr/share/webmin/ ..) at /usr/share/webmin/authentic-theme/authentic-lib.pm line 18. Compilation failed in require at /usr/share/webmin/authentic-theme/index.cgi line 10.

I would normally install a module from within Webmin. How can I install the ::authentic-init module with a broken Webmin?

swelljoe commented 6 years ago

You don't need to install the authentic-init module. It is part of the theme.

Restarting Webmin will probably fix it. But, if it doesn't, you can force a fresh download of the theme with the theme-update.sh script found in the authentic-theme directory (or just grab the tarball from the downloads page and extract it into place). Then restart Webmin.

b0blee commented 6 years ago

Thanks for your help. It turned out that I had to run Webmin's update-from-repo.sh script first. All is well now. Not an issue.

gnadelwartz commented 6 years ago

l guess that's mainly because the script does everything joe mentioned as a side effect 😀 nice to now ...

iliajie commented 6 years ago

Can't locate /authentic-init.pm ..

This error happens when /etc/webmin/config is overwritten with any other config from any other module. It happended to me only once and I could never figure out how and why.

I'm surprised that it's okay after running update-from-repo.sh script as it shouldn't touch /etc/webmin files at all.

Kay, is that true that update script doesn't do anything to configuration files?

iliajie commented 6 years ago

Ref.: https://github.com/webmin/webmin/issues/755

iliajie commented 6 years ago

That's very unusual - can you figure out exactly which page or action in Virtualmin triggered this over-write? The Webmin Actions Log module may be useful, as it can search log files by file effected.

@b0blee Bob, could you try this recommendation by Jamie?

b0blee commented 6 years ago

To the best of my recollection, I was on the System/Software Package Updates page. I had clicked "Only New" and before it returned I clicked "Installed", and then the error appeared. There was nothing in the Webmin Actions Log.

The machine is a small DigitalOcean "droplet" with 2 GB RAM (no virtual memory) and a 30 GB disk. It runs Ubuntu 16.04 and nginx to serve about a dozen very low volume web sites. I've never seen RAM usage go over 60% - right now it's idling at about 33%. The disk is about half full. It runs pretty cool all the time, and has been trouble free for the past year.

iliajie commented 6 years ago

Bob, thank you for your report. We'll do our best to nail it and fix it.

gnadelwartz commented 6 years ago

yes and no, it runs Jamie's setup.sh as with every regular update, which rewrites some files in /etc/config, so the fix may be a side effect of:

update-from-repo.sh seems to be the universal fix 😂

iliajie commented 6 years ago

Neither restart nor updating the theme going to fix this issue.

gnadelwartz commented 6 years ago

then it was setup.sh which seems to discard the wrong config file and wrote a new and working default config instead.

iliajie commented 6 years ago

That is good to know. It seems very like it.