Coder Social home page Coder Social logo

Brenda Logs about brenda HOT 7 OPEN

jamesyonan avatar jamesyonan commented on July 30, 2024
Brenda Logs

from brenda.

Comments (7)

aliasguru avatar aliasguru commented on July 30, 2024 1

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.

Berryu avatar Berryu commented on July 30, 2024

When running the instances, type

brenda-tool ssh tail log

from brenda.

aliasguru avatar aliasguru commented on July 30, 2024

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.

aliasguru avatar aliasguru commented on July 30, 2024

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.

woutervddn avatar woutervddn commented on July 30, 2024

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.

aliasguru avatar aliasguru commented on July 30, 2024

@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.

woutervddn avatar woutervddn commented on July 30, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.