Firmware 4.0.5 for TS-412 fail - no enough space on RAM

Discussion on setting up QNAP NAS products.
boqa75
New here
Posts: 9
Joined: Mon Apr 11, 2011 2:18 pm

Firmware 4.0.5 for TS-412 fail - no enough space on RAM

Post by boqa75 »

Hi,

Today I saw that a firmware, 4.0.5, was available for download for my TS-412 system. I downloaded, unzipped and tried to update the firmware, but I'm met with the error :
"Failed. No enough space on RAM/ disk available for firmware update."

I've tried to disable all services and applications, but still cannot update. df command gives me

Code: Select all

Filesystem                Size      Used Available Use% Mounted on
/dev/ram0                32.9M     15.2M     17.7M  46% /
Anyone who can help me how to diagnose and/or update?

Thanks
fantomas
Experience counts
Posts: 1560
Joined: Mon Feb 07, 2011 5:40 am
Location: Bratislava, Slovakia
Contact:

Re: Firmware 4.0.5 for TS-412 fail - no enough space on RAM

Post by fantomas »

experience with administration of UN*X (mostly linux) and applications on internet servers since 1994...
User avatar
schumaku
Guru
Posts: 43578
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

Re: Firmware 4.0.5 for TS-412 fail - no enough space on RAM

Post by schumaku »

The message is more generic than talking of the root Ram disk only.

Login to the NAS Linux shell from your computer (Windows: puTTY, OS X Terminal app: $ ssh admin@[NAS-IP-address]) using the admin credentials. There you can enter the commands (the [~] shows just the current directory, the # is the prompt.

Run these commands as the shell prompt, post the output to the forum:

Code: Select all

mount

Code: Select all

df
Example output:

[~] # mount
/proc on /proc type proc (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
sysfs on /sys type sysfs (rw)
tmpfs on /tmp type tmpfs (rw,size=32M)
none on /proc/bus/usb type usbfs (rw)
/dev/sda4 on /mnt/ext type ext3 (rw)
/dev/md9 on /mnt/HDA_ROOT type ext3 (rw,data=ordered)
/dev/sda3 on /share/HDA_DATA type ext4 (rw,usrjquota=aquota.user,jqfmt=vfsv0,user_xattr,data=ordered,delalloc,acl)
nfsd on /proc/fs/nfsd type nfsd (rw)
tmpfs on /.eaccelerator.tmp type tmpfs (rw,size=32M)

[~] # df
Filesystem Size Used Available Use% Mounted on
/dev/ram0 32.9M 15.9M 17.0M 48% /
tmpfs 32.0M 2.2M 29.8M 7% /tmp
/dev/sda4 364.2M 345.0M 19.2M 95% /mnt/ext
/dev/md9 509.5M 141.6M 367.9M 28% /mnt/HDA_ROOT
/dev/sda3 457.0G 38.7G 417.8G 8% /share/HDA_DATA
tmpfs 32.0M 0 32.0M 0% /.eaccelerator.tmp

Following a potential free-up (wont work otherwise I'd guess), copy the firmware image i.e. to the Public shared folder, use the process here http://wiki.qnap.com/wiki/Manually_Updating_Firmware (for the move [mv] or better us copy # cp /share/Public/TS....img ...).
boqa75
New here
Posts: 9
Joined: Mon Apr 11, 2011 2:18 pm

Re: Firmware 4.0.5 for TS-412 fail - no enough space on RAM

Post by boqa75 »

Thanks for the replies. I have tried a manual update also, but with same result: "Failed. No enough space on RAM/ disk available for firmware update." (Spelling error is not mine, it is how the output is! :)

Schumaku; you asked me to post results from mount and df commands. It is :

Code: Select all

[~] # mount
/proc on /proc type proc (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
sysfs on /sys type sysfs (rw)
tmpfs on /tmp type tmpfs (rw,size=32M)
none on /proc/bus/usb type usbfs (rw)
/dev/sda4 on /mnt/ext type ext3 (rw)
/dev/md9 on /mnt/HDA_ROOT type ext3 (rw)
/dev/md0 on /share/MD0_DATA type ext4 (rw,usrjquota=aquota.user,jqfmt=vfsv0,user_xattr,data=ordered,delalloc,acl)
tmpfs on /.eaccelerator.tmp type tmpfs (rw,size=32M)

Code: Select all

[~] # df
Filesystem                Size      Used Available Use% Mounted on
/dev/ram0                32.9M     15.2M     17.7M  46% /
tmpfs                    32.0M    212.0k     31.8M   1% /tmp
/dev/sda4               364.2M    300.8M     63.4M  83% /mnt/ext
/dev/md9                509.5M    175.6M    333.8M  34% /mnt/HDA_ROOT
/dev/md0                  3.6T      3.2T    354.8G  90% /share/MD0_DATA
tmpfs                    32.0M         0     32.0M   0% /.eaccelerator.tmp
Yes, I guess I need to free up something, but I don't know how I can do that. I've tried to disable all non-essential services (all * stations), disable all packages etc. I also tried to reboot and upgrade manually immediately after reboot, but still I get same error message.
User avatar
schumaku
Guru
Posts: 43578
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

Re: Firmware 4.0.5 for TS-412 fail - no enough space on RAM

Post by schumaku »

Ok, appears it's difficult to copy and paste some more lines from the update.sh run on the shell...

Never mind: Follow the Wiki process http://wiki.qnap.com/wiki/Manually_Updating_Firmware - leaving the firmware image on the NAS share, i.e.on //NAS/Public/TS-[xxxxxxx].img - not copy or move it to HDA_ROOT - and reference it accordingly with the call to update.sh inn step #3:

# /etc/init.d/update.sh /share/Public/TS-[xxxxxxx].img

This is the work-around provided by QNAP support, too.
boqa75
New here
Posts: 9
Joined: Mon Apr 11, 2011 2:18 pm

Re: Firmware 4.0.5 for TS-412 fail - no enough space on RAM

Post by boqa75 »

Thanks! Updating with the image file on a public share instead of moving it to HDA_ROOT worked and I have not succesfully updated to 4.0.5.

Now it's time to briefly enjoy before I find all my settings broken and services not working, but that'll be the subject of other posts ..... just kidding .... (I hope ;-) )
gasp72nirvana
Starting out
Posts: 12
Joined: Mon Aug 29, 2011 6:53 pm

Re: Firmware 4.0.5 for TS-412 fail - no enough space on RAM

Post by gasp72nirvana »

Hi, I have a similar problem on same QNAP model.
I can't upgrade the firmware with the web interface, and I have tried to use your Manual Upgrade from SSH.
If I launch the /etc/init.d/update.sh with the /mnt/update linked on the /mnt/HDA_ROOT/update the space left on /dev/md9 is full at 100%
With your tricks the upgrade was made succesfully, but after the reboot the web pages is blank and no acces in samba or NFS. I can access on the TS-412 only in SSH of FTP.
I'll try to update again the unit.
User avatar
schumaku
Guru
Posts: 43578
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

Re: Firmware 4.0.5 for TS-412 fail - no enough space on RAM

Post by schumaku »

[~] # rm -rf /mnt/HDA_ROOT/update/
[~] # rm -rf /mnt/update
[~] # df
...(post output)...
[~] # mkdir /mnt/HDA_ROOT/update

[~] # cd /share/Public
[/share/Public] # unzip TS-412_20131219-4.1.0.zip
...
[/share/Public] # cd ~

...let's make a copy of the image file as it will be removed (on success and on failure)...
[~] # cp /share/Public/TS-412_20131219-4.1.0.img /share/Public/TS-412_20131219-4.1.0-work.img
[~] # ln -sf /mnt/HDA_ROOT/update /mnt/update
[~] # /etc/init.d/update.sh /share/Public/TS-412_20131219-4.1.0-work.img

...for curiosity...
[~] # df
...(post output - no file system 100% full)...

...on success...
[~] # reboot
ArMyBoT
New here
Posts: 4
Joined: Mon May 07, 2012 12:38 am

Re: Firmware 4.0.5 for TS-412 fail - no enough space on RAM

Post by ArMyBoT »

Hi all.
I'm experiencing the same error.
I tried to perform a manual update (the 4.1.0)
but it starts than fails:
~] # /etc/init.d/update.sh /share/Public/TS-219_20131219-4.1.0.img
cksum=3283220032
Check disk space available for FW update: OK.
Using 120-bit encryption - (QNAPNASVERSION4)
len=1048576
model name = TS-219
version = 4.1.0
boot/
config/
fw_info
initrd.boot
initrd.boot.cksum
libcrypto.so.1.0.0
libssl.so.1.0.0
qpkg.tar
qpkg.tar.cksum
rootfs2.img
rootfs2.img.cksum
rootfs_ext.tgz
rootfs_ext.tgz.cksum
uImage
uImage.cksum
update/
update_img.sh

MODEL NAME = TS-219P II,new version = 4.1.0
limit version = 3.4.4
Allow upgrade
/bin/tar: /mnt/update: Cannot chdir: No such file or directory
/bin/tar: Error is not recoverable: exiting now
Failed.
[~] #

(anyhow, I've no /mnt/update dir at all and the guide invites to delete it if present)

Any hint?

Thank in advance,
A.
ArMyBoT
New here
Posts: 4
Joined: Mon May 07, 2012 12:38 am

Re: Firmware 4.0.5 for TS-412 fail - no enough space on RAM

Post by ArMyBoT »

Nevermind, I solved.
Maybe something was wrong with link.

Everything is fine now.
:)
steni
New here
Posts: 3
Joined: Wed Oct 06, 2010 9:23 pm

Re: Firmware 4.0.5 for TS-412 fail - no enough space on RAM

Post by steni »

I have the same problem on my TS119
I try manuall Install but the same result.
What shuld I do?

Code: Select all

[~] # mount
/proc on /proc type proc (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
sysfs on /sys type sysfs (rw)
tmpfs on /tmp type tmpfs (rw,size=32M)
none on /proc/bus/usb type usbfs (rw)
/dev/sda4 on /mnt/ext type ext3 (rw)
/dev/md9 on /mnt/HDA_ROOT type ext3 (rw)
/dev/sda3 on /share/HDA_DATA type ext3 (rw,usrjquota=aquota.user,jqfmt=vfsv0,use                r_xattr,data=ordered,acl)
tmpfs on /.eaccelerator.tmp type tmpfs (rw,size=32M)
none on /sys/kernel/config type configfs (rw)
djmount on /mnt/QUPNP type fuse.djmount (ro,nosuid,nodev,allow_other)
[~] #
[~] # df
Filesystem                Size      Used Available Use% Mounted on
/dev/ram0                32.9M     15.4M     17.6M  47% /
tmpfs                    32.0M    452.0k     31.6M   1% /tmp
/dev/sda4               364.2M    308.9M     55.3M  85% /mnt/ext
/dev/md9                509.5M    179.5M    330.0M  35% /mnt/HDA_ROOT
/dev/sda3                 1.8T      1.0T    787.9G  57% /share/HDA_DATA
tmpfs                    32.0M      1.4M     30.6M   4% /.eaccelerator.tmp
[~] #
[~] #
[~] #
User avatar
pwilson
Guru
Posts: 22533
Joined: Fri Mar 06, 2009 11:20 am
Location: Victoria, BC, Canada (UTC-08:00)

Re: Firmware 4.0.5 for TS-412 fail - no enough space on RAM

Post by pwilson »

steni wrote:I have the same problem on my TS119
I try manuall Install but the same result.
What shuld I do?

Code: Select all

[~] # mount
/proc on /proc type proc (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
sysfs on /sys type sysfs (rw)
tmpfs on /tmp type tmpfs (rw,size=32M)
none on /proc/bus/usb type usbfs (rw)
/dev/sda4 on /mnt/ext type ext3 (rw)
/dev/md9 on /mnt/HDA_ROOT type ext3 (rw)
/dev/sda3 on /share/HDA_DATA type ext3 (rw,usrjquota=aquota.user,jqfmt=vfsv0,use                r_xattr,data=ordered,acl)
tmpfs on /.eaccelerator.tmp type tmpfs (rw,size=32M)
none on /sys/kernel/config type configfs (rw)
djmount on /mnt/QUPNP type fuse.djmount (ro,nosuid,nodev,allow_other)
[~] #
[~] # df
Filesystem                Size      Used Available Use% Mounted on
/dev/ram0                32.9M     15.4M     17.6M  47% /
tmpfs                    32.0M    452.0k     31.6M   1% /tmp
/dev/sda4               364.2M    308.9M     55.3M  85% /mnt/ext
/dev/md9                509.5M    179.5M    330.0M  35% /mnt/HDA_ROOT
/dev/sda3                 1.8T      1.0T    787.9G  57% /share/HDA_DATA
tmpfs                    32.0M      1.4M     30.6M   4% /.eaccelerator.tmp
[~] #
[~] #
[~] #
How about providing the output generated by following the Manually Updating Firmware article. (or send Crystal Ball).

Patrick M. Wilson
Victoria, BC Canada
QNAP TS-470 Pro w/ 4 * Western Digital WD30EFRX WD Reds (RAID5) - - Single 8.1TB Storage Pool FW: QTS 4.2.0 Build 20151023 - Kali Linux v1.06 (64bit)
Forums: View My Profile - Search My Posts - View My Photo - View My Location - Top Community Posters
QNAP: Turbo NAS User Manual - QNAP Wiki - QNAP Tutorials - QNAP FAQs

Please review: When you're asking a question, please include the following.
User avatar
schumaku
Guru
Posts: 43578
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

Re: Firmware 4.0.5 for TS-412 fail - no enough space on RAM

Post by schumaku »

Not the first, and most likely not the last ... and in absence of a crystal ball

[~] # rm -rf /mnt/HDA_ROOT/update/
[~] # rm -rf /mnt/update
[~] # df
...(post output)...
[~] # mkdir /mnt/HDA_ROOT/update

[~] # cd /share/Public
[/share/Public] # wget http://eu1.qnap.com/Storage/TS-119Turbo ... -4.1.0.zip
...
[/share/Public] # unzip TS-119_20131219-4.1.0.zip
...
[/share/Public] # cd ~

...let's make a copy of the image file as it will be removed (on success and on failure)...
[~] # cp /share/Public/TS-119_20131219-4.1.0.img /share/Public/TS-119_20131219-4.1.0-work.img
[~] # ln -sf /mnt/HDA_ROOT/update /mnt/update
[~] # /etc/init.d/update.sh /share/Public/TS-119_20131219-4.1.0-work.img

...for curiosity...
[~] # df
...(post output - no file system 100% full)...

...on success...
[~] # reboot
Last edited by schumaku on Sun Dec 29, 2013 7:01 pm, edited 1 time in total.
BeBsCh
New here
Posts: 4
Joined: Sun Dec 29, 2013 5:04 pm
Location: Germany

Re: Firmware 4.0.5 for TS-412 fail - no enough space on RAM

Post by BeBsCh »

Hello,

i've the same Problem like Armybot:

Allow upgrade
/bin/tar: /mnt/update: Cannot chdir: No such file or directory
/bin/tar: Error is not recoverable: exiting now
Failed.
[~] #

but the said :

(2) Confirm no /mnt/update file or folder.
If it exists, you need to delete it using:
# rm -rf /mnt/update

if it is created, i recieve the information: no space left

edit: now i did like schumaku:

[~] # rm -rf /mnt/HDA_ROOT/update/
[~] # rm -rf /mnt/update
[~] # df
Filesystem Size Used Available Use% Mounted on
/dev/ram0 32.9M 15.3M 17.7M 46% /
tmpfs 32.0M 616.0k 31.4M 2% /tmp
/dev/sda4 364.2M 308.6M 55.6M 85% /mnt/ext
/dev/md9 509.5M 191.8M 317.7M 38% /mnt/HDA_ROOT
/dev/md0 8.1T 2.9T 5.1T 36% /share/MD0_DATA
tmpfs 32.0M 580.0k 31.4M 2% /.eaccelerator.tmp
/dev/sdi1 1.7T 111.2G 1.6T 6% /share/external/sdi1
/dev/sdu1 465.8G 188.1G 277.7G 40% /share/external/sdu1

[~] # mkdir /mnt/HDA_ROOT/update
[~] # cd /share/Public
[/share/Public] # unzip TS-410_20131126-4.0.5.zip
Archive: TS-410_20131126-4.0.5.zip
inflating: TS-410_20131126-4.0.5.img


[/share/Public] # ln -sf /mnt/HDA_ROOT/update /mnt/update
<.d/update.sh /share/Public/TS-410_201311269-4.0.5-work.img

Failed. File format error.

[/share/Public] # df
Filesystem Size Used Available Use% Mounted on
/dev/ram0 32.9M 15.3M 17.7M 46% /
tmpfs 32.0M 608.0k 31.4M 2% /tmp
/dev/sda4 364.2M 308.6M 55.6M 85% /mnt/ext
/dev/md9 509.5M 191.8M 317.7M 38% /mnt/HDA_ROOT
/dev/md0 8.1T 2.9T 5.1T 36% /share/MD0_DATA
tmpfs 32.0M 580.0k 31.4M 2% /.eaccelerator.tmp
/dev/sdi1 1.7T 111.2G 1.6T 6% /share/external/sdi1
/dev/sdu1 465.8G 188.1G 277.7G 40% /share/external/sdu1
User avatar
schumaku
Guru
Posts: 43578
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

Re: Firmware 4.0.5 for TS-412 fail - no enough space on RAM

Post by schumaku »

BeBsCh wrote:[~] # mkdir /mnt/HDA_ROOT/update
[~] # cd /share/Public
[/share/Public] # unzip TS-410_20131126-4.0.5.zip
Archive: TS-410_20131126-4.0.5.zip
inflating: TS-410_20131126-4.0.5.img

[/share/Public] # ln -sf /mnt/HDA_ROOT/update /mnt/update
<.d/update.sh /share/Public/TS-410_201311269-4.0.5-work.img

Failed. File format error.
Realized there is a cp (copy) before calling update.sh ?

[/share/Public] # cp TS-410_20131126-4.0.5.img TS-410_201311269-4.0.5-work.img

Alternate use

[/share/Public] # /etc/init.d/update.sh /share/Public/TS-410_201311269-4.0.5.img

:idea:
Post Reply

Return to “Turbo Station Installation & Setup”