Insync-headless move_folder seems not working


#1

Hello,
I’m trying to move folder destination, but it doesn’t work:
As stated in the man (insync-headless move_folder PREV_PATH NEW_PATH) I type the following command:

insync-headless move_folder /root/xxxxx@gmail.com/ /var/www/domain.tld/private/xxxxx@gmail.com/

Moving… /root/xxxxx@gmail.com

But the destination folder is not created, nothing moves!
If I create the destination folder before launching the command, it is deleted.
I tried with or without end-slash: same result.

An idea for me?
Thank you.


#2

Some logs ?

Nothing when launching move_folder command.
Nothing when starting insync-headless

This when exiting insync-headless:

 Exception in thread Thread-2:
Traceback (most recent call last):
  File "threading.py", line 552, in __bootstrap_inner
  File "threading.py", line 505, in run
  File "isyncd/linux/headless/account_mover.py", line 87, in do_move
AttributeError: 'unicode' object has no attribute 'next'

----------------------------------------
Exception happened during processing of request from 
Traceback (most recent call last):
  File "SocketServer.py", line 593, in process_request_thread
  File "SocketServer.py", line 334, in finish_request
  File "isyncd/linux/portable/unix_socket_server_portable.py", line 109, in __handler
  File "isyncd/linux/portable/unix_socket_server_portable.py", line 126, in _handle_linux_simple_api
  File "isyncd/linux/portable/unix_socket_server_portable.py", line 460, in move_folder
  File "isyncd/linux/headless/account_mover.py", line 67, in move_path
  File "Queue.py", line 190, in get_nowait
  File "Queue.py", line 165, in get
Empty
----------------------------------------

Thank you.


#3

@lol_deb Thanks for the report. What Linux distribution and version are you using?


#4

Hi lpugoy,
Thank you for the answer.

Debian Jessie, up to date.

Linux obiwan.xxxxxx.xxx 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt9-2 (2015-04-13) x86_64 GNU/Linux

Installed version of insync-headless:

apt-cache policy insync-headless
insync-headless:
  Installé : 1.2.11.35149-wheezy
  Candidat : 1.2.11.35149-wheezy
 Table de version :
 *** 1.2.11.35149-wheezy 0
        500 http://apt.insynchq.com/debian/ jessie/non-free amd64 Packages
        100 /var/lib/dpkg/status
     1.2.11.35149-precise 0
        500 http://apt.insynchq.com/ubuntu/ precise/non-free amd64 Packages

#5

@lol_deb Please try out this build: http://s.insynchq.com/test_builds/insync-headless_1.2.11.35150-wheezy_amd64.deb


#6

Hi,
Thank you!

 # insync-headless quit
 # dpkg -i insync-headless_1.2.11.35150-wheezy_amd64.deb
 # apt-cache policy insync-headless
 insync-headless:
   Installé : 1.2.11.35150-wheezy
   Candidat : 1.2.11.35150-wheezy
  Table de version :
  *** 1.2.11.35150-wheezy 0
         100 /var/lib/dpkg/status
      1.2.11.35149-wheezy 0
         500 http://apt.insynchq.com/debian/ jessie/non-free amd64 Packages
      1.2.11.35149-precise 0
         500 http://apt.insynchq.com/ubuntu/ precise/non-free amd64 Packages
 # insync-headless start

Unfortunately, it produce an output error (global name ‘os’ is not defined) and it doesn’t move the folder:

 # insync-headless move_folder /root/xxx\@gmail.com/ /var/www/yyyyy.mg/private/xxx\@gmail.com/
 Moving... /root/xxx@gmail.comglobal name 'os' is not defined /root/xxx@gmail.com

On the other side there is no more errors nor messages… in logs (file out.txt).

All best.


#7

@lol_deb Please send your logs to support@insynchq.com: How to find the log files. You can compress them before sending to save space. Thanks.


#8

Hello,
It’s done.

Laurent.


#9

Hello,
Some news from the log analysis ?

Thank you.
Laurent.


#10

Hi,
Good new, problem solved with:

apt-cache policy insync-headless

insync-headless:
Installé : 1.2.12.35154-wheezy

Cheers,
Laurent.


#11

@lol_deb Does the move_folder command now work for your case?


#12

Hi,

Yes, as told, problem solved with the update: move_folder command works for me.

Thank you.
Laurent.


#13

I think I may have a similiar problem - but as I am new to both Linux (Ubuntu) and Insync I ham having trouble understanding the fix. Basically I was trying to move my synch folder to an external drive and when I try to apply the change (using the Insync manage Account tool) The error “global name ‘os’ is not defined” flashes up. Here is my orignal question. Any help would be great.


#14

@Mark_Roberts Please try the 1.2.13 version: New Insync version: 1.2.13/1.2.14


#15

Perfect. Thanks all seems to be working now.