Re: StaticSync step by step?

859 views
Skip to first unread message
Message has been deleted

Rob Warner

unread,
Feb 12, 2015, 3:57:29 PM2/12/15
to resour...@googlegroups.com
The wiki says 'Staticsync.php should be configured as a nightly cron job and is designed to run from the command line rather than via the web/apache (e.g. 'php staticsync.php'). '
however windows has no cron command and whenever I try and run the staticsync.php from the command line. all that happens is the php file opens in notepad

what do I do?

On Thursday, February 12, 2015 at 7:10:33 PM UTC, Rob Warner wrote:

Could someone please tell be how to run Staticsync, I 've edited the config file, but how do I run the sync?
there's no step by step info on the wiki,(or maybe I'm being dumb)
i'm on windows7 using xampp

thanks in advance

Rob

Robert Damrau

unread,
Feb 12, 2015, 4:13:41 PM2/12/15
to resour...@googlegroups.com
http://www.devside.net/wamp-server/running-php-scripts-as-cron-jobs-on-windows

I used wget and the task scheduler on windows server once for setting up a "cronjob" which worked fine.

To execute the script via commandline manually you have to use php.exe (windows). If you type "php -v" into commandline it should output the php version information. If not maybe php path isn't set up properly on your system.

Rob Warner

unread,
Feb 12, 2015, 6:02:01 PM2/12/15
to resour...@googlegroups.com
I got php working, and it executes the script ( I do get a warning box stating exif tool is already loaded )but no data is imported to the file store
I made a test folder on my c drive and added a few jpegs then used the following script

$syncdir="/C:/test";
$nogo="[folder1]";
$staticsync_autotheme=false;
$staticsync_folder_structure=
false;
$staticsync_extension_mapping_default=1;
$staticsync_extension_mapping[3]=array("mov","3gp","avi","mpg","mp4","flv");
$staticsync_extension_mapping[4]=array("flv");
$staticsync_title_includes_path=false;
$staticsync_ingest=false;
$staticsync_alternatives_suffix="_alternatives";
$staticsync_prefer_embedded_title = true;

but when I run the script no data is imported?

anyone help?

David Mac (new)

unread,
Feb 16, 2015, 3:59:13 AM2/16/15
to resour...@googlegroups.com
Are you running the script directly with something like 

php.exe staticsync.php 

When you say nothing is imported into the file store, what are you trying to achieve? i.e. so you want staticsync to copy the files into the RS filestore or leave them where they are and just add them to the RS database?

Regards

David

Rob Warner

unread,
Feb 20, 2015, 1:41:02 PM2/20/15
to resour...@googlegroups.com
I want to leave the files where they are on the NAS. and just have RS grab the previews and metadata:
I had so many problems trying to do this with windows, that I've set up a spare mac to run RS and so far it works great apart fro static sync

thanks in advance

Rob

David Mac (new)

unread,
Feb 23, 2015, 4:36:52 AM2/23/15
to resour...@googlegroups.com
Hi Rob

That's not a problem

Connect to the NAS from the mac, i.e. Finder Menu -> Go -> Connect to Server
This will mount the share in /Volumes

You will then need to set the sync path in your config.php file to /Volumes/Share_Name

Then to run static sync:

cd /path_to_resource_space/pages/tools
php staticsync.php

I have this bash script that I run with cron every hour:

#!/bin/bash
cd /Library/WebServer/Documents/resourcespace/pages/tools
php staticsync.php


I hope that helps!

Regards

David

Rob Warner

unread,
Feb 23, 2015, 8:01:25 AM2/23/15
to resour...@googlegroups.com
Hi David,
I tried that but it doesn't work

this is my staticsync config

$syncdir="/Volumes/Photo backup/test";
$nogo="[folder1]";
$staticsync_autotheme=false;
$staticsync_folder_structure=false;

$staticsync_extension_mapping_default=1;
$staticsync_extension_mapping[3]=array("mov","3gp","avi","mpg","mp4","flv");
$staticsync_extension_mapping[4]=array("flv");
$staticsync_title_includes_path=false;
$staticsync_ingest=false;
$staticsync_alternatives_suffix="_alternatives";
$staticsync_prefer_embedded_title = true;

and this is what I get in terminal after running php staticsync.php

robs-mac-pro:tools rob$ php staticsync.php\
    </select></table></table></table>\
    <div style="box-shadow: 3px 3px 20px #666;font-family:ubuntu,arial,helvetica,sans-serif;position:absolute;top:150px;left:150px; background-color:white;width:450px;padding:20px;font-size:15px;color:#fff;border-radius:5px;">\
    <div style="font-size:30px;background-color:red;border-radius:50%;min-width:35px;float:left;text-align:center;font-weight:bold;">!</div>\
    <span style="font-size:30px;color:black;padding:14px;">Sorry, an error has occurred</span>\
    <p style="font-size:14px;color:black;margin-top:20px;">Please <a href="#" onClick="history.go(-1)">go back</a> and try something else.</p>\
        <p style="font-size:14px;color:black;">You can <a href="http://my.site/resourcespace/pages/check.php">check</a> your installation configuration.</p>\
    <hr style="margin-top:20px;"><p style="font-size:11px;color:black;">/Applications/mampstack-5.4.37-0/apps/resourcespace/htdocs/include/config.php line 23: Undefined index: HTTP_HOST</p>\
        </div>\

Robert Damrau

unread,
Feb 23, 2015, 8:18:54 AM2/23/15
to resour...@googlegroups.com
Someone had the same problem i think, this is what i replied:

Are you using the bitnami stack? If so, you need to hardcode $baseurl in your config.php. Via cli php cannot access $_SERVER variables therefore will produce an error. So for example with bitnami part your config.php looks like this:

# Base URL of the installation
if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') {
    $baseurl   = 'https://' . $_SERVER['HTTP_HOST'] . '/resourcespace';
} else {
    $baseurl   = 'http://' . $_SERVER['HTTP_HOST'] . '/resourcespace';
}

change $baseurl to yor server url, for example:


or you can merge both and just hardcode it for cli case:

# Base URL of the installation
if (isset($_SERVER['HTTP_HOST'])) {
    if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') {
        $baseurl   = 'https://' . $_SERVER['HTTP_HOST'] . '/resourcespace';
    } else {
        $baseurl   = 'http://' . $_SERVER['HTTP_HOST'] . '/resourcespace';
    }
} else {
    $baseurl = 'http://localhost/resourcespace';
}



Am Sonntag, 15. Februar 2015 15:27:47 UTC+1 schrieb Emad Ahmad:
Dears
I need help setting staticsync
when I execute the staticsync.php, I get Undefined index
Any idea how to make it work?!!
thanks

Rob Warner

unread,
Feb 23, 2015, 10:12:52 AM2/23/15
to resour...@googlegroups.com
Thanks Robert,
I tried adding

} else {
}
but it doesn't work, and it prevents me from logging on, so I'm thinking this is not my base URL

any thoughts

Rob

Robert Damrau

unread,
Feb 24, 2015, 4:26:52 AM2/24/15
to resour...@googlegroups.com
Your baseurl should be the address you use to login to your RS installation....

When in doubt have a look into your httpd.conf file (with bitnami the path would be sth. like this ..\BitNami\wamp\apps\resourcespace\conf) and look for ServerName.

David Mac (new)

unread,
Feb 24, 2015, 4:46:35 AM2/24/15
to resour...@googlegroups.com
Hi Rob

Can you post your config.php file, obviously removing any passwords !

Thanks

David

Rob Warner

unread,
Feb 24, 2015, 5:26:03 AM2/24/15
to resour...@googlegroups.com
Hi David,
here's my config file,
<?php
###############################
## ResourceSpace
## Local Configuration Script
###############################

# All custom settings should be entered in this file.
# Options may be copied from config.default.php and configured here.

# MySQL database settings
$mysql_server = 'localhost:3306';
$mysql_username = 'bn_resourcespace';
$mysql_password = '647c2eae74';
$mysql_db = 'bitnami_resourcespace';
$mysql_charset = 'utf8';

$mysql_bin_path = 'C:/xampp/mysql/bin';


# Base URL of the installation
if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') {

    $baseurl   = 'https://' . $_SERVER['HTTP_HOST'] . '/resourcespace';
} else {
    $baseurl   = 'http://' . $_SERVER['HTTP_HOST'] . '/resourcespace';
}

# Email settings
$email_from = '********';
$email_notify = '**********';

$spider_password = '*****';
$scramble_key = '********';

$api_scramble_key = **********';

# Paths
$ftp_server = 'my.ftp.server';
$ftp_username = 'my_username';
$ftp_password = 'my_password';
$ftp_defaultfolder = 'temp/';
$thumbs_display_fields = array(8,3);
$list_display_fields = array(8,3,12);
$sort_fields = array(12);
$metadata_report = true
$storagedir = 'C:/xampp/apps/resourcespace/htdocs/filestore/upload/';
$storageurl= 'D:/filestore';
$imagemagick_colorspace= 'sRGB';
$mysql_charset = 'utf8';
$use_smtp=true;
$smtp_secure='tls'; # '', 'tls' or 'ssl'. For Gmail, 'tls' or 'ssl' is required.
$smtp_host='smtp.gmail.com'; # Hostname, e.g. 'smtp.gmail.com'.
$smtp_port='587'; # Port number, e.g. 465 for Gmail using SSL.
$smtp_auth=true; # Send credentials to SMTP server (false to use anonymous access)
$smtp_username='*****************'; # Username (full email address).
$smtp_password='********'; # Password.
$use_phpmailer=true;
$imagemagick_path = 'C:/xampp/imagemagick';
$ffmpeg_path='c:/ffmpeg/bin';
$ghostscript_path='c:/gs';
$ghostscript_executable='c:/gs/bin';
$defaulttheme= "greyblu";
$available_themes=array("multi", "whitegry","greyblu","black","slimcharcoal");
$show_language_chooser=false;
$enable_themes=false;
$show_language_chooser=false;
$exiftool_resolution_calc=true;
$imagemagick_preserve_profiles=true;
$imagemagick_quality=100;
$metadata_report=true;
# Options to show/hide the link panels on the home page
$home_themeheaders=false;
$home_themes=true;
$home_mycollections=true;
$home_helpadvice=false;


$syncdir="/Volumes/Photo\backup/test";
$nogo="[folder1]";
$staticsync_autotheme=false;
$staticsync_folder_structure=
false;
$staticsync_extension_mapping_default=1;
$staticsync_extension_mapping[3]=array("mov","3gp","avi","mpg","mp4","flv");
$staticsync_extension_mapping[4]=array("flv");
$staticsync_title_includes_path=false;
$staticsync_ingest=false;
$staticsync_alternatives_suffix="_alternatives";
$staticsync_prefer_embedded_title = true;



Rob Warner

unread,
Feb 24, 2015, 5:38:08 AM2/24/15
to resour...@googlegroups.com
Hi Robert,
Here's my httpd.conf file.


<IfDefine USE_PHP_FPM>
    <Proxy "unix:/Applications/mampstack-5.4.37-0/php/var/run/resourcespace.sock|fcgi://resourcespace-fpm" timeout=300>
    </Proxy>
</IfDefine>

<Directory "/Applications/mampstack-5.4.37-0/apps/resourcespace/htdocs">
    Options +MultiViews
    AllowOverride None
    <IfVersion < 2.3 >
        Order allow,deny
        Allow from all
    </IfVersion>
    <IfVersion >= 2.3>
        Require all granted
    </IfVersion>
   
   
    <IfModule php5_module>
            php_value memory_limit 200M
    php_value post_max_size 100M
    php_value upload_max_filesize 100M
    </IfModule>

    <IfDefine USE_PHP_FPM>
       <FilesMatch \.php$>
         SetHandler "proxy:fcgi://resourcespace-fpm/"
       </FilesMatch>
    </IfDefine>

</Directory>

Include "/Applications/mampstack-5.4.37-0/apps/resourcespace/conf/htaccess.conf"?


So would my base URL be '/Applications/mampstack-5.4.37-0/apps/resourcespace/htdocs'

David Mac (new)

unread,
Feb 24, 2015, 6:29:39 AM2/24/15
to resour...@googlegroups.com
Hi Rob

I might have an answer, when you go to resource space in a  browser, php generates the $_SERVER array automatically ( it's one of the built in arrays ).

However I'm guessing that when you run static sync from the command line, the HTTP_HOST key in the array is not getting generated as you haven't called it via HTTP ( i.e. from a web browser )

Can you comment out the if block, and just set the $baseurl manually. ( this will be whatever you enter into the browser to get to RS.

Then try running static sync again.

Regards

David

Rob Warner

unread,
Feb 24, 2015, 7:20:35 AM2/24/15
to resour...@googlegroups.com
Hi David I tried that.
but if i comment out and then add  $baseurl   = 'https://localhost:8080/resourcespace/';
then the browser cant find RS

Rob Warner

unread,
Feb 24, 2015, 10:02:25 AM2/24/15
to resour...@googlegroups.com
It seems to me that the problem is with Mamp
should I just try to install RS directly without Bitnami mampstack,
The install process on the wiki with mac ports is way out of date,
and when i tried to install under Yosemite it didn't work.
is there an up to date guide for installing on Yosemite?

I'm running out of time and If I can't get this sorted soon, I'm going to have to give up on RS
and try and find another option :-(
Message has been deleted

Robert Damrau

unread,
Feb 24, 2015, 10:35:56 AM2/24/15
to resour...@googlegroups.com
If you are able to login to RS with your existing config via browser, that URL in the browser is your baseurl.

So just replace

if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') {
    $baseurl   = 'https://' . $_SERVER['HTTP_HOST'] . '/resourcespace';
} else {
    $baseurl   = 'http://' . $_SERVER['HTTP_HOST'] . '/resourcespace';
}

with 


Also i noticed you wrote you used 'https://...' are you sure about that?

Rob Warner

unread,
Feb 24, 2015, 10:53:12 AM2/24/15
to resour...@googlegroups.com
Hi Robert ,
I did that and got this error in terminal after running php staticsync.php.

/Applications/mampstack-5.4.37-0/apps/resourcespace/htdocs/include/db.php line 84: mysqli_connect(): [2002] No such file or directory (trying to connect via unix:///var/mysql/mysql.sock)</p>

Allison Stec

unread,
Feb 24, 2015, 11:05:38 AM2/24/15
to ResourceSpace
Rob -

I was able to get RS running on Yosemite a few months ago. I don't have install notes, but might be able to give you a hand if you can recall the specific install issue.

You could also try to use MAMP to get your webserver going and install RS. A few years back I found that MAMP to be more configurable and user friendly than Bitnami's MAMPStack.

Allison Stec
Asset Management Specialist
Colorhythm
http://www.colorhythm.com

Main Office: +1 415-399-9921
Fax: +1 415-399-9928

as...@colorhythm.com

--
ResourceSpace: Open Source Digital Asset Management
http://www.resourcespace.org
---
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to resourcespac...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rob Warner

unread,
Feb 24, 2015, 11:20:23 AM2/24/15
to resour...@googlegroups.com
Thanks Alison,
I'll have to try with MAMP.
I had a problem with the RS install, following along with the OS X Snow Leopard instructions on the wiki

chmod -R 777 include


mysql -u root -e "create database resourcespace"

the command mysql went unrecognized in terminal
and the version of RS was old.


Allison Stec

unread,
Feb 24, 2015, 11:36:25 AM2/24/15
to ResourceSpace
If MAMP doesn't work out for you let me know.

FWIW I had a look at the install notes:

 - the macports install info shows an outdated version, so you'd either go and get the latest stable version from their site, or rely on the selfupdate command to make things current.
 - the command to install RS actually grabs the latest svn, so it shouldn't be outdated
 - I believe there are additional requirements for setting up mysql once it's been installed via macports.

Macports has a MAMP how-to page: https://trac.macports.org/wiki/howto/MAMP

Allison Stec
Asset Management Specialist
Colorhythm
http://www.colorhythm.com

Main Office: +1 415-399-9921
Fax: +1 415-399-9928

as...@colorhythm.com

Rob Warner

unread,
Feb 25, 2015, 4:43:35 AM2/25/15
to resour...@googlegroups.com
Hi Allison,
Will I be able to run staticsync.php from the command line with MAMP,
or will I have the same issues I had using the bitnami mampstack?

I have to be able to access the photo archive via staticsync,
leaving the files in place on the Synology NAS

Allison Stec

unread,
Feb 25, 2015, 8:45:26 AM2/25/15
to ResourceSpace
Rob -

Staticsync is designed to be run from the command line. Any *AMP system should allow you to do so, but this is all dependent on setup (users, permissions, paths, etc). 

Years ago I played around with the Bitnami MAMPStack offering and was able to run staticsync. I was also able to run it with MAMP. They're both designed to make the effort to set up a web server easier, which can be an additional learning curve if all you're after is RS. It's been a long time since I've used either of these, so I can't say with certainty that either will work, but I do recall other people in the group being able to use them.

Allison Stec
Asset Management Specialist
Colorhythm
http://www.colorhythm.com

Main Office: +1 415-399-9921
Fax: +1 415-399-9928

as...@colorhythm.com

Jon Bergh

unread,
Feb 25, 2015, 9:13:42 AM2/25/15
to resour...@googlegroups.com
Robert I have installed MAMP and then resourcespace on top many times.

I would recommend using phpMyAdmin rather than the command line for your database operations (like your creating the main DB).

Just remember that by default you use /Applications/MAMP/htdocs as your web root... If MAMP is running and the resourcespace folder is in htdocs it's pretty quick to finish up the config.

Without knowing your comfort level with all this I'd say get it running first and then worry about things like, for example, moving your asset storage to a dedicated volume.

Best of luck!!!
-jon

Rob Warner

unread,
Feb 25, 2015, 10:01:51 AM2/25/15
to resour...@googlegroups.com

Thanks Alison.
I'm getting nearer and I agree with you that the problem seems to be with paths etc.

  • I just made a clean install of OS X Yosemite
  • I installed Xcode and command line tools,
  • I installed mac ports and used (sudo port install ffmpeg ImageMagick p5-image-exiftool antiword xpdf subversion ghostscript ufraw)
  • I installed MAMP
  • I downloaded RS from the site and uzipped to Applications/MAMP/htdocs/ResourceSpace
  • I set up config.php and mysql

everything seems to be working except for StaticSync.php

this is the error

Parse error: parse error in /Applications/MAMP/htdocs/ResourceSpace/include/config.php on line 63

Robs-Mac-Pro:tools rob$ php staticsync.php

and i'm trying to connect to the Synology Diskstation at afp://DiskStation._afpovertcp._tcp.local/Photo backup

and I have tried //DiskStation//Photo backup/

both produce the same error

the config settings are currently


$syncdir="//DiskStation/Photo backup/test/“;

$nogo="[folder1]";

$staticsync_autotheme=false;

$staticsync_folder_structure=false;



$staticsync_extension_mapping_default=1;

$staticsync_extension_mapping[3]=array("mov","3gp","avi","mpg","mp4","flv");

$staticsync_extension_mapping[4]=array("flv");

$staticsync_title_includes_path=false;

$staticsync_ingest=false;

$staticsync_alternatives_suffix="_alternatives";

$staticsync_prefer_embedded_title = true;


hope you can help


thanks in advance


Rob

Robert Damrau

unread,
Feb 25, 2015, 10:14:45 AM2/25/15
to resour...@googlegroups.com
So what is line 63 in your config.php?
...

Allison Stec

unread,
Feb 25, 2015, 10:15:53 AM2/25/15
to ResourceSpace
afp://DiskStation._afpovertcp._tcp.local/Photo backup appears to be how you would connect to the server, but staticsync is looking for a local file path. This means that the afp NAS share has to be mounted to your mac. This will result in the share showing up very much like an external drive or other volume.

Is "/DiskStation/Photo backup/test/" a path you can follow on your mac...that is, does DiskStation exist in your root directory?.


Allison Stec
Asset Management Specialist
Colorhythm
http://www.colorhythm.com

Main Office: +1 415-399-9921
Fax: +1 415-399-9928

as...@colorhythm.com

Rob Warner

unread,
Feb 25, 2015, 12:19:03 PM2/25/15
to resour...@googlegroups.com
I have now set up the volume correctly and it appears as smb://Diskstation/photo backup/test
but now if I attempt to edit and save config.php,  I get a 500 internal server error
any ideas? could it be permissions?

Allison Stec

unread,
Feb 25, 2015, 12:47:12 PM2/25/15
to ResourceSpace
Where does the share appear that way?

staticsync is looking for the file path of the mount point. If memory serves, connecting to a share will not create a mount point. Additional steps must be taken to achieve this (granted, I haven't mounted a smb share on a mac in Yosemite, so I could be wrong). 

I can't tell if you're trying to use "smb://Diskstation/photo backup/test" as the staticsync path, but I'm confident that it won't work. What you want is a local path like "/Volumes/Diskstation/photo backup/test" (this is an example only, your mount point will likely be different as I don't think Yosemite allows for smb mounts in the Volumes directory).

I used to set smb share to automatically mount on boot so they would always be available to RS. This included specifying a local location to connect the shared drive to (ie. the "mount" point), and did not require the use of "Connect to Server".



Allison Stec
Asset Management Specialist
Colorhythm
http://www.colorhythm.com

Main Office: +1 415-399-9921
Fax: +1 415-399-9928

as...@colorhythm.com

Rob Warner

unread,
Feb 25, 2015, 5:18:21 PM2/25/15
to resour...@googlegroups.com
Hi Alison,
I cannot find a way of mounting a SMB share as a /Volume, the NAS only ever appears as smb://DiskStation/Photo backup
how do i find the local path needed?
everything I've tried has failed :-(  the error message points to line 84 of DB.php which is $db=mysqli_connect($mysql_server,$mysql_username,$mysql_password,$mysql_db);

help !

Rob

Allison Stec

unread,
Feb 25, 2015, 5:49:01 PM2/25/15
to ResourceSpace

Jon Bergh

unread,
Feb 25, 2015, 9:41:27 PM2/25/15
to resour...@googlegroups.com
Rob, on the Mac all mounted volumes appear in /Volumes which you can see in Terminal by changing the directory and listing like so:

cd /Volumes
ls -al


Based on your email, if you are mounting your NAS using:

smb://DiskStation/Photo backup 

...your /Volumes should read:

Macintosh HD
Photo backup


Or, more likely:

Macintosh\ HD
Photo\ backup


(If it were me I'd change my volume name on the NAS to something like PhotoBackup, eliminating the space)



Thanks.
-jon

Robert Damrau

unread,
Feb 26, 2015, 2:37:11 AM2/26/15
to resour...@googlegroups.com
If you use afp you can just mount the remote directory to wherever you like on your os x server.
Like this (in terminal):

mount_afp afp://DiskStation._afpovertcp._tcp.local/Photo backup /Users/yourname/newfolder

'newfolder' must exist and you can access the mount just like a local directory /Users/yourname/newfolder.
When you see the mount/share in Finder you can just drag n drop it to 'login items' (settings->users) for automount on system startup.



Rob Warner

unread,
Feb 26, 2015, 8:31:29 AM2/26/15
to resour...@googlegroups.com
Alison, Jon, Robert
Thank you for advice.
I've read everything you said,
and this should be a simple fix, but still no matter what i try
Staticsync still won't work

I took Roberts advice and changed from an SMB to AFP and changed the share name to Photobackup
and this is how the synology nas mounts when I get info

afp://DiskStation._afpovertcp._tcp.local/Photobackup

 when I do cd /Volumes I get this

drwxr-xrwx 35 root wheel 1258 25 Feb 14:48 ..

drwxrwxrwx 68 rob staff 2380 26 Feb 13:03 AS Samples

drwxrwxr-x@ 68 root admin 2380 25 Feb 13:05 Snow leopard backup

drwx------ 1 rob staff 1452 26 Feb 10:03 Photobackup

drwxr-xr-x@ 1 rob staff 28672 2 Sep 22:21 Untitled

lrwxr-xr-x 1 root admin 1 26 Feb 09:12 mac pro -> /



my staticsync settings in config.php are




#StaticSync settings

 

$syncdir="Macintosh\HD/Photobackup/test";

$nogo="[folder1]";

$staticsync_autotheme=false;

$staticsync_folder_structure=false;

$staticsync_extension_mapping_default=1;

$staticsync_extension_mapping[3]=array("mov","3gp","avi","mpg","mp4","flv");

$staticsync_extension_mapping[4]=array("flv");

$staticsync_title_includes_path=false;

$staticsync_ingest=false;

$staticsync_alternatives_suffix="_alternatives";

$staticsync_prefer_embedded_title = true;

I read the link that Allison sugested but that's beyond my skill level, and I could not troubleshoot it If it went wrong.


(drwx------ 1 rob staff 1452 26 Feb 10:03 Photobackup ) could this be a permissions issue

I notice that the mount does not have root access where all the internal disks do ?

thanks again for your help

Rob

Robert Damrau

unread,
Feb 26, 2015, 8:50:59 AM2/26/15
to resour...@googlegroups.com
If you are able to cd /Volumes/Photobackup  i suspect $syncdir should be '/Volumes/Photobackup/test' just as the system sees your path.

Jon Bergh

unread,
Feb 26, 2015, 9:14:50 AM2/26/15
to resour...@googlegroups.com

Ok, your "Photobackup" is there, so your mounting is good!

Looking at your output of ls /Volumes the next thing I would do is fix permissions... You're the owner and group/everyone has zero acces.

I would try cracking that wide open with:
sudo chmod -r 777 /Volumes/Photobackup

You can always go back later and refine those permissions.

Perhaps someone else on the list can comment on best practices for tightening up a mounted volume with RS data on it.

Thanks.
-jon

Rob Warner

unread,
Feb 26, 2015, 9:19:10 AM2/26/15
to resour...@googlegroups.com
jon,
just tried this got this error


Unable to change file mode on /Volumes/Photobackup: Permission denied

Jon Bergh

unread,
Feb 26, 2015, 9:36:13 AM2/26/15
to resour...@googlegroups.com
Ah! You need to do that from the NAS admin tool... Do you have admin access???

Thanks.
-jon

Rob Warner

unread,
Feb 26, 2015, 9:41:59 AM2/26/15
to resour...@googlegroups.com
yes I changed all permissions on the shared volume photobackup to read/write

Rob Warner

unread,
Feb 26, 2015, 11:33:08 AM2/26/15
to resour...@googlegroups.com
how can I tell that the php in MAMP is working when called from terminal?
would it be easier to just get rid of MAMP and install everything strait into YOSEMITE?

thanks
Rob

Jon Bergh

unread,
Feb 26, 2015, 12:05:59 PM2/26/15
to resour...@googlegroups.com
Isn't there a link to a php info page from the MAMP start page?

Silly question, but you launched MAMP.app and you started the Apache & MySQL servers? There's a button to take you to the start page too, where you should see a bunch of status/info


Thanks.
-jon

Rob Warner

unread,
Feb 26, 2015, 2:17:33 PM2/26/15
to resour...@googlegroups.com
I don't think my problem has to do with the path name in the config.php
as I've created test folders on other disks and even in the MAMP folder itself,
and always get the same error, ( line 84 of DB.php which is $db=mysqli_connect($mysql_server,$mysql_username,$mysql_password,$mysql_db);    no matter what path I'm using.

this is driving me crazy :-(

Rob



Robert Damrau

unread,
Feb 26, 2015, 3:00:15 PM2/26/15
to resour...@googlegroups.com
Can you actually access your mysql db (e.g. via phpmyadmin)?
What is the output of phpinfo? Can you create a file phpinfo.php in your webroot (e.g. /Applications/mampstack-5.4.37-0/apps/resourcespace/htdocs/) and add
<?php phpinfo();
save it, then access is via browser (e.g. http://localhost/phpinfo.php).

You can paste the output in a pastebin and post the link here because it should be quite long.

Rob Warner

unread,
Feb 26, 2015, 4:12:06 PM2/26/15
to resour...@googlegroups.com
Robert, I can get to mysql db via phpmyadmin through the mamp page,
but i could not access phpinfo.php from my browser, only from terminal 
here's the pastebin link http://pastebin.com/y0qBUU5y

hope you can shed some light on this ;-)

Rob

Allison Stec

unread,
Feb 26, 2015, 4:45:53 PM2/26/15
to ResourceSpace
The sockets showing in that phpinfo don't match what MAMP's website shows for location. Could this be an issue with having multiple installs of mysql?

In the terminal, if you type "which mysql" what is the path that is returned? Is it the same path as MAMP's mysql? (Their site shows /Applications/MAMP/tmp/mysql.sock)

Allison Stec
Asset Management Specialist
Colorhythm
http://www.colorhythm.com

Main Office: +1 415-399-9921
Fax: +1 415-399-9928

as...@colorhythm.com

Rob Warner

unread,
Feb 26, 2015, 5:12:12 PM2/26/15
to resour...@googlegroups.com
Allison,
I typed which mysql in terminal and nothing happend, I'm pretty sure I don't have multiple installs of mysql on this machine as it's a clean install and I don't think Yosemite comes with mysql per-configured

Jon Bergh

unread,
Feb 26, 2015, 5:59:54 PM2/26/15
to resour...@googlegroups.com
 Your phpinfo...

Here's where I see inconsistencies with my setup... First, your php is old... Is this a freshly downloaded version of MAMP?

Second, like Alison said, your MySQL socket path is different than what I believe it should be.

You could trash your MAMP folder, download a fresh copy & light it up again.

Also, you should be using MAMP and not MAMP PRO at this stage in the game.

Honestly it shouldn't be this difficult... That's the beauty of MAMP!!!

Hang in there I think it's going to wind up being something silly!

Thanks.
Thanks.
-jon

Robert Damrau

unread,
Feb 27, 2015, 4:12:32 AM2/27/15
to resour...@googlegroups.com
I think the problem you are running into is that you have two installations of apache/php on your system. OS X 10.10 comes with apache enabled and php version 5.5.14.
So the phpinfo you posted is probably from the os x version.
To run the mamp php via terminal you have to call it explicitly (e.g. ' /Applications/mampstack-5.4.37-0/bin/php/php5.4.37/bin php -v') or better add the mamp php path to your system PATH to tell the system to use that php version (see http://stackoverflow.com/questions/4145667/how-to-override-the-path-of-php-to-use-the-mamp-path).


Rob Warner

unread,
Feb 27, 2015, 12:03:26 PM2/27/15
to resour...@googlegroups.com
I finally managed to get StaticSync working, Robert correctly identified the issue, terminal wasn't using the MAMP path, I reinstalled MAMP and RS
I'm so grateful to everyone that's helped me solve this,as RS is fantastic,
So thank you,Robert, Allison, Jon and David. :-)

however , I have a new problem, I cant access the new install from any other machine on the LAN,( windows/mac/Linux machines)
I have had no problems with this before and have always been able to reach RS on localhost:8888/ResourceSpace.
I think the permissions are set correctly on the mac

any thoughts?

Thanks

Rob
Reply all
Reply to author
Forward
0 new messages