Warning ftp_chdir error durring upgrade.

While upgrading on the last step I got this warning:



Warning: ftp_chdir() [function.ftp-chdir]: Can’t change directory to /home/unica/public_dev_uc/: No such file or directory in /home/unica/public_dev_uc/var/upgrade/upgrade_2.0.12-2.0.13.tgz/uc_override.php on line 960





Is that anything I should care about?

It sounds like you may have set a non-existent directory in the FTP section of the Upgrade Center settings. I don’t think it will matter you have already done all the other steps of the upgrade, but you should check that the upgrades have been made to the proper directories.



Bob

Well, what does it even use the ftp for? It uploads the files and moves the stuff with the php.



I’m upgrading the svn checkout that’s in ~/public_dev_uc



I did make a mistake, I put to much directory info in the ftp settings. I should have only had:

/public_dev_uc/



I can always revert back to the last commit, I haven’t even commited the upgrade yet.



Though I am wondering why it needs the ftp info and what I missed or what not because of it. I can only thing it wants to put some files with the user’s account rather than apache’s user nobody. But I’m on suPHP so that doesn’t matter.





edit: though I didn’t backup the DB, so I don’t know how it would like me reverting back to 2.0.12 and keeping the same db. Does it keep info about the upgrade in the db? I could always remove that.

[quote name=‘phazei’]Though I am wondering why it needs the ftp info and what I missed or what not because of it. I can only thing it wants to put some files with the user’s account rather than apache’s user nobody. But I’m on suPHP so that doesn’t matter.[/QUOTE]

You pretty much nailed it - people running on DSO setups where the files are owned by a different user and permissions prevent overwriting them. If you are on a suPHP setup, you do not even need to fill out the FTP section - I don’t and have never had an error.



Bob

Hmm, it wouldn’t upgrade for me without the ftp info in there. I was on a DSO setup when CS-Cart was first installed. But that was causing to many problems with SVN checkouts and running it on a development subdomain. I even tried to make a new dev group and added both nobody and my user to it, but CSCart still couldn’t write to the cache with 0774 which I found strange, though I’m not a linux expert or anything close, so maybe nobody is special, hehe.



Does CSC detect that it’s DSO or suPHP and store that somewhere?

[quote name=‘phazei’]Does CSC detect that it’s DSO or suPHP and store that somewhere?[/QUOTE]

Unfortunately, no - based on the default permissions it sets in config.php (777/666), it assumes a DSO setup.



I run in an suPHP environment so I always reset my permissions to 755/644 and 600 on PHP files. I always change the default file permissions in config.php to 755/644/600 (I have modded the code to have the php files in the /var/cache and var/compiled set to 600).



I have never entered any FTP information for the Upgrade Center and it has always worked. Have you checked ownership for your installed files? Maybe they have a different owner which requires the FTP connection to update.



Bob

[quote name=‘jobosales’]Unfortunately, no - based on the default permissions it sets in config.php (777/666), it assumes a DSO setup.



I run in an suPHP environment so I always reset my permissions to 755/644…

[/QUOTE]



Thanks for mentioning that, just updated mine. Otherwise I’d we wondering why I was getting Internal Server Error 500 sometime in the near future :slight_smile: