Sorry for all the hassle....

On a new server, my freshly created o1.ftp account can log in via ssh but on any successfull commant my client (putty) just closes.
cd (closes)
ls (closes)

but any failure will respond, like if I try to change directory to someplace I cannot go, then it will act normally and not close.

I have tested this from different computers to make sure... and all other accounts are fine.

My thoughts are maybe some firewall setting or something like that.. I have changed nothing BTW.

Penny for your thoughts.

Also Omegacc what is your paypal email address, I'd like to send you a very small token of my appreciation.

Regards,

Will.

Comments

Musicious’s picture

This is my putty log file output...

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2012.03.19 19:34:07 =~=~=~=~=~=~=~=~=~=~=~=
cd
Traceback (most recent call last):
File "/usr/local/bin/lshell", line 27, in
lshell.main()
File "/usr/local/lib/python2.6/dist-packages/lshell.py", line 1450, in main
cli.cmdloop()
File "/usr/local/lib/python2.6/dist-packages/lshell.py", line 556, in cmdloop
stop = self.onecmd(line)
File "/usr/local/lib/python2.6/dist-packages/lshell.py", line 678, in onecmd
func = getattr(self, 'do_' + cmd)
File "/usr/local/lib/python2.6/dist-packages/lshell.py", line 163, in __getattr__
self.g_line = get_aliases(self.g_line, self.conf['aliases'])
File "/usr/local/lib/python2.6/dist-packages/lshell.py", line 1431, in get_aliases
line = line.replace(aliaskey, aliases[item])
UnboundLocalError: local variable 'aliaskey' referenced before assignment

omega8cc’s picture

Status: Active » Postponed (maintainer needs more info)

You are using some broken head version of the script probably, as this lshell issue has been fixed in this commit:

http://drupalcode.org/project/octopus.git/commit/5aa0816

Please include/attach all logs, as listed here: http://drupal.org/node/add/project-issue/octopus

Musicious’s picture

Octopus.log

Mon Mar 19 11:22:27 EDT 2012 / Ubuntu.lucid i686 / Aegir BOA-2.0.2 / Octopus BOA-2.0.2 / FPM 5.2

Barracuda.log

Mon Mar 19 11:01:45 EDT 2012 / Ubuntu.lucid i686 XEN / Aegir BOA-2.0.2 / Barracuda BOA-2.0.2 / Nginx 1.0.12 / PHP 5.2.17 and 5.3.10 / FPM 5.2 / MariaDB localhost / Wildcard NO

o1.octopus.cnf

###
### Configuration created on 120319-1115 with
### Octopus version BOA-2.0.2
###
### NOTE: the group of settings displayed bellow
### will *override* all listed settings in the Octopus script.
###
_USER="o1"
_MY_EMAIL="will@mydomain.ie"
_PLATFORMS_LIST="D7P D7S D7D D6P D6S D6D OAM"
_AUTOPILOT=YES
_HM_ONLY=NO
_O_CONTRIB_UP=NO
_DEBUG_MODE=NO
_MY_OWNIP=
_FORCE_GIT_MIRROR=""
_THIS_DB_HOST=localhost
_DNS_SETUP_TEST=YES
_HOT_SAUCE=NO
_USE_CURRENT=YES
_REMOTE_CACHE_IP=127.0.0.1
_LOCAL_NETWORK_IP=
###
### NOTE: the group of settings displayed bellow will be *overriden*
### by config files stored in the /data/disk/o1/log/ directory,
### but only on upgrade.
###
_DOMAIN="o1.server.mydomain.org"
_CLIENT_EMAIL="notify@domain.me"
_CLIENT_OPTION="CLASSIC"
_CLIENT_SUBSCR="M"
_CLIENT_CORES="4"
###
### Configuration created on 120319-1115 with
### Octopus version BOA-2.0.2
###

-------------------------------------

Sorry about that, glad to hear you know what it is that causes that. Just downloaded the script today.

omega8cc’s picture

Status: Postponed (maintainer needs more info) » Active

This shouldn't be an issue with stable 2.0.2, really weird.

Please run two commands (as root) to fix your lshell config:

perl -p -i -e "s/, 'drush gm':'drush generate-makefile'\}/\}/g" /etc/lshell.conf
perl -p -i -e "s/,'drush gm':'drush generate-makefile'\}/\}/g" /etc/lshell.conf
Musicious’s picture

ran those commands as root... but no success. (they are the same command BTW)

Musicious’s picture

Status: Active » Closed (works as designed)

logged in as root.. to test su o1.ftp, worked with no problem.

Then just to check logged in as octopus account directly. It now works fine.

Strange, very strange.

Thanks, closed, works as designed.

defiantbyte’s picture

Status: Closed (works as designed) » Active

I did a fresh 2.0.2 install and created an Octopus instance resulting in the same issue. I ran the 2 commands and logged in as the ftp user successfully. However my welcome message is not formatted correctly:

Barracuda Aegir Hosting System
Last login: Tue Apr 10 11:32:02 2012 from 24.227.122.190
"\n         ======== Welcome to the Aegir and Drush shell ========\n         Type '?' or 'help' to get the list of allowed commands\n                   Your favorite command not allowed?\n                     Contact us: support@omega8.cc\n"

Changed the status back to active because I think there might be a bug floating about.

omega8cc’s picture

Status: Active » Fixed

This could be old lshell and python issue, but it is already fixed anyway in head: http://drupal.org/node/1347346#comment-5758158

Musicious’s picture

Yeah, it's still happening to me, I have to log in as root and su -s /bin/bash - o1.ftp to get around it.

Should I use the head version? Is it stable/recommended?

Cheers.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.