Submitted by LeGiangAnh on Mon, 08/17/2015 - 07:15 Pro Licensee
Hi,
I'm using nginx for my virtual servers. I can upload some big files but for the rest big files and small files I cannot: https://goo.gl/mtEbNg When I upload php and ini file, it auto said Error: error while writing: failure and create 0 byte file.
Thanks, Giang Anh
Status:
Active
Comments
Submitted by andreychek on Mon, 08/17/2015 - 08:45 Comment #1
Howdy -- has the Virtual Server, or the user uploading the files, perhaps reached their quota? If either of them were at their quota, that could cause the issue you're seeing.
Submitted by LeGiangAnh on Mon, 08/17/2015 - 11:51 Pro Licensee Comment #2
Hi,
I edited the Account Plans: https://goo.gl/mKyHTy and apply but the error still happens. Do I need to edit the virtual server manually? Where can I find the setting to edit it?
Thanks, Giang Anh
Submitted by andreychek on Mon, 08/17/2015 - 11:56 Comment #3
You can check in Edit Virtual Server -> Quotas and Limits.
Also, you'd want to review the individual users in question within the Edit Users screen.
Submitted by LeGiangAnh on Mon, 08/17/2015 - 12:19 Pro Licensee Comment #4
There is no Quotas and Limits in Edit Virtual Server nor Edit Users: https://goo.gl/GtcOlC
Submitted by andreychek on Mon, 08/17/2015 - 12:45 Comment #5
"Edit Users" is available on the left, below "Edit Virtual Server".
Let's start here though --
What is the output of these two commands:
quota -u jplay
quota -h jplay
Submitted by LeGiangAnh on Mon, 08/17/2015 - 13:08 Pro Licensee Comment #6
Hi,
I know where is it. I meant that there is not quota setting there: https://goo.gl/Sh0UGH
root@JPlaySite:~# quota -u jplay
Disk quotas for user jplay (uid 1001): none
-h stands for help so there is no content.
quota -v jplay:
root@JPlaySite:~# quota -v jplay
Disk quotas for user jplay (uid 1001):
Filesystem blocks quota limit grace files quota limit grace
/dev/disk/by-uuid/3fe10351-012c-4a61-9c3a-0e991108f2f5
0 0 0 0 0 0
Submitted by andreychek on Mon, 08/17/2015 - 13:08 Comment #7
Sorry, I meant to type "-g", not "-h", however, the first command actually gives the answer I needed... you aren't seeing a quota issue, as quotas aren't actually enabled.
What user are you logging in as?
And what is the output of these two commands:
ls -la /home/jplay/public_html
df -h
Submitted by LeGiangAnh on Mon, 08/17/2015 - 13:10 Pro Licensee Comment #8
For the command line, I log in as root For FTP upload, I'm using jplay account.
root@JPlaySite:~# ls -la /home/jplay/public_html
total 26701100
drwxr-x--- 3 jplay jplay 4096 Aug 17 12:03 .
drwxr-x--- 11 jplay jplay 4096 Aug 17 14:43 ..
-rw-rw-r-- 1 jplay jplay 2 Aug 17 08:17 index.php
-rw-rw-r-- 1 jplay jplay 324430 Aug 17 14:50 jstart.php
-rw-rw-r-- 1 jplay jplay 262520832 Aug 17 15:03 site-jplay.tv-20150813-154837.j01
-rw-rw-r-- 1 jplay jplay 2147352576 Aug 17 09:03 site-jplay.tv-20150813-154837.j02
-rw-rw-r-- 1 jplay jplay 2147352576 Aug 17 09:05 site-jplay.tv-20150813-154837.j03
-rw-rw-r-- 1 jplay jplay 205299712 Aug 17 15:30 site-jplay.tv-20150813-154837.j04
-rw-rw-r-- 1 jplay jplay 2147352576 Aug 17 09:47 site-jplay.tv-20150813-154837.j05
-rw-rw-r-- 1 jplay jplay 2147352576 Aug 17 09:23 site-jplay.tv-20150813-154837.j06
-rw-rw-r-- 1 jplay jplay 2147352576 Aug 17 09:51 site-jplay.tv-20150813-154837.j07
-rw-rw-r-- 1 jplay jplay 2147352576 Aug 17 10:36 site-jplay.tv-20150813-154837.j08
-rw-rw-r-- 1 jplay jplay 2147352576 Aug 17 12:26 site-jplay.tv-20150813-154837.j09
-rw-rw-r-- 1 jplay jplay 2147352576 Aug 17 10:33 site-jplay.tv-20150813-154837.j10
-rw-rw-r-- 1 jplay jplay 2147352576 Aug 17 10:40 site-jplay.tv-20150813-154837.j11
-rw-rw-r-- 1 jplay jplay 2147352576 Aug 17 11:24 site-jplay.tv-20150813-154837.j12
-rw-rw-r-- 1 jplay jplay 1146150912 Aug 17 15:02 site-jplay.tv-20150813-154837.j13
-rw-rw-r-- 1 jplay jplay 1081655296 Aug 17 15:02 site-jplay.tv-20150813-154837.j14
-rw-rw-r-- 1 jplay jplay 2147352576 Aug 17 11:21 site-jplay.tv-20150813-154837.j15
-rw-rw-r-- 1 jplay jplay 1025007671 Aug 17 11:06 site-jplay.tv-20150813-154837.jpa
drwxr-xr-x 2 jplay jplay 4096 Aug 17 14:43 stats
root@JPlaySite:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 29G 28G 0 100% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 3.4G 12K 3.4G 1% /dev
tmpfs 697M 504K 697M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 3.5G 0 3.5G 0% /run/shm
none 100M 0 100M 0% /run/user
none 64K 0 64K 0% /etc/network/interfaces.dynamic.d
/dev/sdb1 99G 60M 94G 1% /mnt
Submitted by andreychek on Mon, 08/17/2015 - 13:20 Comment #9
Ah, there's the problem -- it looks like your disk is full.
Which, I suspect, is why you're asking in the other request about adding a new drive :-)
But you may want to see if you can free up some disk space in the meantime.
Submitted by LeGiangAnh on Mon, 08/17/2015 - 20:15 Pro Licensee Comment #10
As I'm using D2 size of Azure VM, I'm supposed to have 1TB OS disk and 100GB SSD temporary disk. Is there any mis-configuration from my side?
Thanks, Giang Anh
Submitted by andreychek on Mon, 08/17/2015 - 20:24 Comment #11
It looks like you have a 100GB disk on /mnt.
Regarding the 1TB you mentioned though, it doesn't look like the Linux kernel is seeing any mounted partitions with that much space.
You may need to talk to your provider to determine where that space is, there may be something within your providers control panel that needs setup.
Submitted by LeGiangAnh on Mon, 08/17/2015 - 20:31 Pro Licensee Comment #12
Thank you andreychek. I already submitted the ticket to Azure support.