Page 1 of 1

mb_*.* ftp files

Posted: Tue Jun 14, 2016 5:06 pm
by pettergp
Hello,
I am using meteobridge to upload by ftp a template file named MBtags.php and an image file called image.jpg from my cam.
Sometimes on the same folders it appear new archives named mb_MBtags.php and mb_image.jpg.
When this happens I must delete them to start all working properly again.
Someone know why is this happening and how can I solve it?
thanks,
Peter

Re: mb_*.* ftp files

Posted: Tue Jun 14, 2016 5:49 pm
by wvdkuil
pettergp wrote:Hello,
I am using meteobridge to upload by ftp a template file named MBtags.php and an image file called image.jpg from my cam.
Sometimes on the same folders it appear new archives named mb_MBtags.php and mb_image.jpg.
When this happens I must delete them to start all working properly again.
Someone know why is this happening and how can I solve it?
thanks,
Peter
The names with mb_*** are the temporary names used by Meteobridge when uploading.
After a correct upload Metebridge will delete the old file and first and then rename the mb_*** to the correct name.

Meteobridge uploads mb_MBtags.php
and when all is OK
Meteobridge deletes MBtags.php
and then
Meteobridge renames mb_MBtags.php to MBtags.php

This is a standard procedure to make sure that the file is always available to the scripts on the server as FTP of a file will take some time.

Re: mb_*.* ftp files

Posted: Tue Jun 14, 2016 6:26 pm
by pettergp
wvdkuil wrote:
pettergp wrote:Hello,
I am using meteobridge to upload by ftp a template file named MBtags.php and an image file called image.jpg from my cam.
Sometimes on the same folders it appear new archives named mb_MBtags.php and mb_image.jpg.
When this happens I must delete them to start all working properly again.
Someone know why is this happening and how can I solve it?
thanks,
Peter
The names with mb_*** are the temporary names used by Meteobridge when uploading.
After a correct upload Metebridge will delete the old file and first and then rename the mb_*** to the correct name.

Meteobridge uploads mb_MBtags.php
and when all is OK
Meteobridge deletes MBtags.php
and then
Meteobridge renames mb_MBtags.php to MBtags.php

This is a standard procedure to make sure that the file is always available to the scripts on the server as FTP of a file will take some time.
thanks Wvdkuil for your reply.
I think this could be due to a temporary weak 3g Internet connection.
Do you think running a cron that delete those mb_ files regularly is a right approach to a solution?
I would really appreciate any suggestion