Page 1 of 2

Unable to save files "Failed to write file to Disk"

Posted: Fri Oct 28, 2016 6:23 am
by sanishan
HI sir!

I have this problem from last 2 days, 1st i can't login, using correct username/password. then I use reset password option and its let me login (but still can't login with exsited password).

2nd. I have File Manager Plugin, when ever i try to upload any file i recevied error "Failed to write file to disk"
My Server Space:

Code: Select all

[root@fisrv test]# df -i
Filesystem       Inodes  IUsed    IFree IUse% Mounted on
/dev/sda2      60497920 120765 60377155    1% /
tmpfs           1006519      1  1006518    1% /dev/shm
/dev/sda1        128016     52   127964    1% /boot
/dev/sda5        262144     34   262110    1% /tmp
Permission to Session:

Code: Select all

4 drwxr-xr-x 2 root  root  4096 Jun 27 10:34 firewall
4 drwxr-x--- 2 root  root  4096 Oct 20 00:01 ips
4 drwxr-xr-- 2 root  root  4096 Jun  4  2015 packages
4 drwxr-x--- 2 root  root  4096 Oct 27 05:10 queue
4 drwxrwx--- 2 admin admin 4096 Oct 28 07:58 sessions
4 drwxr-xr-x 4 root  root  4096 Jun 23 17:29 templates
4 drwxr-x--- 4 root  root  4096 Oct 20 00:01 users
Error Log: /usr/local/vesta/log/nginx-error.log

Code: Select all

2016/10/28 07:58:28 [error] 2529#0: *1 FastCGI sent in stderr: "PHP message: PHP Notice:  A session had already been started - ignoring session_start() in /$
2016/10/28 07:58:31 [error] 2529#0: *1 FastCGI sent in stderr: "PHP message: PHP Notice:  A session had already been started - ignoring session_start() in /$
2016/10/28 07:58:31 [error] 2529#0: *1 FastCGI sent in stderr: "PHP message: PHP Notice:  A session had already been started - ignoring session_start() in /$
2016/10/28 07:58:51 [error] 2529#0: *1 FastCGI sent in stderr: "PHP message: PHP Notice:  A session had already been started - ignoring session_start() in /$
2016/10/28 07:58:58 [error] 2529#0: *1 FastCGI sent in stderr: "PHP message: PHP Notice:  A session had already been started - ignoring session_start() in /$
User Info: /usr/local/vesta/data/users/admin/user.conf

Code: Select all

FNAME='System'
LNAME='Administrator'
PACKAGE='gainsboro'
WEB_TEMPLATE='default'
PROXY_TEMPLATE='default'
DNS_TEMPLATE='default'
WEB_DOMAINS='unlimited'
WEB_ALIASES='unlimited'
DNS_DOMAINS='unlimited'
DNS_RECORDS='unlimited'
MAIL_DOMAINS='unlimited'
MAIL_ACCOUNTS='unlimited'
DATABASES='unlimited'
CRON_JOBS='unlimited'
DISK_QUOTA='unlimited'
BANDWIDTH='unlimited'

I am confused what i am doing is wrong? I don't want to reinstall vestacp because its has so many files!

Re: Unable to save files "Failed to write file to Disk"

Posted: Fri Oct 28, 2016 6:47 am
by skurudo
sanishan wrote: I have this problem from last 2 days, 1st i can't login, using correct username/password. then I use reset password option and its let me login (but still can't login with exsited password).
Please check permission on this folder
/usr/local/vesta/data/sessions
sanishan wrote: 2nd. I have File Manager Plugin, when ever i try to upload any file i recevied error "Failed to write file to disk"
Hard drive okay? There is no problem with hardware?

Re: Unable to save files "Failed to write file to Disk"

Posted: Fri Oct 28, 2016 6:52 am
by sanishan
Please check permission on this folder
/usr/local/vesta/data/sessions
I have already added the permission for "Session" you can look in my post!
Hard drive okay? There is no problem with hardware?
Yes hardware/harddisk are okay, (I am using raid 5) and i can write/read file using SSH.

Thanks,

Re: Unable to save files "Failed to write file to Disk"

Posted: Fri Oct 28, 2016 7:01 am
by sanishan
This is how i test my harddisk
[root@fisrv data]# hdparm -tT /dev/sda

/dev/sda:
Timing cached reads: 16766 MB in 2.00 seconds = 8396.97 MB/sec
Timing buffered disk reads: 320 MB in 3.01 seconds = 106.43 MB/sec
[root@fisrv data]# hdparm -tT /dev/sda2

/dev/sda2:
Timing cached reads: 16522 MB in 2.00 seconds = 8274.75 MB/sec
Timing buffered disk reads: 298 MB in 3.00 seconds = 99.30 MB/sec
[root@fisrv data]# dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync
16384+0 records in
16384+0 records out
1073741824 bytes (1.1 GB) copied, 11.8409 s, 90.7 MB/s

Re: Unable to save files "Failed to write file to Disk"

Posted: Fri Oct 28, 2016 7:03 am
by skurudo
session.save_path line in /usr/local/vesta/php/etc/php-fpm.conf
look like this?

Code: Select all

php_admin_value[session.save_path] = /usr/local/vesta/data/sessions
PS: You can give me access via PM, I try to look ;-)

Re: Unable to save files "Failed to write file to Disk"

Posted: Fri Oct 28, 2016 7:07 am
by sanishan
skurudo wrote:session.save_path line in /usr/local/vesta/php/etc/php-fpm.conf
look like this?

Code: Select all

php_admin_value[session.save_path] = /usr/local/vesta/data/sessions
PS: You can give me access via PM, I try to look ;-)
php_flag[display_errors] = off
php_admin_value[error_log] = /usr/local/vesta/log/fpm-php.log
php_admin_flag[log_errors] = on
php_admin_value[memory_limit] = 256M
php_admin_value[post_max_size] = 512M
php_admin_value[upload_max_filesize] = 512M
php_admin_value[max_execution_time] = 600
php_admin_value[max_input_time] = 600
php_admin_value[session.save_path] = /usr/local/vesta/data/sessions
Can you please what access you need? vestacp or SSH?

Re: Unable to save files "Failed to write file to Disk"

Posted: Fri Oct 28, 2016 7:12 am
by skurudo
sanishan wrote:Can you please what access you need? vestacp or SSH?
Both, if you want me to check 1 and 2 problem.

Re: Unable to save files "Failed to write file to Disk"

Posted: Fri Oct 28, 2016 7:56 am
by sanishan
skurudo wrote:
sanishan wrote:Can you please what access you need? vestacp or SSH?
Both, if you want me to check 1 and 2 problem.
PM Sent!

Re: Unable to save files "Failed to write file to Disk"

Posted: Sat Oct 29, 2016 1:23 pm
by sanishan
@skurudo Have you find any solution yet? i can't even edit the MySQL (even using PHPmYAdmin). Please help me!

Re: Unable to save files "Failed to write file to Disk"

Posted: Mon Oct 31, 2016 10:41 am
by sanishan
I have solved the problem!

Thanks for you help!