Y
Y
yii_lover2018-07-06 15:43:56
1C
yii_lover, 2018-07-06 15:43:56

How to fix 1c update error "Error sharing file '/tmp/v8_QwHlJw_b71.tmp'"?

An error occurs when updating 1C

{ОбщийМодуль.Б_ОбменССайтомСервер.Модуль(1463)}: Ошибка при вызове конструктора (ЧтениеТекста)
    ЧтениеТекста   = Новый ЧтениеТекста(ИмяФайлаОтвета,лКодировка);          
по причине:
Ошибка совместного доступа к файлу '/tmp/v8_QwHlJw_b71.tmp'

The rights to the 'tmp' folder are 1777, i.e. sticky bit is worth it.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
Oleg, 2018-07-09
@slayez

Error sharing file '/tmp/v8_QwHlJw_b71.tmp'

End all 1c sessions and try again

C
Cratos, 2018-09-17
@Cratos

The rights of not only the user from which the client is launched, but also the user from which the 1C server is running.
It is also possible that a multiple function call with the same name of a temporary (tempo) file is launched.

D
Dmitry Kinash, 2018-12-05
@Dementor

I see a discrepancy right away. The question says about updating 1C and as "proof" is a screenshot of the exchange error with the site. When upgrading, no exchanges are started (from the upgrade procedures). If this happens, try disabling background tasks before updating.
Now to the error. Here the problem is not in the rights, but in the "file sharing". And this is a common mistake for working with the file system, and your exchange with the site is only a special case where you got into it. I had a project on the Ubuntu server and I encountered a similar error when the OS told 1C that it was possible to work with the file, but the same ReadingText() constructor gave an error (this does not happen on Windows).
If you use an object of type File, it will show the existence of your file, but its size will be zero (the OS has not yet flushed the file buffer and closed the handle). Actually, my correction was based on this. I made a small waiting loop until the size is zero and as soon as the file had content (or by timeout) I let the algorithm run further.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question