LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Warning: cannot write to scoreboard file (https://www.linuxquestions.org/questions/linux-newbie-8/warning-cannot-write-to-scoreboard-file-4175553392/)

Selecta 09-13-2015 03:55 PM

Warning: cannot write to scoreboard file
 
2 Attachment(s)
Running Ubuntu 14.04. I've been working on getting Linux up and running, compiling and running an app called Nethack. Got everthing working on the O/S. Was able to compile. Worked out some errors when trying to run the executable but now I'm stuck:

I run the follow command in the directory holding the executable:

Directory: /opt/nethack/nethack.alt.org/nh343
Command: sudo ./nethack.343-nao
Return:

Quote:

Warning: cannot write to scoreboard file /nh343/var/record
Hit return to continue.
When I hit return I get this:

Quote:

Cannot open file /nh343/var/perm. This is a program bug.
Waiting for release of fcntl lock on /nh343/var/perm. (9 retries left).
...
Waiting for release of fcntl lock on /nh343/var/perm. (0 retries left).
I give up. Sorry.
Some other process has an unnatural grip on /nh343/var/perm
Seems like a file lock but I'm not sure how that is happening as this is a stock Ubunto desktop install with nothing else running. I rebooted a few times and tried to run the executable as soon as the machine comes up but I get the same problem. I ran CHMOD -R 777 on the entire directory just for testing purposes and restarted but no love.

I have attached screenshots with the output.

Any help or insight would be great. Thank you!

knudfl 09-13-2015 05:37 PM

? Why not install the nethack-3.4.3 packages with apt ?

E.g. $ sudo apt-get install nethack-qt
http://packages.ubuntu.com/search?su...ywords=nethack

jpollard 09-13-2015 05:46 PM

It appears to be an overlooked configuration option.

See https://nethackwiki.com/wiki/User:Pa...up_dgamelaunch

Which recommends replacing it with where the locks should be.

Selecta 09-13-2015 06:22 PM

Knudfl - I'm using a custom, patched version of nethack.

jpollard - dgamelaunch is a separate program that wraps around nethack to handle logins and game viewing for a public nethack server rather than just a single player. Shouldn't be necessary in order to get the core program up and running but I'll see if there is something on that page which brings insight.

Thank you both for responding.

sgosnell 09-13-2015 08:10 PM

It's trying to write to a directory in the root of the filesystem, which may not have the proper permissions set. Is there really a /nh343/var/ directory? Programs are not usually allowed to do that.

Selecta 09-13-2015 09:11 PM

sgosnell - yes sir the directory exists and I can navigate to it and see the record file. I used sudo to run the executable so I'm not sure how to do any more on the permission side as I CHMOD 777 the whole directory as well.


All times are GMT -5. The time now is 10:16 AM.