LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-13-2015, 03:55 PM   #1
Selecta
LQ Newbie
 
Registered: Sep 2015
Distribution: Ubuntu 14.04
Posts: 19

Rep: Reputation: Disabled
Warning: cannot write to scoreboard file


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!
Attached Thumbnails
Click image for larger version

Name:	nhrunerror1.jpg
Views:	23
Size:	133.7 KB
ID:	19574   Click image for larger version

Name:	nhrunerror2.jpg
Views:	19
Size:	109.0 KB
ID:	19575  

Last edited by Selecta; 09-13-2015 at 06:41 PM.
 
Old 09-13-2015, 05:37 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,628

Rep: Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267
? 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
 
Old 09-13-2015, 05:46 PM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,688

Rep: Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259
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.
 
Old 09-13-2015, 06:22 PM   #4
Selecta
LQ Newbie
 
Registered: Sep 2015
Distribution: Ubuntu 14.04
Posts: 19

Original Poster
Rep: Reputation: Disabled
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.
 
Old 09-13-2015, 08:10 PM   #5
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian
Posts: 1,054

Rep: Reputation: 277Reputation: 277Reputation: 277
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.
 
Old 09-13-2015, 09:11 PM   #6
Selecta
LQ Newbie
 
Registered: Sep 2015
Distribution: Ubuntu 14.04
Posts: 19

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Write a script that searches a txt file and write's specific data to a new file tomtweber Programming 22 02-22-2014 12:36 PM
[SOLVED] How to write a .sh script to read configuration file and write into .txt file ISStaras Linux - Newbie 8 09-06-2012 06:03 PM
proftpd.scoreboard zaicheke Linux - Networking 4 08-20-2004 02:48 PM
error: unable to open scoreboard: No such file or directory Zac2003 *BSD 5 03-06-2004 08:26 PM
error: unable to open scoreboard: No such file or directory Zac2003 Linux - Networking 0 03-06-2004 04:41 PM


All times are GMT -5. The time now is 04:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration