I
I
Igor L2021-10-14 21:07:03
linux
Igor L, 2021-10-14 21:07:03

Have you used elkarbackup backup?

I installed Elkarbackup on the server, it's easy to configure, the client server, under Linux, there is control via the web.
task schedule, start time, everything seems to be fine, but only when opening files from a backup, it gives an error 500, obviously something with the web server. NOT all files, but only if the path is long, or names with spaces, ilbo Cyrillic. But it is not exactly! because some files are downloaded normally.

Screenshot attached

screen
61686fd3c36ab243897561.png
clicked to download the file, and it gives an error.
the path is specified - //~%244-ФЗ%20О%20protection%20rights%20entrepreneurs.rtf, I assume that the replacement of spaces is to blame. elkarbackup itself, judging by the documentation, is based on RSnapshot RSync PHP Symfony , 500 error may be in the php code when generating a link to a file or folder, but since the Symfony engine, something may be wrong in it.
If someone also used tell me how to solve.
there is a page - https://github.com/elkarbackup/elkarbackup/issues
where the question is actually about this - showJobConfig 500 Internal Server Error #597 , and the logs are given, but there is no answer.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor L, 2021-11-19
@PB_igor


solution to error 500 - change in sql the 'link' column, which has the varchar(255) type, for example, specify 2400.
more:
when installing elkarbackup, a database is created - elkarbackup , it has a table - LogRecord , in which the Link column with the type varchar(255)

log record
619741b90e447755016701.jpeg

at the moment when you open a backup and go along the path to the desired file, the entire path is written in this table, and if the line pancake exceeds the maximum length (255), then a server error occurs. Can see
file download path
<a href="/client/1/job/3/backup/download/2/Hourly.0/mnt/disk2/UATI/%D0%96%D1%83%D1%80%D0%BD%D0%B0%D0%BB%20%D0%BD%D0%B0%D1%80%D1%83%D1%88%D0%B5%D0%BD%D0%B8%D0%B9%20%D0%9E%D0%9C%D0%9A//%D0%96%D1%83%D1%80%D0%BD%D0%B0%D0%BB%20%D0%BD%D0%B0%D1%80%D1%83%D1%88%D0%B5%D0%BD%D0%B8%D0%B9%20%D0%9E%D0%9C%D0%9A.accdb"><b>Download  </b></a

it is better to specify a value greater than , for example varchar(5000) , and the problem is solved
wrote in "broken english" in the topic -

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question