-
Notifications
You must be signed in to change notification settings - Fork 168
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
Webui not working on FreeNAS 9.3 #95
Comments
MIneOS doesn't actually add real crontabs to the underlying system, the crontabs are managed and interpreted through the cron npm module, which should be platform agnostic. If scheduled tasks aren't working though, I'll take a look. |
I haven't been able to reproduce this issue. Cron works as expected for the simple crons I've been entering in so far. If this is still an issue, please let me know the following:
|
i was going to look into this now, but when i try and update mineos-node to node v4 i get errors compiling node_modules userid and posix (complains that -std=gnu++0x is an unrecognized option). |
It's still hard to diagnose without knowing what commit you're on. There's a point when userid and posix get updated to nodev4-compatible versions, but I can't tell if your npm is trying to use it or the older ones. Successfully
|
MineOS-node commit: 99c2d68 |
I continue to test the MineOS webui under FreeBSD, though admittedly I don't use the FreeNAS distro at all. Almost all of my testing has been under FreeBSD 10, which I've found has worked okay with pre-stable node as well as 4.0+. Right now what you're experiencing is limited solely to the realm of Node/NPM and the build environment. My build environment under FreeBSD 10 (and youre 9.3) shouldn't be too different...but perhaps they are very different--I'm just not very well versed in it. In 9.0, you're definitely using a CLANG compiler (or at least it's present by default) and I would think that's enough, but evidently not. You might try stepping back a few commits and try checking out whether it builds.
Does it build? (modify the above path for where the FreeNAS plugin puts it. again, not familiar with it's conventions, but it should be similar). |
Well, i have tried to use 1.0.1 but still getting complaints about the -std=gnu++0x. |
Sorry for the late update, but i have not had the time to look at this again, i have progressed through the error when installing with npm install, but now i get "unable to load the node-posix extension module" and nothing more when i try to login (with correct and incorrect password). |
The I still don't look much at FreeNAS, but I know that MineOS works without issue on FreeBSD, so somewhere in there is a disconnect that is keeping you from properly building the modules that MineOS does really need. You can also try showing us the error log and maybe we can work more with it. |
Here is the mineos.log and console output: https://gist.github.com/thesymbol/539f00d83951068dc0fa P.S. to get rid of the gmake error i had to run: npm install -g gmake. |
Hrm, so there's something telling in there, but I'm not sure what to make of it. For example, you should be able to do this: (as you did)
This is the absolute bare minimum it takes to ensure that 'node-posix' is getting built and works. But if you get an error from this, we know it's not MineOS code--we have to find out why the posix module is inaccessible to node! Thinking on it further... |
did a npm rebuild posix -dd to get build output (might help). |
Have you recently tried removing the I just installed nodev5 on Ubuntu and then I got an error similar to yours. While I apologize I haven't been with much time to get a FreeNAS instance up and running, but I still am able to get the most current commit running on FreeBSD, so I still have yet to determine the differences here. |
tried with
if the module was not found it would error out of node with undef but it can see the module but it clearly isnt working correctly. If you could get an instance up of FreeNAS it would simplify this a bit. |
The problem here is we're not running into a MineOS issue.
Does this give you an error? |
I know that its not related to mineos, and yes that gives me the same error as before (tried to do it in a empty directory and nothing installed in the global directory) I will try and install a clean FreeNAS instance in virtual box to verify that its not my installation that is acting up. |
I'm trying to update the freenas plugin to have node 4.X and running into issues with building this module on FreeBSD 9.3 (which is the OS of my build environment). I'll post my build errors tonight and hopefully we can come up with a solution. |
Also take note of this semi-recent release: https://github.com/hexparrot/mineos-node/releases/tag/v1.1.2 This is the last release before 4.0 became mandatory, due to some new usage of the |
my goal with the plugin is that users can update it themselves to the latest commit. so while that's great info, won't make a difference in my case. thanks |
Here's what I was hitting yesterday. I'm assuming my issue is because of dependencies that are not compatible with each other. My build environment isn't ideal and will be much cleaner once I can build plugins on FreeBSD10 (for FreeNAS 10).
|
I got past that error by doing |
hmm, nice. should that be added as a dependency then? |
Well maybe, atleast for FreeNAS systems its needed, altough you probably will end up with the same issue as @hexparrot and i have discussed that node-posix wont work, and it dosen't give any usable error messages. |
thanks for the insight. I'll see if I hit the same issue. |
I'm also hitting the |
I was able to build the mineos plugin after first building the gmake dependency. I still can't load node-posix but wanted to see what would happen when I try starting mineos. I'm hitting this upon running the init script.
Maybe FreeBSD 9.3 doesn't support GLIBC 3.4.11 which is required because of some functions called by the node-posix module? |
Recently, I received a PR addressing FreeNAS posix auth: https://github.com/hexparrot/mineos-node/tree/Mithril7-master @josh4trunks can you switch to this branch and see if it works? Currently, I'm testing this to make sure there's no unintended side-effects for all other systems (linux, freebsd). If this resolves the remaining issue on FreeNAS, I'd definitely get this into master. EDIT: #206 has been pulled in. I tested it on Debian, Ubuntu, Arch, FreeBSD 10.2, and CentOS. All handle this auth update well, and FreeBSD actually is fixed (did it not work before?! and for how long?!). I've merged it into master, so just update to the latest commit and ignore this alternate branch. |
@thesymbol I'm not sure if my plugin jails are using the latest template. these are all new plugin installs so they likely clones of what I had. I'm not even sure if they updated the plugin jail template with the 9.10 update. @hexparrot ok, I'll test again with the commit today/tonight, crossing my fingers. With enough trying I was getting everything working accept for auth. But I was not able to actually compile a new enough version of node in my 9.3 build environment that works on the plugin jail. |
@josh4trunks |
I'm starting to think the (newly installed) plugin jails on FreeNAS 9.10 are FreeBSD10 based, with the compat9 package installed. If so, maybe I could successfully build PBIs for MineOS in a FreeBSD10 based system. Then I wouldn't have he issues with compiling/running newer versions of Node. Only issue would be users of FreeNAS 9.3 couldn't run the new PBI, but this probably isn't the majority anymore. @jsegaert |
I'm still having authentication issues, in a FreeNAS 9.10 plugin jail, with the latest commit and with authentication-pam installed. |
I can confirm that git commit 7910864 fixes that authorization error for me. Thank you! |
Can also confirm that it is working now on 7910864 |
for anyone that has it working are you using a plugin jail or standard jail? |
@josh4trunks i used a standard jail (as in template: --- ), and it comes up as a FreeBSD icon in the jails view (and it says standard in the jails list). |
ok, I'm trying to modify a plugin jail by installing npm/node with pkg. this way the automounting of linprocfs still works and the configuration options are still available in the freenas webui. but for some reason authentically still isn't working =\ |
That is wierd, are you sure your instance of the plugin jail is 9.10? (FreeBSD 10) because it is not working on lower than that (tried to do it in an old standard 9.3 jail and it also failed). |
yes, it is a plugin jail on FreeNAS9.10. I believe the jail is a FreeBSD10 userland because I tested installing node built for FreeBSD10 and it worked as expected. I can post my steps and maybe you guys can see if I'm doing anything wrong. |
ye or at least we can try and reproduce the issue :) |
OK, thanks. Here's what I'm trying...
|
do you have all the other packages needed already installed (like gmake, git, etc...)? Because when compiling it manually (the whole node_modules directory) you have to use "CXX=c++ npm install", atleast that fixed the compiling of the posix plugin for me (as we hexparrot found out earlier i think, this issue is getting big). instructions: https://minecraft.codeemo.com/mineoswiki/index.php?title=MineOS-node_(pkg_add) It must be that you are still compiling the posix plugin with something else than gmake and that might be why its causing issues. |
yes, those are available in the pbi directory. the issue with node is i can't find a way to compile it on FreeBSD 9 VM that will run on these FreeBSD 10 based jails =/ hmm, forgot about setting CXX in my recent round of testing, that would probably drop the need for gcc earlier, and authentication might work. |
unrelated, but @hexparrot I had some questions/comments about the wiki entry
|
EDIT |
Yes i think that might actually be the only solution at this time at least, cant you use a standard jail for a plugin at all? (might be unrelated to this and is rather a FreeNAS issue to take care of) |
nope, the PBI is installed to whatever jail freenas wants. |
hm, isnt it |
guess that would be more specified, but either would work the same unless there really was another npm port in another category. |
i think there was a different port before at least on 9.3 there was an older version and a newer (not the super old 0.10 or whatever it was but a recent version). |
yeah, but those were in the same category with different naming like npm2. so as I said, category would not be needed |
I think this bug can be closed. This is not a bug in mineos-node, just complications with the PBIs / the plugin system in FreeNAS 9.10 I have a manual workaround detailed here |
Yes, since the original issue is solved (or atleast the issue it turned into), will wait for hexparrot to close instead. |
Thank you everybody for your continued work in this thread to try to hone in on why auth wasn't working on FreeBSD/FreeNAS! Upon your recommendation, I'll close this issue! |
The webgui is not applying the cron tasks to the crontab on FreeBSD
crontab -e returns an empty crontab, while the cron.config in the server folder does contain the information for the cron task.
The text was updated successfully, but these errors were encountered: