Vesta Control Panel - Forum

Community Forum

Skip to content

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

[SOLVED] Download backup link is not working

Questions regarding the Web Interface
GUI
Post Reply
  • Print view
Advanced search
9 posts • Page 1 of 1
vlahonick
Posts: 50
Joined: Sat Mar 21, 2015 10:08 am

[SOLVED] Download backup link is not working
  • Quote

Post by vlahonick » Thu May 14, 2015 4:33 pm

I am having the same problem with the guy in this post viewtopic.php?f=16&t=4491 but no solution there plus some weird off topic comments.... Anyway sorry for intentionally duplicating the topic but in this forum every old topic without solution is buried...

I recently used the Vesta backup restore in my VPS to restore some websites. Up until then I could download the backups with the link without problems. After the restore the backup download link gives me an error on the browser. I am not sure if it is actually related, just saying... Ftp download is working normally. I restarted vps, ngnix, apache and vesta several times but no effect.

Vesta is installed in a 14.04 xubuntu vps.

Screenshot of the problem:
Image
Last edited by vlahonick on Wed May 20, 2015 12:53 pm, edited 1 time in total.
Top

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

Re: Download backup link is not working
  • Quote

Post by skurudo » Sun May 17, 2015 4:33 pm

What's in apache error log?
Top

vlahonick
Posts: 50
Joined: Sat Mar 21, 2015 10:08 am

Re: Download backup link is not working
  • Quote

Post by vlahonick » Mon May 18, 2015 7:37 am

Typing this:

Code: Select all

nano /var/log/vesta/nginx-error.log
Give me this:

Code: Select all

2015/05/16 12:02:16 [error] 6271#0: *122 open() "/backup/admin.2015-05-11.tar" failed (13: Permission denied), client: 82.76.60.9, server: _, request: "GET /download/b$load/backup/?backup=admin.2015-05-11.tar HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "mydomain.com:8083"
So it is obviously a permission problem but I didn't changed a thing on permissions... Anyway how could I fix this? What the default permissions should be for the admin user?
Top

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

Re: Download backup link is not working
  • Quote

Post by skurudo » Mon May 18, 2015 7:57 am

vlahonick wrote: So it is obviously a permission problem but I didn't changed a thing on permissions... Anyway how could I fix this? What the default permissions should be for the admin user?
Yep, show us please output this commands:
ls -la /home
ls -la /home/backup
Top

vlahonick
Posts: 50
Joined: Sat Mar 21, 2015 10:08 am

Re: Download backup link is not working
  • Quote

Post by vlahonick » Mon May 18, 2015 7:37 pm

skurudo wrote:
vlahonick wrote: Yep, show us please output this commands:
ls -la /home
ls -la /home/backup
ls -la /home:

Code: Select all

drwxr-xr-x  4 root  root  4096 Apr 22 16:23 .
drwxr-xr-x 24 root  root  4096 Apr 30 12:42 ..
drwxr-xr-x  6 admin admin 4096 Apr 15 16:36 admin
drwx------  2 root  root  4096 May 11 10:58 backup
ls -la /home/backup:

Code: Select all

drwx------ 2 root  root       4096 May 11 10:58 .
drwxr-xr-x 4 root  root       4096 Apr 22 16:23 ..
-rw-r----- 1 admin admin 885094400 May  1 05:02 admin.2015-05-01.tar
-rw-r----- 1 admin admin 888729600 May  5 05:03 admin.2015-05-05.tar
-rw-r----- 1 admin admin 899737600 May 11 10:58 admin.2015-05-11.tar
Top

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

Re: Download backup link is not working
  • Quote

Post by skurudo » Mon May 18, 2015 7:53 pm

Make

Code: Select all

chown backup:backup /home/backup
and test again
Top

vlahonick
Posts: 50
Joined: Sat Mar 21, 2015 10:08 am

Re: Download backup link is not working
  • Quote

Post by vlahonick » Tue May 19, 2015 9:13 am

skurudo wrote:

Code: Select all

chown backup:backup /home/backup
It didn't work. Now the ls -la gives me:
drwx------ 2 backup backup 4096 May 11 10:58 .
drwxr-xr-x 4 root root 4096 Apr 22 16:23 ..
-rw-r----- 1 admin admin 885094400 May 1 05:02 admin.2015-05-01.tar
-rw-r----- 1 admin admin 888729600 May 5 05:03 admin.2015-05-05.tar
-rw-r----- 1 admin admin 899737600 May 11 10:58 admin.2015-05-11.tar
I also tried with 777 permissions and backup:backup user directly in the archive but still didn't work.
Top

joem
Posts: 378
Joined: Thu Nov 13, 2014 8:33 am

Os: CentOS 6x
Web: nginx + php-fpm
Re: Download backup link is not working
  • Quote

Post by joem » Tue May 19, 2015 9:05 pm

Code: Select all

chown -R backup:backup /home/backup 
Top

vlahonick
Posts: 50
Joined: Sat Mar 21, 2015 10:08 am

Re: Download backup link is not working
  • Quote

Post by vlahonick » Wed May 20, 2015 12:54 pm

joem wrote:

Code: Select all

chown -R backup:backup /home/backup

Thank you all for your suggestions! Finally it worked with the code below (the -R was missing all along):

Code: Select all

chown -R admin:admin /home/backup
Top


Post Reply
  • Print view

9 posts • Page 1 of 1

Return to “Web Interface”



  • 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
 

 

Login  •  Register

I forgot my password