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 Mail Server
  • Search

Received an error email no clue what it is..

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
amelie.viennot
Posts: 11
Joined: Sun Aug 22, 2021 1:26 pm

Os: CentOS 6x
Web: apache + nginx
Received an error email no clue what it is..
  • Quote

Post by amelie.viennot » Sat Oct 30, 2021 5:26 am

Hi Guys,

I just received this email sent by CRON from [email protected] with the following content

/usr/local/vesta/bin/v-update-sys-vesta: line 41: syntax error near unexpected token `fi'
/usr/local/vesta/bin/v-update-sys-vesta: line 41: `fi [ "$package" = "vesta-ioncube" ]; then '
/usr/local/vesta/bin/v-update-sys-vesta: line 41: syntax error near unexpected token `fi'
/usr/local/vesta/bin/v-update-sys-vesta: line 41: `fi [ "$package" = "vesta-ioncube" ]; then '
/usr/local/vesta/bin/v-update-sys-vesta: line 41: syntax error near unexpected token `fi'
/usr/local/vesta/bin/v-update-sys-vesta: line 41: `fi [ "$package" = "vesta-ioncube" ]; then '
/usr/local/vesta/bin/v-update-sys-vesta: line 41: syntax error near unexpected token `fi'
/usr/local/vesta/bin/v-update-sys-vesta: line 41: `fi [ "$package" = "vesta-ioncube" ]; then '


Any idea why I am receiving this and what it is ?

thaanks
Top

quacos
Posts: 8
Joined: Thu Feb 20, 2014 11:49 am
Contact:
Contact quacos
Website

Re: Received an error email no clue what it is..
  • Quote

Post by quacos » Sat Oct 30, 2021 8:53 am

Vesta has been updated this night. Apparently it's broken.
Top

vallev
Posts: 2
Joined: Tue Feb 16, 2016 7:32 pm

Os: CentOS 6x
Web: apache + nginx
Re: Received an error email no clue what it is..
  • Quote

Post by vallev » Tue Nov 02, 2021 5:08 am

Hello. This is just a mistake in the script: they put "fi" instead of "if". Actually, there are more important issues can be experienced after the update. In my case it was that Let's Encrypt support was broken and it won't turn on via the CP anymore, I had to use v-add-letsencrypt-domain. Anyway, it's better to turn off auto-update to avoid anything like this next time.
Top

dmg
Posts: 1
Joined: Mon Nov 08, 2021 10:49 am

Os: CentOS 5x
Web: apache + nginx
Re: Received an error email no clue what it is..
  • Quote

Post by dmg » Mon Nov 08, 2021 10:56 am

This is the manual solution I have applied:

1 - Connect using SFTP to "/usr/local/vesta" on your server.
2 - Download "bin" folder, find "v-update-sys-vesta" file.
3 - Edit "v-update-sys-vesta" file with Visual Studio code.
4 - Replace:
fi [ "$package" = "vesta-ioncube" ];
with:
if [ "$package" = "vesta-ioncube" ];
5 - Upload the edited file using SFTP to "/usr/local/vesta/bin", replacing the current file on the server.
6 - Give 777 permissions to the uploaded file.
7 - Connect to server using SSH (using putty or similar).
8 - Execute: "sudo /usr/local/vesta/bin/v-update-sys-vesta-all" in the cmd, your vestaCP must be updated correctly (it takes 1-2 minutes).
9 - If you want to check your actual version just execute "sudo /usr/local/vesta/bin/v-list-sys-vesta-updates" in the cmd.

From this moment on, your cron update will be executed without errors.

Hope this solution will help somebody.

Regards.
Top

vesta_mtl
Posts: 70
Joined: Wed Dec 21, 2016 2:08 pm

Re: Received an error email no clue what it is..
  • Quote

Post by vesta_mtl » Wed Nov 17, 2021 4:04 pm

Thanks. You can open the file in vim on the server as well with this:

Code: Select all

vi /usr/local/vesta/bin/v-update-sys-vesta
Then scroll to make the simple "fi" change to "if":
https://github.com/serghey-rodin/vesta/pull/2074/files
Top

romariosantana1
Posts: 2
Joined: Tue Sep 10, 2019 12:26 pm

Os: Debian 6x
Web: apache + nginx
Re: Received an error email no clue what it is..
  • Quote

Post by romariosantana1 » Wed Dec 15, 2021 12:51 pm

vesta_mtl wrote: ↑
Wed Nov 17, 2021 4:04 pm
Thanks. You can open the file in vim on the server as well with this:

Code: Select all

vi /usr/local/vesta/bin/v-update-sys-vesta
Then scroll to make the simple "fi" change to "if":
https://github.com/serghey-rodin/vesta/pull/2074/files
It worked perfectly for me.
Upgrading to version 1.0.5
Top


Post Reply
  • Print view

6 posts • Page 1 of 1

Return to “Mail 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
 

 

Login  •  Register

I forgot my password