We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

FTP upload path: /var/www/public_html/var/www/... weird? | Forum

Scott
Scott Dec 28 '14
Hi,

I've been having issues with FTP and uploading files via the admin panel. I am running a VPS with Ubuntu+LAMP using vsftpd as my ftp server. I get a successful update message when I update plugins via the admin panel on my site, however the files never actually update. When I review my vsftpd logs, I see the following in the log:

Sat Dec 27 21:46:33 2014 [pid 24513] [userName] FAIL UPLOAD: Client "127.0.0.1", "/var/www/site/public_html/var/www/site/public_html/ow_plugins/slideshow/components/edit_slide.php", 0.00Kbyte/sec
Sat Dec 27 21:46:33 2014 [pid 24513] [userName] FAIL UPLOAD: Client "127.0.0.1", "/var/www/site/public_html/var/www/site/public_html/ow_plugins/slideshow/components/custom_settings.php", 0.00Kbyte/sec
Sat Dec 27 21:46:33 2014 [pid 24513] [userName] FAIL UPLOAD: Client "127.0.0.1", "/var/www/site/public_html/var/www/site/public_html/ow_plugins/slideshow/install.php", 0.00Kbyte/sec

Notice the path name repeating. I recall having this issue prior when I was moving my site from shared hosting to the VPS. When running the site software upgrade, it was looking for the path:

/var/www/site/public_html/var/www/site/public_html/ow_core/

I created these folders to match what it was looking for, as shown:

name@web:/var/log$ ls -l /var/www/site/public_html/var/www/site/public_html/
total 4
drwxrwxr-x 2 www-data webadmins 4096 Dec 27 21:46 ow_core

Whats up with this?


ross Team
ross Dec 30 '14

have you made any changes to the default vsftpd.conf file ?

does the user you login have the right to upload files?

Scott
Scott Jan 28 '15
So, the vsftpd configuration wasn't wrong. Nothing was wrong about anything but Oxwall. I sent the following message to another user who described the same problem, hopefully this can provide troubleshooting steps for others facing a similar issue.

Hey, sorry for not getting back to you. I remember there being an issue that manifested itself as FTP uploads getting messed up due to a repeated "base path". There was a fix to change the functionality of the ftp upload php file, I don't remember where though. My solution was to start from scratch, unfortunately. The avatar upload issue was basically every single type of upload, so avatars, pictures, videos, FTP updates, everything had the repeating path issue I described in the thread.

I started over. The fact I couldn't upload plugins properly even via FTP directly (through an FTP client, not site update) meant many things broke when I installed a new copy of 1.7.2 (update doesn't resolve this problem). The schema of many of the database tables changed when they updated the plugins and site software. I had to change my old database's tables (add columns and populate basic information), then copy the tables to the new database. Took me like four hours. But, it resolved the problem. It was a fun experience to learn from, though.

Sorry I don't have a better answer.