Comments (14)
Got it. The "ptrace attach: operation not permitted" is good news, actually, because that means we've found the source of the problem. :)
In recent versions of Ubuntu, the Ubuntu kernel team turned on a kernel feature called "ptrace protection". This prevents an application to connect to another one and read its memory. See https://wiki.ubuntu.com/SecurityTeam/Roadmap/KernelHardening#ptrace%20Protection
Unfortunately, attaching to the memory of another program is exactly what DwarfTherapist does.
You'll need to manually disable ptrace protection on your machine. The following command should do it:
sudo echo 0 > /proc/sys/kernel/yama/ptrace_scope
from df-lnp-installer.
I think you're reporting two different issues here.
- The "Open Savegames Folder" button in the LNP launcher does not work. This is a known issue with the LNP launcher. See "WARNING" in the LNP launcher thread. http://www.bay12forums.com/smf/index.php?topic=124613
- Dwarf Therapist complains that it cannot connect to Dwarf Fortress. Dwarf Therapist requires that you have a region loaded and running. It will not be able to find DF from the main menu screen. Please try loading a game and clicking the connect button in Dwarf Therapist.
from df-lnp-installer.
Do you get a message in the command line output from LNP saying "ptrace attach: operation not permitted"?
from df-lnp-installer.
here's the error message.
from df-lnp-installer.
oh.. just seen the command line output "ptrace attach: operation not permitted"
from df-lnp-installer.
You got it! You'r the best! :)
echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
work's fine for me!
from df-lnp-installer.
Fantastic. I'm going to add a step in the installer to check for ptrace_scope and I'll reuse your command in the documentation. I'll close this once that check gets added.
Thanks for the report.
from df-lnp-installer.
Resolved in 0.3.0 branch as of commit 9cf3a8c.
from df-lnp-installer.
Note for anyone running Ubuntu (not sure what versions, i am using 12.10 Quantal). The above solutions will not work, because the /proc/sys/kernel/yama/... folder seems to be protected. I was unable to use sudo to make any changes via a straight echo > 0 ... The second solution, piping output from echo to a sudo-privileged 'tee' did, in fact work. I'm not sure if the change will be permanent, however.
A previous attempt, made by first 'sudo su' -ing to root did not stay.
from df-lnp-installer.
The second solution, piping output from echo to a sudo-privileged 'tee' did, in fact work. I'm not sure if the change will be permanent, however.
/proc is managed by the kernel and you'd be able to find out if the option stayed by rebooting.
from df-lnp-installer.
yeah, i'll check after class.
from df-lnp-installer.
I'd bet it won't persist. On the other hand I bet this will work:
echo "kernel.yama.ptrace_scope = 0" | sudo tee /etc/sysctl.d/10-ptrace.conf
from df-lnp-installer.
you're correct, it did not persist.
The change you suggested should work, will get back to you once I know for sure.
from df-lnp-installer.
There is now a wiki page talking about this, and 0.3.0 will look for and inform the user if ptrace protection is turned on. Closing the ticket.
https://github.com/andrewd18/df-lnp-installer/wiki/Dwarf-Therapist-Cannot-Connect-to-Dwarf-Fortress
from df-lnp-installer.
Related Issues (20)
- False negative for missing dep in fedora 17
- The utilities SHA is broken again HOT 1
- cannot stat `./lnp.yaml': No such file or directory HOT 2
- Several graphics packs ttf do not work
- DF version not supported by Dwarf Therapist: Checksums don't match HOT 4
- LXLE 12.04.4 (Lubuntu 12.04.4) x64 - Install script aborts HOT 2
- soundsense gamelog.txt location fixing not working
- Failed to Update Saves to New Tilesets HOT 2
- Utility_Plugins_v0.43-Windows-0.34.11.r3.zip always fails checksum regardless of redownloads HOT 4
- df-lnp-installer.sh: Applying Phoebus LNP patches failed. Exiting. HOT 3
- Utilities v44 fails checksum HOT 2
- Installer fails to qmake Dwarf Therapist HOT 1
- Installer cannot find qmake-qt5
- Full install does not need history and branch
- Falconne's plugins are up to v46 HOT 4
- One or more file failed its checksum HOT 2
- Upgrade to DFHack-r5 and include the new Stonesense Overlay HOT 1
- Dwarf Therapist + DF v0.40.01 = success!
- Has anyone forked this repository? HOT 4
- Incorrect path for soundsense gamelog
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from df-lnp-installer.