-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AppArmor causes editor to exit with exit code 1 #18
Comments
Does it have the '>' character in the command before the filename? |
No, I dont think so. Definitely, there is no > symbol before filename. Best Regards, Sent from an Android...
|
Would you be willing to try level 1 debugging to see if we can get a better error message out of Firefox? |
Hey, I am experiencing the exact same problem. I can have a look at setting up level 1 debugging to get a better idea of what's going on. Can't guarantee that I get it done this weekend, tho.. |
Same situation :) Still have no time to setup level 1 debug, but maybe tomorrow will do it.. |
Hello again. I did finally get around to do it. It only took me 15 minutes, actually. I didn't get much from the level 1 debugging. I took a screenshot you can find here: http://www.zaera-holo.net/static/graphics/ff_iat_error_console.png And here's a screenshot of my config. Haven't touched it, except from the debug set to true. |
Hey, any progress on this? I really miss my vim....! |
Yeap from my side :) |
Can you paste the output from |
Also, is this 32bit or 64bit Ubuntu? |
@docwhat, I have 64-bit Ubuntu installation :) |
Same here. Ubuntu 11.10 64 bits. Default Mozilla Firefox. |
Okay, I need to update my VM from 11.04 then. |
Hello again DocWhat: It didn't work on 11.04 64bits either, just so you know :) |
oh goody. So maybe I can't reproduce this easily. sigh |
Why not? Can I help? |
Because it worked fine in 11.04 for me. :-( Let me finish updating my Ubuntu VM and if I can't reproduce it, then we can maybe see about tag-teaming this bug. |
Ok, let me know Christian Höltje reply@reply.github.com wrote:
|
Okay, I cannot reproduce anything. If you'd be willing to try to walk through this together, that'd be great. If you go to my website and contact me through one of my "alter egos" we can set up some way to work on this together. Thanks again. |
In which timezone you are located now? How about to work together after 8 My timezone is - GMT +5, 23:25 local time Best Regards, Sent from an Android...
|
Allright, I've added you to chat on gmail. Did you get my invitation? |
Well.. guess what.. I set up /usr/bin/vim as my favorite editor, but I |
guzaho: Huh....no I didn't. Glad you got it to work anyway. :-) |
mamedov: Alas, I'm -4 or -5 UTC. Give me an IM tomorrow evening and I'll try to walk through some of this with you while I'm at work. |
@docwhat, OK :) I have sent you invitation. Did you recevied it? |
@mamedov was awesome and let me virtually look over his shoulder and try to troubleshoot this. What we found out was:
Conclusion: Firefox 7.0.1 in Ubuntu is broken in some subtle way. I'm going to try taking the |
WORKAROUND: Get the latest official version of Firefox and use that instead of the one shipped with Ubuntu. |
@mamedov - Can you go to https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/882125 and subscribe yourself in case they have additional questions? Also, can you add the following information:
Thanks again for your help. |
Note, this turned out to not be a bug at all, as the reporter had set the Firefox Apparmor profile shipped in Ubuntu to enforce mode. |
Before I close this, I need to detect ubuntu (or at least linux) and add a message explaining to the user to check their apparmor settings. |
And perhaps a more explanatory error message for misconfigurations? :)Sent from my Android phone with K-9 Mail. Please excuse my brevity. "Christian Höltje" reply@reply.github.com wrote: Before I close this, I need to detect ubuntu (or at least linux) and add a message explaining to the user to check their apparmor settings. Reply to this email directly or view it on GitHub: |
Please note that this is not necessarily a misconfiguration. It's a default setting that happens to break It's All Text. I didn't intentionally install apparmor, let alone misconfigure it. For the benefit of users that might find this thread while trying to get rid of this error, here's how to fix it. If It's All Text dies with an "exited with a status of 1" error in .deb-based flavors of Linux like Ubuntu, here's how to fix that error. To see if this will fix your error, run this command: sudo aa-status If you get output like "14 profiles are in enforce mode" then these instructions will work for you - continue with the following steps. Look in the /etc/apparmor.d/ folder for a file called (or starts with) usr.bin.firefox. Edit that file with your favorite editor using superuser priveleges. You'll need to add a line that points to the editor that you configured It's All Text to use. In my case, that's kate, and the path to kate's binary is /usr/bin/kate. Using the above path, add one or two lines into the middle of usr.bin.firefox, like this: I added this on 2/17/2012 to allow firefox access to the kate binary for the It's All Text addin/usr/bin/kate ixr, The line that starts with # is just a comment. The /usr/bin/kate portion must point to your editor. The ixr portion gives Firefox permission to run your editor. The comma at the end of the line is required. To make this change be seen by Firefox, either restart your computer, or run this command: sudo /etc/init.d/apparmor restart |
Ooh, crap. That bolded "I added this" line is just a comment - it starts with #, and this web site made it big and ugly. |
What do you mean it's not a misconfiguration? If I set an invalid path to my editor, I have misconfigured It's all Text, have I not? :) What I wanted you to understand was that giving It's all Text an invalid path should show a descriptive message, not just "Editor exited with status of 1". |
"Misconfigured" implies that the user changed some setting incorrectly. This problem happens because of a default setting. Let's not argue about semantics. :) An informative error message would still help. |
agreed. :) Sorry if I sounded pedantic. |
Absolutely. It needs a better message. Possibly pointing to a wiki page or something similar for Linux users. |
I tried this workaround. Doesn't work for me. I have 64bit ubuntu 11.10 |
@rpattabi , you did installed official Firefox on Ubuntu or what? |
@mamedov Yes. It is the official firefox installation that came with Ubuntu out of the box. |
@rpattabi , try to use firefox downloaded from firefox.com :) |
@rpattabi If you tried putting your editor's path into the apparmor file and it didn't work, can you try running the editor via the command line? It should have given you the path. If that works, then I suspect your apparmor file isn't set up right. You can either bypass the apparmor security by downloading the latest from firefox.com (which won't have problems with the default apparmor settings) or you can ask for help on the various Ubuntu forums. |
@mamedov @docwhat There is no issue running the editor from command line. I gave the correct path which I got from I am moving to latest ubuntu sometime this week. I don't expect this problem on the latest ubuntu (with latest firefox) based on your explanations. I will confirm the same here. |
With latest ubuntu 12.04 and latest firefox 12.0, I have the same issue
The work around suggested didn't work, again. While doing the last step in the work around, that is, sudo
Does it mean that the update didn't affect the required files? |
@rpattabi I'm not sure. I don't use AppArmor normally and I'm waiting to update my Ubuntu box until 12.04.1 comes out. @ThomasMcA do you have any suggestions? |
howtoforge.com suggests disabling apparmor here: http://www.howtoforge.com/perfect-server-ubuntu-12.04-lts-apache2-bind-dovecot-ispconfig-3-p3 Use these commands to do that: After removing apparmor on my system, ItsAllText still couldn't launch vim. Perhaps these changes need a system restart. |
@ThomasMcA Can you try restarting and see if that helps? If not, then this may be a new issue... |
After a restart, trying to use vim gives the same error. When I changed it back to kate, it works. (I am replying using kate.) |
vim or gvim? vim won't work because it's a terminal program. |
I was using vim. I changed it to gvim, and it worked. (I am replying right now via gvim.) I assume the O/P was also using vim. |
Hello,
Thank you for your extension :)
I have changed my favorite editor to "Sublime Text 2" and now when I am trying to "edit" my textareas I got:
If I will open terminal and type
/home/mamedov/.mozilla/firefox/vkuuxfit.default/itsalltext/mst.something.com.2i33381k2a.txt
- editor opens OK and I can see text from textarea.My sistem is:
Linux mamedov-laptop 2.6.38-11-generic #50-Ubuntu SMP Mon Sep 12 21:17:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
UPDATE:
Downgraded to 1.6.0 - now when I clicking on edit button nothing happens :(
The text was updated successfully, but these errors were encountered: