Bug 4984

Summary: sftp conection close core-image-base
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Joerg Boge <joerg.boge>
Component: coreAssignee: Saul Wold <sgw>
Status: RESOLVED NOTABUG QA Contact:
Severity: normal    
Priority: Medium CC: meta.mr.watcher, meta.watcher, otavio
Version: 1.4.1   
Target Milestone: 1.5 M4   
Hardware: Other   
OS: arm   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Yes (doc changes required)

Description Joerg Boge 2013-08-05 18:50:28 UTC
Hello,
I have build core-image-base with 

MACHINE ??= 'nitrogen6x'
DISTRO ?= 'poky'
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES = "debug-tweaks ssh-server-openssh"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS = "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    ABORT,${TMPDIR},100M,1K \
    ABORT,${DL_DIR},100M,1K \
    ABORT,${SSTATE_DIR},100M,1K" 
CONF_VERSION = "1"
BB_NUMBER_THREADS = '8'
PARALLEL_MAKE = '-j 8'
ACCEPT_FSL_EULA = ""


ssh works fine

but sftp not

$sftp root@192.168.2.25
root@192.168.2.25's password: 
Connection closed

the only image witch works with sftp is core-image-sato-sdk

please help 

regards

Joerg
Comment 1 Otavio Salvador 2013-08-06 18:01:24 UTC
I reassigned this to OE-Core as it seems not related to the BSP.
Comment 2 Saul Wold 2013-08-08 05:31:56 UTC
I would like to get some clarification, are you on the target or the host?  I 
need some direction infromation.  There might be a 
package that being installed on the sato-sdk , but not on your -base image.
Comment 3 Joerg Boge 2013-08-08 06:21:49 UTC
I want to upload from my Ubuntu 12.04 via sftp files. So i added ssh-server-openssh to the target. (See my local.conf file)

On sato sdk image surly are a lot of more packages. 
But ssh on it own should offer sftp upload.
Comment 4 Saul Wold 2013-08-08 15:57:02 UTC
This is actually intended behavior, the default packaging on the SSH Daemon has sftp and sftp-server packaged separately and not included as part of the ssh-server-openssh as is trying to make the same functionality as dropbear.

SCP exists, you can use CORE_IMAGE_EXTRA_INSTALL_append = " sftp-server", to include the sftp-server on your target.  This could be added to a wiki someplace, not sure where.
Comment 5 Joerg Boge 2013-08-08 19:53:44 UTC
I try 

EXTRA_IMAGE_FEATURES = "debug-tweaks ssh-server-openssh sftp-server"
bitbake without error but did not solve the problem

the I try

EXTRA_IMAGE_FEATURES = "debug-tweaks ssh-server-openssh"
CORE_IMAGE_EXTRA_INSTALL_append = " sftp-server"


NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES 'sftp-server' (but /home/joerg/roootfsbuilder/sources/poky/meta/recipes-core/images/core-image-base.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'sftp-server' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['sftp-server']
ERROR: Required build target 'core-image-base' has no buildable providers.
Missing or unbuildable dependency chain was: ['core-image-base', 'sftp-server']

Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
Comment 6 Saul Wold 2013-08-12 18:11:36 UTC
Sorry, I gave the wrong package name, it should be:  openssh-sftp-server
Comment 7 Saul Wold 2013-08-21 20:50:37 UTC
This should work with the openssh-stftp-server package added