April 24, 201016 yr I downloaded the newest unraid-swap.conf. I tried editing the configuration values once and then saved them. When 'installing' the swap file it went back to default values. I didn't want to reboot again right away ... When I re-edited the configuration variables and I set them to 8192 MB (the size of installed memory) and set the drive to /mnt/cache as suggested ... and clicked on the "Re-Install now with edited variables" the reponse I get is ... unraid-swapfile installation: unraid-swapfile[20587]: Initiating unRAID swap-file. dd: opening `/boot/.unraid.swapfile': Text file busy Setting up swapspace version 1, size = 134213 kB LABEL=UNRAID-SWAP, UUID=0e646b97-ab17-4476-986c-b0f0a0e4631c swapon: warning: /boot/.unraid.swapfile has insecure permissions 0777, 0600 suggested swapon: /boot/.unraid.swapfile: Device or resource busy swapon on /boot/.unraid.swapfile unraid-swapfile is now installed: and when I check the settings after this it says the swap file is size:128MB and is mounted on directory:/boot I tried clicking re-intstall on reboot (or something close) and re-edited the values, setting them to 8192MB and the directory to /mnt/cache upon rebooting the values are once again size:128MB and directory:/boot and it says package not yet installed for the swap file settings am I trying to go too big on the swap file? thanks for your time, Bobby syslog-2010-04-24.txt
April 24, 201016 yr Author It looks like the swap file is busy. You'll need to disable swap first, then you can re-install it. You'll also need to disable swap in order to stop the server, otherwise the cache disk will be busy and unable to be un-mounted. To disable it use the button on the user-scripts page or type: /sbin/swapoff -a -v rm /var/log/unRAID-swapfile A few days ago I fixed a small typo in the original unraid-swap.conf file where it would always use 128 meg because I mis-spelled a variable name. Use the "Check for Updates" button to get it if you don't already have the fixed version. You can see the difference at this link http://code.google.com/p/unraid-unmenu/source/diff?spec=svn69&r=68&format=side&path=/trunk/unraid-swapfile-unmenu-package.conf&old_path=/trunk/unraid-swapfile-unmenu-package.conf&old=7
April 24, 201016 yr see last paragraph ... I ran the update a few hours ago (just before trying it what was in the last post and more) rebooted ... still wasn't doing what I expected ... posted here ... ran unmenu update (v1.3.3) ... (mylocal.conf is the only update and mine is customized) Downloading myMain_local.conf rev $Revision: 51 $ $Date: 2010-04-13 14:27:16 -0400 (Tue, 13 Apr 2010) $ Local myMain_local.conf file exists, /tmp/unmenu_tmp/myMain_local.conf not installed I tried 512 MB and /mnt/cache but it's giving me a 134MB Swap file on /boot instead unraid-swapfile installation: unraid-swapfile[27763]: Initiating unRAID swap-file. 128+0 records in 128+0 records out 134217728 bytes (134 MB) copied, 12.1285 s, 11.1 MB/s Setting up swapspace version 1, size = 134213 kB LABEL=UNRAID-SWAP, UUID=7d174def-5a30-467d-b93a-2d200ddfcbf1 swapon: warning: /boot/.unraid.swapfile has insecure permissions 0777, 0600 suggested swapon on /boot/.unraid.swapfile unraid-swapfile is now installed: did this: /sbin/swapoff -a -v rm /var/log/unRAID-swapfile and deleted the .unraid.swapfile off my flash drive again I tried just changing the directory to /mnt/cache and then saving ... but it still gives me a 134MB swap file on /boot I tried /mnt/disk4 but it keeps on going back to /boot Here it is (maybe?) each time I edit and save the variables they look like they saved (I can see them on the package manager page) and they persist through a page refresh ... but when I click a button in the package manager (clicking download unrar in the package manager) when unmenu reloads the page stating it has downloaded unrar ... it also shows the swap file variables as having been reset to 128MB and the directory to /boot I guess it would save the variables for the size and directory when I edited them ... but when clicking the button to install the swap file it resets both variables ... size to 128MB and directory to /boot before starting the swapfile it also resets the values of size and directory for the swap file if I leave package manager page and go to the about page ... and return to the package manager I don't know if this helps ... Here is the information from the about page unmenu.awk: Version 1.3 Revision: 11 Joe L.... with modifications as suggested by bjp999 and many others Plug-in-modules 07-unmenu-mymain.awk: 1.46 - added spindown spinup commands to use new scheme used by unRAID - Revision: 7 08-unmenu-array_mgmt.awk: 1.2.3 - fixed "Stop" button - Joe L. - Revision: 7 09-unmenu-disk_mgmt.awk: 1.4 - use spinup/spindown commands now available in 4.5 unRAID Joe L. - Revision: 7 10-unmenu-links.awk: 1.2 Fixed increment of link counter - Revision: 7 15-unmenu-disk_perf.cgi: .1 - Proof of concept version Joe L. - Revision: 7 16-unmenu-syslog.awk: Version: .9 - modified by Joe L. to escape special charaters - Revision: 7 17-unmenu-syslog.awk: Version: .8 - modified by Joe L. to use a pattern file. - Revision: 7 18-unmenu-lsof.awk: Version: .1 - Joe L. - Revision: 7 20-unmenu-usage.awk: 1.0 - Revision: 7 200-unmenu-smarthistory.cgi: 1.1 - added tests for directory, file, and php - Revision: 7 25-unmenu-dupe_files.awk: 1.2 deal with appostraphe in file name - Revision: 7 29-unmenu-sysinfo.awk: 1.4 - Added new buttons for free space, mounted file systems - Joe L. - Revision: 7 30-unmenu-file_browser.awk: 1.1.5 fixed handling of time-stamps. (forced a specific format in "ls" so parse of names works consistently) Joe L. - Revision: 60 40-unmenu-iso_share.awk: 1.2 Added formatting of "ls" date/time string to allow consistent parse of file path - Joe L. - Revision: 66 50-unmenu-user_scripts.cgi: .4 - Added conditional tests to allow for dynamic button labels. - Revision: 61 600-unmenu-file_edit.awk: .2 Updated with ideas borrowed from go-script-manager plug-in to keep backup versions of files. - Revision: 7 99-unmenu-utility.awk: 1.0 - contributed by bjp999 - Revision: 7 990-unmenu-wget.awk: 2.2.4 Fixed bug with version compare of package with no affiliated download. - Revision: 56 999-unmenu-unraid_main.awk: 1.1 Joe L. -- Added parse of "ps" to check for non-standard emhttp port. - Revision: 7
April 24, 201016 yr Author After you edit the config values and save the edited value you must them press the re-install with new values button. Otherwise, nothing gets installed with the edited values. Joe L.
April 25, 201016 yr I don't know if this is a bug or just my machine. UnRaid crashed 2 times on the same Package Manager link. I am using 1.3 revision 11. This is what I got from syslog when I click on the Package Manager menu link. Apr 25 00:26:07 Tower unmenu[8946]: awk: ./unmenu.awk:437: fatal: print to "/inet/tcp/8080/0/0" failed (Connection reset by peer) Apr 25 00:26:07 Tower unmenu[8946]: unmenu.awk unable to start. It may already be running thanks, ~joy
April 25, 201016 yr When I click the re-install with value buttons on my unraid (4.5.3) it wipes the values for the unraid swap file to default and uses the default values could it be the awk version in unRaid 4.5.3? could I have funky permissions in my unmenu directory? downloading and installing and enabling re-install then disabling re-install unrar worked I've been using Firefox 3.6.3 so far ... I'll try Chrome 5.0.375.17 now same results on my unRaid (Edit Values) /mnt/cache (Save Values) (Install) and google chrome returns unraid-swapfile installation: unraid-swapfile[7697]: Initiating unRAID swap-file. 128+0 records in 128+0 records out 134217728 bytes (134 MB) copied, 10.318 s, 13.0 MB/s Setting up swapspace version 1, size = 134213 kB LABEL=UNRAID-SWAP, UUID=9e402f1c-4f48-4e89-a39d-add9009c38fe swapon: warning: /boot/.unraid.swapfile has insecure permissions 0777, 0600 suggested swapon on /boot/.unraid.swapfile unraid-swapfile is now installed: a swap file on /boot everything else has been working great ... and I really appreciate all the work you have put into this and your many other contributions
April 25, 201016 yr Author I don't know if this is a bug or just my machine. UnRaid crashed 2 times on the same Package Manager link. I am using 1.3 revision 11. This is what I got from syslog when I click on the Package Manager menu link. Apr 25 00:26:07 Tower unmenu[8946]: awk: ./unmenu.awk:437: fatal: print to "/inet/tcp/8080/0/0" failed (Connection reset by peer) Apr 25 00:26:07 Tower unmenu[8946]: unmenu.awk unable to start. It may already be running thanks, ~joy Which link on the package manager cause that message to occur? I've never see those error messages. he "reset by peer" indicates your browser disconnected and was not listening when unMENU attempted to send it something. What had you just done previously? The unMENU web-server is only able to handle one request at a time. If you had press a link or button that takes time to process then clicked on another (abandoning the first) you might get what you see in the log. The package manager need to have the DNS nameserver and gateway defined to function, but if you are using unMENU 1.3 those should already be in place as it uses them too.
April 25, 201016 yr Author When I click the re-install with value buttons on my unraid (4.5.3) it wipes the values for the unraid swap file to default and uses the default values could it be the awk version in unRaid 4.5.3? could I have funky permissions in my unmenu directory? downloading and installing and enabling re-install then disabling re-install unrar worked I've been using Firefox 3.6.3 so far ... I'll try Chrome 5.0.375.17 now same results on my unRaid (Edit Values) /mnt/cache (Save Values) (Install) and google chrome returns unraid-swapfile installation: unraid-swapfile[7697]: Initiating unRAID swap-file. 128+0 records in 128+0 records out 134217728 bytes (134 MB) copied, 10.318 s, 13.0 MB/s Setting up swapspace version 1, size = 134213 kB LABEL=UNRAID-SWAP, UUID=9e402f1c-4f48-4e89-a39d-add9009c38fe swapon: warning: /boot/.unraid.swapfile has insecure permissions 0777, 0600 suggested swapon on /boot/.unraid.swapfile unraid-swapfile is now installed: a swap file on /boot everything else has been working great ... and I really appreciate all the work you have put into this and your many other contributions Let me see if I can duplicate that here.
April 25, 201016 yr Author Here it is (maybe?) each time I edit and save the variables they look like they saved (I can see them on the package manager page) and they persist through a page refresh ... but when I click a button in the package manager (clicking download unrar in the package manager) when unmenu reloads the page stating it has downloaded unrar ... it also shows the swap file variables as having been reset to 128MB and the directory to /boot I guess it would save the variables for the size and directory when I edited them ... but when clicking the button to install the swap file it resets both variables ... size to 128MB and directory to /boot before starting the swapfile it also resets the values of size and directory for the swap file if I leave package manager page and go to the about page ... and return to the package manager I don't know if this helps ... That sounds as if the unraid-swapfile-unmenu-package.conf file is not properly being edited to save the new values. Let me see if I have the same symptoms if I follow the same steps.
April 25, 201016 yr I installed the APC module through the package manager and its been fine for quite some time now, but this morning I saw these error messages: Apr 25 04:40:01 Serenity apcupsd[3576]: apcupsd exiting, signal 15 Apr 25 04:40:01 Serenity apcupsd[11856]: Valid lock file for pid=3576, but not ours pid=11856 Apr 25 04:40:01 Serenity apcupsd[11857]: Valid lock file for pid=3576, but not ours pid=11857 Apr 25 04:40:01 Serenity apcupsd[11857]: apcupsd FATAL ERROR in device.c at line 71 Unable to create UPS lock file. If apcupsd or apctest is already running, please stop it and run this program again. Apr 25 04:40:01 Serenity apcupsd[11857]: Valid lock file for pid=3576, but not ours pid=11857 Apr 25 04:40:01 Serenity apcupsd[11857]: apcupsd error shutdown completed I wasn't able to get a status in the System Info page so I went into package manager and just "reinstalled" and it seems to be fine again. Is this something I should be concerned about?
April 25, 201016 yr Author Signal 15 is a termination signal Is it possibly you are running low on memory and the kernel killed it? What else was happening on the server around that same time? Which version of apcupsd are you running? There were two different versions in two packages. I use the older 3.14.3 version. Joe L.
April 25, 201016 yr Signal 15 is a termination signal Is it possibly you are running low on memory and the kernel killed it? What else was happening on the server around that same time? Which version of apcupsd are you running? There were two different versions in two packages. I use the older 3.14.3 version. Joe L. It was 4:40AM so there shouldn't be anything running on the server other than the normal unmenu, cache_dirs and packages through the package manager. That 4:40AM time looks like the time for the cron job for .DS_Store and ._file cleanup script? I honestly don't remember. I believe I reinstalled the 3.14.3 in package manager though. ETA: I have 4GB RAM in the box.
April 25, 201016 yr Author Signal 15 is a termination signal Is it possibly you are running low on memory and the kernel killed it? What else was happening on the server around that same time? Which version of apcupsd are you running? There were two different versions in two packages. I use the older 3.14.3 version. Joe L. It was 4:40AM so there shouldn't be anything running on the server other than the normal unmenu, cache_dirs and packages through the package manager. That 4:40AM time looks like the time for the cron job for .DS_Store and ._file cleanup script? I honestly don't remember. I believe I reinstalled the 3.14.3 in package manager though. ETA: I have 4GB RAM in the box. I figured I'd ask. Some people run torrents, etc... Were there any other error messages in the syslog preceeding the ones you posted? Joe L.
April 25, 201016 yr I figured I'd ask. Some people run torrents, etc... Were there any other error messages in the syslog preceeding the ones you posted? Joe L. I'm not that sophisticated I guess . The last messages preceeding those were spindown messages from the night before @ 19:28PM so there were no messages for 9 hours or so? That would probably make sense as I don't recall accessing anything last night from the server.
April 25, 201016 yr Which link on the package manager cause that message to occur? I've never see those error messages. he "reset by peer" indicates your browser disconnected and was not listening when unMENU attempted to send it something. What had you just done previously? The unMENU web-server is only able to handle one request at a time. If you had press a link or button that takes time to process then clicked on another (abandoning the first) you might get what you see in the log. The package manager need to have the DNS nameserver and gateway defined to function, but if you are using unMENU 1.3 those should already be in place as it uses them too. It's the Package Manager link from the top menu, not the install package buttons. I don't remember what I was looking at before clicking the Package Manager link. I do know that when that happens, http://tower:8080 no longer accessible. I have to restart unmenu again. thanks, ~joy
April 25, 201016 yr Author Which link on the package manager cause that message to occur? I've never see those error messages. he "reset by peer" indicates your browser disconnected and was not listening when unMENU attempted to send it something. What had you just done previously? The unMENU web-server is only able to handle one request at a time. If you had press a link or button that takes time to process then clicked on another (abandoning the first) you might get what you see in the log. The package manager need to have the DNS nameserver and gateway defined to function, but if you are using unMENU 1.3 those should already be in place as it uses them too. It's the Package Manager link from the top menu, not the install package buttons. I don't remember what I was looking at before clicking the Package Manager link. I do know that when that happens, http://tower:8080 no longer accessible. I have to restart unmenu again. thanks, ~joy Well, what do you know... I just was able to duplicate the error. First, it does not occur with Firefox. And it does not occur when using the Chrome browser. It DOES occur with Internet-Explorer, but only under a specific condition.... impatience. Here's how to duplicate it. Click on the "Package-Manager" link. It takes several seconds to load. While it is loading, click on the link AGAIN. Apparently, IE closes the first connection, and initiates a new connection for the second page requested. (even though it is the same page) In the mean-time, the poor little "awk" script that is attempting to render the packages attempts to send its output back to the browser, but nobody's listening, so it fails with the fatal error you see. Let me see if the "uu" loop can re-start it. (That is the intent of the loop, and it was initially put into place to catch when you requested a download of a syslog and canceled it on IE) I'll do some experiments and report back. Thanks for letting me know how you triggered the error. I'll bet I just need a delay for unmenu to finish closing the port before attempting to start unmenu again, since it looks like it is trying. Here is my syslog from a few minutes ago.. look familiar? Apr 25 15:16:18 Tower unmenu[5765]: awk: ./unmenu.awk:437: fatal: print to "/inet/tcp/8080/0/0" failed (Connection reset by peer) Apr 25 15:16:18 Tower unmenu[5765]: unmenu.awk unable to start. It may already be running Oh yes, I almost never use IE as my browser. It is the target of way too many virus writers. Joe L.
April 25, 201016 yr Joe, I have installed in my server case an extra flash drive and a HDD. I would like to be able to use a partition on the hdd or the extra flash drive as a permanent storage space. Ideally having the unrad package manager be configurable to put the packages up once using the mount point of either the hdd partition of flash drive. I would assume that somehow the packages would need to be able to deal with thses new point points. Would this be possible?
April 25, 201016 yr If you have a physical hard drive you can dedicate, you could try installing unRAID onto a full Slackware distro. With that, you won't need to reinstall packages upon reboots, as everything is persisted.
April 25, 201016 yr Author Joe, I have installed in my server case an extra flash drive and a HDD. I would like to be able to use a partition on the hdd or the extra flash drive as a permanent storage space. Ideally having the unrad package manager be configurable to put the packages up once using the mount point of either the hdd partition of flash drive. I would assume that somehow the packages would need to be able to deal with thses new point points. Would this be possible? It already does... The PACKAGE_DIRECTORY has always been configurable. With that said, there is one package-manager package that referenced /boot/packages explicitly, and one user-script button that does. I've just fixed the package-manager package. It was the one for mail-ssmtp configuration. The button that needs fixing is for "tarring" Crashplan files. I need to export the PACKAGE_DIRECTORY for it to be able to get rid of the current hard-coded path. You can simply create unmenu_local.conf file and put in it/add to it PACKAGE_DIRECTORY=/wherever That should do it. There is another technique that might be as easy,but I'm not sure will work on the flash drive, and that is to mount with the bind option the remote directory on the /boot/packages directory.
April 25, 201016 yr I thought that might be the case. I assume the unmenu_local.conf file goes in the unraid flash drives packages directory? or does it go into the unRaid flash drives config or ... I assume since I do not use mail ssmtp package and I do not use (I am not sure what it is) the button for tarring crashplan files, that I just need the directory entry.
April 26, 201016 yr Author I thought that might be the case. I assume the unmenu_local.conf file goes in the unraid flash drives packages directory? or does it go into the unRaid flash drives config or ...None of the above. unmenu_local.conf goes in the same folder as unmenu.conf and unmenu.awk. (Typically /boot/unmenu) It is expected to have unix style line-endings, so do not write it with notepad, or process it with "fromdos" if you have. You will need to re-start unmenu for it to read the edited .conf files. I assume since I do not use mail ssmtp package and I do not use (I am not sure what it is) the button for tarring crashplan files, that I just need the directory entry. As of last night I made the required changes so that everything will respect the PACKAGE_DIRECTORY line in the unmenu_local.conf file. You can use the "Check For Updates" and "Install Updates" buttons on the user-scripts page to get the set of updates in place. Note that there is a disadvantage of putting the files elsewhere in that it will not be as easy to manage as if under the \\tower\flash shared drive on the LAN. Joe L.
April 26, 201016 yr Author I don't know if this is a bug or just my machine. UnRaid crashed 2 times on the same Package Manager link. I am using 1.3 revision 11. This is what I got from syslog when I click on the Package Manager menu link. Apr 25 00:26:07 Tower unmenu[8946]: awk: ./unmenu.awk:437: fatal: print to "/inet/tcp/8080/0/0" failed (Connection reset by peer) Apr 25 00:26:07 Tower unmenu[8946]: unmenu.awk unable to start. It may already be running thanks, ~joy Last night I uploaded to google-code a new version of "uu" that should correctly re-start unMENU when it crashes it you click on a link while it is still processing a prior request in Internet-Explorer. The second click while processing the first will still result in the same failure to the browser, but if you wait a few seconds and the refresh the browser unMENU should have re-started itself. Use the "Check-for-updates" button on the user-scripts page to get a list of what is new. (A number of other fixes were also put into place) Thanks again for letting me know that IE follows its own standards Joe L.
April 26, 201016 yr Author There is another technique that might be as easy,but I'm not sure will work on the flash drive, and that is to mount with the bind option the remote directory on the /boot/packages directory. I just tried this alternate method and it works perfectly. I currently have a /boot/packages directory. It is getting pretty full, as I tend to experiment a lot with packages I seldom (if ever) will use. My 1Gig flash drive is about 3/4 full. But then I'm a pack-rat and have lots of old copies of bzroot and bzimage, etc. I can create an alternate "packages" directory anywhere I like. For this example, I created it on my cache drive, but it would be even better on a second flash drive, since I would not need to deal with issues un-mounting the cache drive. In the same way, my alternate "packages" directory could be on a disk outside of the unRAID array. To create my "alternate" directory to hold the downloaded packages I did this: mkdir /mnt/cache/.joe_packages I named it with a leading period so the "mover" script would ignore it. Notice I can give it ANY name I like. I can mount it on top of /boot/packages by using the following command mount --bind /mnt/cache/.joe_packages /boot/packages Once I do that, I can do an "ls" of /boot/packages and see it is empty. (don't worry, my old files are still on the flash drive, but the "mount" command now takes priority and all I see is the empty directory I had created on the /mnt/cache disk.) If I wanted to have all my files in the new directory under /mnt/cache, I should have copied them there before doing the "bind" that hides them in their original directory on the flash drive. I would make the new packages directory copy the files from the old /boot/packages to the new directory mount --bind /new_directory_path /boot/packages Now, I can let the packages directory grow as big as I need without worrying about filling my flash drive. I cannot stop the unRAID server though, as the cache drive is "busy" until I un-mount the replacement packages directory. To do that all you need do is umount /boot/packages Since it is a bit of a pain to have to remember to un-mount the alternate packages directory, (although you'll quickly remember when you attempt to stop the array as all it will say is un-mounting) I suggest you make it on a disk not part of the "assigned" set of disks in the array. An second partition on the cache drive would work, or a second USB flash drive would work perfectly. Once we get triggers for post array start and pre-array stop you can mount and un-mount even to points in the protected array. Just be aware that if your scripts need access when the array is stopped that the un-accessible "packages" directory will not be bound in place and that your original /boot/packages directory will be the one used. (and that may not be a bad thing) Joe L.
April 26, 201016 yr Joe, May I ask for a feature request. Maybe I am just too lazy, but the Package Manager page is way too long to scroll down. Can you put some left navigation links so user can just go to that package. Also, currently when you modify some thing from the bottom part of the page, it goes back to the top so you have to scroll all the way down to verify your changes. I thought that is just a bit inconvenience for some of the lazy people like myself. :-) thanks, ~joy
April 26, 201016 yr Really liking the new 'Check for unMENU updates' button. Excellent plan. And the package manager is growing into an impressive resource. Have got iStat working happily, now trying out mail. Managing to resist the urge to install everything I read the original 'Ideas for Revamping the Initial Unraid Page'. V interesting to see how unMENU developed from the start
Archived
This topic is now archived and is closed to further replies.