Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

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

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
12 posts
  • 1
  • 2
  • Next
sanishan
Posts: 13
Joined: Fri Oct 28, 2016 6:16 am

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

Post by sanishan » Fri Oct 28, 2016 6:23 am

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!
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

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

Post by skurudo » Fri Oct 28, 2016 6:47 am

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?
Top

sanishan
Posts: 13
Joined: Fri Oct 28, 2016 6:16 am

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

Post by sanishan » Fri Oct 28, 2016 6:52 am

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,
Top

sanishan
Posts: 13
Joined: Fri Oct 28, 2016 6:16 am

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

Post by sanishan » Fri Oct 28, 2016 7:01 am

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
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

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

Post by skurudo » Fri Oct 28, 2016 7:03 am

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 ;-)
Top

sanishan
Posts: 13
Joined: Fri Oct 28, 2016 6:16 am

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

Post by sanishan » Fri Oct 28, 2016 7:07 am

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?
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

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

Post by skurudo » Fri Oct 28, 2016 7:12 am

sanishan wrote:Can you please what access you need? vestacp or SSH?
Both, if you want me to check 1 and 2 problem.
Top

sanishan
Posts: 13
Joined: Fri Oct 28, 2016 6:16 am

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

Post by sanishan » Fri Oct 28, 2016 7:56 am

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!
Top

sanishan
Posts: 13
Joined: Fri Oct 28, 2016 6:16 am

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

Post by sanishan » Sat Oct 29, 2016 1:23 pm

@skurudo Have you find any solution yet? i can't even edit the MySQL (even using PHPmYAdmin). Please help me!
Top

sanishan
Posts: 13
Joined: Fri Oct 28, 2016 6:16 am

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

Post by sanishan » Mon Oct 31, 2016 10:41 am

I have solved the problem!

Thanks for you help!
Top


Post Reply
  • Print view

12 posts
  • 1
  • 2
  • Next

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password