warning: fopen(/qqq-lj.xml) [function.fopen]: failed to open stream: No such file or directory in /home/public_html/modules/ljsync/ljsync_parser.cls.php on line 45.
Could not open file /qqq-lj.xml.

Why? And what can I do?
I can`t create it myself by FTP, coz of permissions.

Comments

noelbush’s picture

Assigned: scild » noelbush
Priority: Critical » Normal

Do you have write access to the "files" directory for your site?

noelbush’s picture

Status: Active » Postponed (maintainer needs more info)
noelbush’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Closing -- I am assuming that this is just a permissions problem for you, which will affect more than just your use of this module.

urix’s picture

I have the same error message.
I set permissions of "sites/default/files/" to 777.
Still no luck.

Maybe, some short documentation on installing and usage colud be useful.

For example, I copied module files, enabled it in Modules admin section, and what next?
Run cron? It gives this message.

thefile’s picture

Status: Closed (fixed) » Active

I have the identical issue.

Apparently I have the correct write rights to sites/default/files because my theme files are in that directory.

Now I have Cross post and Sync installed, and I have a post on my site that got cross-posted to LJ, but none of the comments from either side (website and LJ) are making it over to the other.

lolmaus’s picture

Subscribing. Got the same issue.

warning: fopen(sites/shuriken.lolmaus.ru/files/admin-lj.xml) [function.fopen]: failed to open stream: No such file or directory in /srv/vhosts/drupal/sites/all/modules/ljsync/ljsync_parser.cls.php on line 45.
Could not open file sites/shuriken.lolmaus.ru/files/admin-lj.xml.

Running Drupal on latest Arch Linux with Perl installed.

Permission for 'files' folder is okay.

lolmaus’s picture

SOS!

noelbush’s picture

I have just checked in some updates that should hopefully address this for you. Rather than hard-coding the location of the cache directory for the underlying perl script, this allows you to configure it. When the new release appears, please let me know if your problem is resolved.

renat’s picture

Hello!
Unfortunately I also faced this problem:
* warning: fopen(/home/r/renatbiz/renatbiz/public_html/sites/default/files/uploads/ljsync/ljserver-lj.xml) [function.fopen]: failed to open stream: No such file or directory in /home/r/renatbiz/renatbiz/public_html/sites/all/modules/ljsync/ljsync_parser.cls.php on line 45.
* Could not open file /home/r/renatbiz/renatbiz/public_html/sites/default/files/uploads/ljsync/ljserver-lj.xml.

I grant permissions 777 to /home/r/renatbiz/renatbiz/public_html/sites/default/files/uploads/ljsync/ folder, but neither this, nor manual creation of ljserver-lj.xml file with the same permissions didn't help. I cheked LiveJournal Sync tunings, but as far as there were no new releases since the date of your last post it is not surprising, that I'didn't found any things useful in my situation.

I'll be happy to provide any additional information to fix this problem.
Thank you for your work over this plugin!

DanielJohnston’s picture

Confirming this problem still exists on my setup. There are a few log entries leading up to the failure, and trying to run the initial perl script directly gives the following output:

Can't locate XMLRPC/Lite.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /var/aegir/drupal-6.16/sites/all/modules/ljsync/jbackup.pl line 69.

I can't find the missing package in aptitude, but will update if I do.

lolmaus’s picture

Status: Active » Needs review

Hahaha! DanielJohnston, what a great idea to launch the perl script directly!

The problem is that LJSync lacks some dependencies.

Solution (for Ubuntu):

sudo aptitude install php5-tidy libsoap-lite-perl
sudo apache2ctl restart

Voilà!

noelbush’s picture

Status: Needs review » Fixed

I have updated the documentation to reflect the dependencies.

noelbush’s picture

Status: Fixed » Closed (fixed)

Addressed in release 6.x-1.3