Perforce 2006.1 FTP Plug-in User's Guide
<< Previous Chapter
Installing and Configuring P4FTP
Table of Contents
Index
Perforce on the Web
Next Chapter >>
Perforce and FTP Differences

Chapter 2
Troubleshooting P4FTP

This chapter provides information to help you determine what to do if a P4FTP does not succeed or you do not understand the results of an operation.

Error messages

Cannot make connection to host

Make sure:

Cannot open remote folder

(Dreamweaver) The folder specified as the Host directory in a site's remote configuration does not exist, or the Perforce client specification Host field specifies a computer other than the one where P4FTP is running.

Can't clobber writable file

(Dreamweaver) Verify that your client workspace directory does not reside in your web site's local root, or vice versa.

Error opening local file

You are attempting to get a file when a read-only copy already resides on your computer. (Perforce sets a file's protection to read-only when you do not have the file open for edit.)

Other questions

Why aren't my Dreamweaver files visible in Perforce?

When you use P4FTP to connect Dreamweaver to a Perforce depot, your changes are made when you disconnect from the remote site (choose Site>Disconnect). If you are monitoring changes to the depot using P4Win, for example, refresh its display after you disconnect and your Dreamweaver changes are displayed.

I created a directory using FTP and it disappeared - why?

If you connect to P4FTP using a command-line FTP client and use the MKDIR command to create a directory in a Perforce depot, Perforce removes that directory when you disconnect unless the directory contains files. To ensure that the directory remains, you can use the FTP "put" command to upload a file to it. Note that the file you upload is added to the Perforce depot when your FTP client disconnects from p4ftpd.

My command-line FTP client/Dreamweaver froze after
connecting/prompting for P4FTP - why?

Windows computers: if you started P4FTP from a DOS window, check whether characters have been selected in the startup window. To unselect the characters (and unfreeze the FTP client), click in the window where you started P4FTP and press Enter.

Why do I have .lck files in my workspace/depot?

If you enable Checkin/Checkout, Dreamweaver creates .lck files in your workspace when you check files out and deletes the .lck files when you check files in. However, for Dreamweaver locking to work correctly with P4FTP, you must also enable Dreamweaver locking (specify the -O dwlocking option) when you start p4ftpd. If you do not enable Dreamweaver locking, P4FTP automatically checks in the .lck files along with the associated HTML files.

Fix: restart p4ftpd, specifying the -O dwlocking option. To remove all .lck files from your depot, you can use the p4 obliterate command, but before doing so, be sure to observe all the precaution described in the Perforce System Administrator's Guide.

Using a command-line FTP client

You can use an FTP command-line client to interact with a Perforce depot through P4FTP. P4FTP also supports Perforce-related commands. To display a list of Perforce-related commands, issue one of the following commands:

The following Perforce-related command is supported.

Command
Description

SITE REVERT <full_file_path>

Manually revert a file open for edit


Perforce 2006.1 FTP Plug-in User's Guide
<< Previous Chapter
Installing and Configuring P4FTP
Table of Contents
Index
Perforce on the Web
Next Chapter >>
Perforce and FTP Differences
Please send comments and questions about this manual to [email protected].
Copyright 2001-2006 Perforce Software. All rights reserved.
Last updated: 06/23/06