cimryan / teslausb

Steps and scripts for turning a Raspberry Pi into a useful USB drive for a Tesla
MIT License
572 stars 484 forks source link

Nothing transfering to samba share... #139

Open zestysoft opened 5 years ago

zestysoft commented 5 years ago

Just did a fresh install following the One Step Setup (headless) automatic a few days ago: https://github.com/cimryan/teslausb/blob/master/doc/OneStepSetup.md

I got the 2, 3, 4, 5 stages of flashes.

While it was still plugged into the computer, I could see the drive letter, and I was able to ssh into it.

Plugged it into the car and after it started to flash with a regular heartbeat, Tesla detected it. Since then a number of things have written to it (apparently).

At no point however has it dumped its contents back to my local samba server.

A number of things look out of the ordinary -- both root and boot are showing as mounted rw.

/mutable/archiveloop shows this:

mount: can't find /mnt/archive in /etc/fstab Wed 22 May 04:17:43 BST 2019: Failed to mount /mnt/archive. Wed 22 May 04:17:43 BST 2019: Attempts exhausted. Wed 22 May 04:17:43 BST 2019: Failed to mount cam archive. Wed 22 May 04:17:43 BST 2019: Couldn't connect archive, skipping archive step

Looking at /boot/teslausb-headless-setup.log, it shows this error:

Sun 19 May 23:22:01 BST 2019 : verify-archive-configuration: STOP: The archive couldn't be mounted with CIFS version 3.0. Try specifying a lower number for the CIFS version like this:

However, when I recreate the /tmp/teslaCamArchiveCredentials, create the /tmp/archivetestmount directory and re-run the command, it works perfectly.

The password only contains alphanumeric characters, and I had it enclosed in single quotes like the example shows in the instructions. Any idea what went wrong?

Since I'm still able to ssh into it, is it possible for me to re-run the setup commands to see where things broke? Barring that if I want to complete the setup, I assume I just need to make sure /mnt/archive mounts through fstab?

TonyHoyle commented 5 years ago

I found I had to run /root/bin/setup-teslausb to get anything to work. The documentation implies running /etc/rc.local is enough but that was just exiting with 'already running'.

That step also installs a bunch of stuff I noticed was missing, like ntpd.