Ask Your Question

E212 Can't open file for writing

asked 2015-11-01 18:59:51 -0600

PuppetNYC gravatar image

I was taking a spin at the learning VM.

I've tried everything and I can't past this TASK2

There is no examples folder,,, I created one and still and I can't create files only the one in task one..

Not sure what is going on. I keep getting the same E212 error.

image description image description image description

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2015-11-01 23:15:37 -0600

GregLarkin gravatar image

Your screenshot shows you are trying to save the file to cowsayings/tests/cowsay.pp, which is different than what the Learning VM is instructing. What happens if you try to save to cowsaysings/examples/cowsay.pp?

You said that the examples directory didn't exist, but if you create it, aren't you able to save a file to it?

edit flag offensive delete link more


You are already located in the cowsayings directory, so instead of trying to edit the file cowsayings/tests/cowsay.pp from that directory, edit the file tests/cowsay.pp. You have to make sure you are in the correct directory and then edit the correct relative path name from there.

GregLarkin gravatar imageGregLarkin ( 2015-11-02 12:38:41 -0600 )edit

I finally figured it out... this stuff drives me nuts... the feeling of not knowing.. what got it all mixes up in the first place was that there instructions talked about an "example folder" that didn't exist - I got so caught up in that that I didn't notice that I was created the folder

PuppetNYC gravatar imagePuppetNYC ( 2015-11-02 23:25:38 -0600 )edit

from the wrong path - The reason the first command worked was because I used CD to go to that path when I realized -- what I was finally doing.. and google didn't help I just had run the command from outside of cowsaying with tests THANKS MAN

PuppetNYC gravatar imagePuppetNYC ( 2015-11-02 23:27:00 -0600 )edit

Someone should edit the learning VM and have it say Tests folder instead of examples lol :P

PuppetNYC gravatar imagePuppetNYC ( 2015-11-02 23:28:02 -0600 )edit

For sure, we'll have a look at that. Thank you for reporting the issues!

GregLarkin gravatar imageGregLarkin ( 2015-11-03 16:40:04 -0600 )edit

answered 2015-11-02 08:08:24 -0600

PuppetNYC gravatar image

updated 2015-11-02 08:08:57 -0600

The Examples folder isn't created if I create it - after I try and save the file it gives me the same error. For some reason I can't save anywhere else, I'm using vmware workstation 10 by the way.

edit flag offensive delete link more


Hmm, not sure what's going on here. I'll have to fire up the LVM and try it out to see if I can reproduce it. Let me check if anyone on the Education team has an idea, too.

GregLarkin gravatar imageGregLarkin ( 2015-11-02 10:05:46 -0600 )edit

Ok let me know what you find.

PuppetNYC gravatar imagePuppetNYC ( 2015-11-02 19:33:09 -0600 )edit

Check my comment above from earlier today. I think the problem is just that you were in the wrong directory.

GregLarkin gravatar imageGregLarkin ( 2015-11-02 20:04:45 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-11-01 18:59:51 -0600

Seen: 550 times

Last updated: Nov 02 '15