Discussion:
Diagnosing scp upload problem android -> ubuntu server
Nick Rout
2011-02-08 22:11:33 UTC
Permalink
I have an android phone (2.2 froyo). I sometimes use it for office
dictation, and then want to upload the resulting file to my server,
where my secretary picks it up and types it.

I have AndFTP (android market app) set up to connect via scp (and have
also tried sftp) to the server. If I start that connection manually it
works fine and I can transfer files both ways.

However the dictation app also has functionality to upload the mp3
file direct from there - you choose email, then it offers the various
email accounts on the phone, as well as AndFTP. Trouble is the upload
fails on AndFTP, when started via the dictation app.

In each case I get in /var/log/auth.log lines like this:

Feb 9 11:05:39 server sshd[21382]: Accepted password for nick from
192.168.123.100 port 40948 ssh2
Feb 9 11:05:39 server sshd[21382]: pam_unix(sshd:session): session
opened for user nick by (uid=0)

Other than the process ID and the port changing every time, the
messages are identical on each attempt, either the manual successful
attempt, or the automatic unsuccessful one.

Logging seems very limited on the android, and I can't find any other
pertinent logs on the server.

Anyone know where else I should be looking?

_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
Shiv Manas
2011-02-09 00:33:38 UTC
Permalink
Post by Nick Rout
I have an android phone (2.2 froyo). I sometimes use it for office
dictation, and then want to upload the resulting file to my server,
where my secretary picks it up and types it.
I have AndFTP (android market app) set up to connect via scp (and have
also tried sftp) to the server. If I start that connection manually it
works fine and I can transfer files both ways.
However the dictation app also has functionality to upload the mp3
file direct from there - you choose email, then it offers the various
email accounts on the phone, as well as AndFTP. Trouble is the upload
fails on AndFTP, when started via the dictation app.
Feb 9 11:05:39 server sshd[21382]: Accepted password for nick from
192.168.123.100 port 40948 ssh2
Feb 9 11:05:39 server sshd[21382]: pam_unix(sshd:session): session
opened for user nick by (uid=0)
Other than the process ID and the port changing every time, the
messages are identical on each attempt, either the manual successful
attempt, or the automatic unsuccessful one.
Logging seems very limited on the android, and I can't find any other
pertinent logs on the server.
Anyone know where else I should be looking?
_______________________________________________
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
You should check out the logcat output. You can either launch it from a
terminal emulator, or from adb. There's also an app called aLogcat that
allows you to view and save the log.

- Shiv
_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
yuri
2011-02-09 08:50:16 UTC
Permalink
[some android problem]
Post by Shiv Manas
You should check out the logcat output.
Am I the only one who read that as "lolcat" at first glance?

Yuri

_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
Shiv Manas
2011-02-09 12:09:14 UTC
Permalink
Post by yuri
[some android problem]
Post by Shiv Manas
You should check out the logcat output.
Am I the only one who read that as "lolcat" at first glance?
Yuri
_______________________________________________
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
Actually, lolcat works as well. Apparently Google has a sense of humor. :)


- Shiv

_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
Bruce Kingsbury
2011-02-09 18:24:04 UTC
Permalink
Not on this phone (rooted ideos with terminal)

--
Sent from my Ideos!
Post by Shiv Manas
Post by yuri
[some android problem]
Post by Shiv Manas
You should check out the logcat output.
Am I the only one who read that as "lolcat" at first glance?
Yuri
_______________________________________________
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
Actually, lolcat works as well. Apparently Google has a sense of humor. :)
- Shiv
_______________________________________________
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
Shiv Manas
2011-02-09 20:50:44 UTC
Permalink
Post by Bruce Kingsbury
Not on this phone (rooted ideos with terminal)
--
Sent from my Ideos!
True; the lolcat alias works only from adb.
_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug

Loading...