Comments (7)
this works great, thanks for the tip! I was using disable_root: false, as the initial line was disable_root: true, but besides that, login now works as it should! Thanks again!
from brenda.
When running the instances, type
brenda-tool ssh tail log
from brenda.
I've got a very similar issue.
Basically, when I run the brenda-tool ssh tail log command, it IS executed on each instance, but each instance returns the same error to me:
bash: log: command not found
Even when I ssh to a particular instance and run the command tail log there, the error persists. It might simply be that the location of logs has changed, or a command isn't available in recent Ubuntu distros, I don't know.
from brenda.
Never mind, just found it: The command shall slightly change to brenda-tool ssh tail /mnt/brenda/log
Seems like on every instance, brenda mounts a drive on /mnt/brenda for me and puts the logfile there. I'm using a custom AMI by the way, created based on Ubuntu 14.04.
from brenda.
At my end, everthing works as expected.
@aliasguru:
It indeed mount to /mnt/brenda, but normally it should create symlinks ln -s /mnt/brenda/ /root/
.
Since brenda SSH commands are executed as root, you should be able to view them in as tail log
. So either your machine does not act as root, or something goes wrong when the symlink is created, or your SSH 'start' directory is not /root. If you start in / it might explain why it doesn't show up.
Are you using your own AMI? If so, on which distro is it based? What is that distro's default starting dir when connecting to it via ssh?
from brenda.
@woutervddn As mentioned above, I created my own AMI and used Ubuntu 16.04 as a base (I misremembered the OS version in my post above, just checked it now). In that instance, I have to use the user ubuntu to log in. What I did in the end was to generate a symlink via sudo ln -s /mnt/brenda/log ~/log to be able to use the brenda-tool command as indicated, and created an AMI afterwards. This works fine now.
from brenda.
@aliasguru In Ubuntu 16.04 logging in as Root over ssh is disabled. Even when you enable it, it will still cease to work whenever you restart (or spawn) the machine. This behavior is due to AWS's configuration in /etc/cloud/cloud.cfg
. This can be changed by following the procedure written here: http://serverfault.com/questions/412113/aws-how-to-stop-cloud-init-from-disabling-root-login
The code seems to check a disable_root boolean configuration value, so I'm guessing that you need to set this in /etc/cloud/cloud.cfg:
disable_root: 0
Took me a couple hours (and about 10 AMI iterations) to figure it out...
from brenda.
Related Issues (20)
- No output from brenda-tool perf HOT 1
- Better error message instead of "paracurl.Exception: (-5, 'PC_ERR_HTTP : bad HTTP status code')"
- Getting idle spot instances HOT 2
- Tracking : Need to track status of Spot instancess
- tail: cannot open 'log' for reading: No such file or directory HOT 1
- MaxSpotInstanceCountExceeded when max spots should not have been exceeded HOT 2
- "brenda-run stop" stops instances that were not started by brenda
- Is there a way to specify an availability zone? HOT 3
- Trying to create a custom Brenda AMI with Blender 2.78c HOT 1
- Environment Variable not seen by brenda, but there when I ssh into the instance HOT 4
- Can't stop instances without terminating them
- blender jobs with linked cached cloth-sim objects HOT 4
- Replacing PNG in script template with EXR?
- Receiving Bus error in the middle of render process
- Invalid device name /dev/sdf1 on EC2 spot request using an EBS snapshot HOT 4
- Alternative to Brenda? HOT 1
- Vast.ai
- Blender 2.8 HOT 2
- brenda-run failing when trying to run spot instance request HOT 2
- The AMI on this project no longer exists.
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 brenda.