Best practice forum (Archived)

Files directory in Totara Sync

 
Umberto Zaccaro
Files directory in Totara Sync
by Umberto Zaccaro - Tuesday, 12 March 2013, 7:21 AM
Group Partners

Hi,

we are trying to upload/update users with Totara Sync.

We face trouble when we try to use a directory to upload user.csv file.

I tried with many kind of path as follows:

/moodledata/sitename/sync/csv/ready/

/moodledata/sitename/sync/

/sitename/moodledata/sitename/sync

We created a directory named sync in moodledata, then I created subfolders (csv/ready) but in all cases we get this message in Log sync:

populatesynctablecsv

No file to syncronize (file's path: /moodledata/fideuramepinoiait/sync/csv/ready/user.csv)

Please could you provide an example of Files directory?

Thank you in advance.

Kind Regards

Umberto

Ciaran Irvine (Core Developer)
Re: Files directory in Totara Sync
by Ciaran Irvine (Core Developer) - Tuesday, 12 March 2013, 12:39 PM
 

Hi Umberto,

The sync root directory is specified in Site Administration -> Totara Sync-> Elements -> Manage Elements.

It looks from the error message that this is set to /moodledata/fideuramepinoiait/sync on your system. Change this to the directory you want to use, add the CSV files and try to run sync again.

Hope this helps.

Umberto Zaccaro
Re: Files directory in Totara Sync
by Umberto Zaccaro - Wednesday, 13 March 2013, 5:55 AM
Group Partners

Hi Ciaran,

thank you for your support but we have still problems.

At the end we configured the path as:

/var/www/vhosts/sitename/moodledata/sync

and this configuration should be fine but we start run_cron.php we face this alert:

Nessun file è stato caricato per user sincronizzazione (no file was uploaded for user syncronization).

I changed this file (named user.csv).

After this we get this error: Nessun file da sincronizzare (No file to syncronize).

I'm confused.

Now we think that path is correct but after one attempt we get same error as in the past.

Why in Log Sync the path is modified from:

/var/www/vhosts/sitename/moodledata/sync

to:

/var/www/vhosts/sitename/moodledata/sync/csv/ready

Which features are mandatory for csv file?

Thank you very much.

Kind Regards

Umberto

Umberto Zaccaro
Re: Files directory in Totara Sync
by Umberto Zaccaro - Wednesday, 13 March 2013, 7:45 AM
Group Partners

Hi Ciaran

we fixed this issue by inserting correctly the path:

instead of

/var/www/vhosts/sitenamecom/moodledata/sync

we put on db:

/var/www/vhosts/site.name.com/moodledata/sync

When we put the correct path in Files directory field and we save this the application deletes all dots in the field so we put them on database directly.

This is a strange behavior.

Thank you

Kind Regards

Umberto