Questions tagged [lockfile]

106 questions
0
votes
2 answers

Can't write to lockfile while frozen Ruby on Rails

Hello I'm trying to run the following commands to prep my Rails app for production: bundle lock --add-platform ruby bundle lock --add-platform x86_64-linux Then I get this error: Cannot write a changed lockfile while frozen. What is going on…
CJG
  • 457
  • 2
  • 17
0
votes
2 answers

Mac Flutter Install: can't access the lockfile

I've been able to use flutter to create apps on my mac using my "work user account". I now want to be able to login as myself and create apps so I've created a new user. I've made the workaccount path to flutter rw for "staff" and using my…
Sarah K
  • 363
  • 2
  • 15
0
votes
2 answers

lockfile is not working

i have locked my file from 0 to 5 bytes, and i write some character byte by byte but it does not stop writing even if the file is locked, i dont know what is wrong, i have tried every type of flag in createFile function, but no success, please…
0
votes
0 answers

Can you unlock a file with lockf from another process?

If I set a lock in process A that has two child processes with : int a = lockf(fic2, F_LOCK, 0); can I unlock it in process B with : int b = lockf(fic2, F_ULOCK, 0); It seems unlocking from B doesn't release the lock from A. Any explanation would be…
Catfoxes
  • 101
  • 1
  • 9
0
votes
1 answer

Cognos8. UT-DEF-0114 Cannot open lock file

I have cognos8.4.1 installed. I have authentication defined(LDAP). Everything was working fine, now suddenly I am facing a strange error while executing reports. UT-DEF-0114 Cannot open lock file:…
anavazp
  • 13
  • 3
0
votes
0 answers

Problems with creating a Yarn lock for nuxt because of a symlink missing?

I'm not able to install a project with yarn anymore due to an error I get. It's preventing my local machine to create a lock file. I've been googling for half a day now and I'm getting desperate. This is the response I get in the terminal: When I…
0
votes
1 answer

H2 Database : how unlock a database file for backup copy?

I'm using h2database version 1.4.200 with hibernate for saving in database file. My programs needs to regulary save backup and I don't care about corruption's file's problems. After looking the documentation :…
Guyard
  • 53
  • 6
0
votes
1 answer

Lockfile explanation, what exactly every line mean? yarn.lock

I wondering what exactly every line mean? I had some problems with packages, because of dependencies in my project. Firstly after updating nuxt from 1x to 2x all test began to fail. After hours of diging in web I noticed that I have 2 version of…
Paul
  • 296
  • 1
  • 4
  • 16
0
votes
2 answers

Where do I change this Python code snippet to save the temp file in the tmp-folder?

this is a code example implementing a file lock, so the application can only open one instance. It currently works, but saves the the lock file in the Home-folder (Ubuntu). If the application crashes, the lock file does not get removed which is not…
toby
  • 3
  • 1
0
votes
1 answer

.gitignore file doesn't seem to ignore anything at all

I am working on a Unity project with Gitlab as my version control system. As I just started on this project I made the repository a few hours ago. I initialized a README file and then cloned it into my PC. Once cloned into it, I added a Unity…
Rick Rasenberg
  • 25
  • 3
  • 11
0
votes
0 answers

Heroku buliid fails on Bundler version regardless of which is installed

I can't seem to configure my rails app properly. I had a perfectly working rails app deployed on Heroku. I added the datadog buildpack and then started getting the following build error: remote: ! You must use Bundler 2 or greater with this…
T. Young
  • 153
  • 13
0
votes
2 answers

How to check if a file is being edited? (Ruby)

I am writing some code to write out an email to a file, let you edit it in your own editor, and when you're done you can tell my code to carry on. I'd like to have it catch the common error where you still have the file open, and therefore might not…
Hamish Downer
  • 16,603
  • 16
  • 90
  • 84
0
votes
2 answers

lock file won't work with windows .bat file

I'm creating a lock file to prevent multiple instances of my program as seen here How to implement a single instance Java application?. If I run my program from the command line it works fine, that is it starts my program and creates the lock…
Ray_Write
  • 131
  • 2
  • 12
0
votes
0 answers

How to correctly prevent that an application is runned again untill a previous instance ends using lock file?

I am working on a simple Spring console application (it is a litle batch working on a database). This batch is scheduled to start at specific time. The problem is that the execution of this program can take a lot of time and the scheduler can try to…
AndreaNobili
  • 40,955
  • 107
  • 324
  • 596
0
votes
1 answer

How to restrict the number of copies of a script can run a certain block of code?

I use lockfile to ensure a piece of code can only be run one at a time. If I want to allow n copies of the same code run at a time, how to do it? Thanks. if lockfile -1 lockfile.txt then # something rm -f lockfile.txt else echo error …
user1424739
  • 11,937
  • 17
  • 63
  • 152