Rc parameter help

hi guys,

I’m trying rc parameter but this is what I have:
2018/10/29 00:59:37 Failed to rc: failed to list: connection failed: Post http://localhost:5572/rc/list: dial tcp [::1]:5572: connectex: Impossibile stabilire la connessione. Rifiuto persistente del computer di destinazione.

what can be?

What’s your mount command? Looks like it isn’t listening on the right port.

Hi,
a simple
rclone rc

What’s your actual running mount command?

felix@gemini:~/logs$ ps -ef | grep rclone
felix     8261     1  0 17:01 ?        00:00:00 /usr/bin/rclone mount gcrypt: /GD --allow-other --bind 192.168.1.30 --dir-cache-time 72h --drive-chunk-size 32M --log-level INFO --log-file /home/felix/logs/rclone.log --umask 002 --vfs-read-chunk-size 128M --vfs-read-chunk-size-limit off --rc

My questions fits in here pretty well, I guess.

I am wondering if it is possible to use the RC to change the log level from INFO to DEBUG for instance and if it’s also possible to write it to a log file without having to remount the complete mount.

Thanks!

All the available commands are here:

felix@gemini:~$ rclone rc rc/list
{
	"commands": [
		{
			"Help": "This sets the bandwidth limit to that passed in.\n\nEg\n\n    rclone rc core/bwlimit rate=1M\n    rclone rc core/bwlimit rate=off\n\nThe format of the parameter is exactly the same as passed to --bwlimit\nexcept only one bandwidth may be specified.",
			"Path": "core/bwlimit",
			"Title": "Set the bandwidth limit."
		},
		{
			"Help": "This tells the go runtime to do a garbage collection run.  It isn't\nnecessary to call this normally, but it can be useful for debugging\nmemory problems.",
			"Path": "core/gc",
			"Title": "Runs a garbage collection."
		},
		{
			"Help": "This returns the memory statistics of the running program.  What the values mean\nare explained in the go docs: https://golang.org/pkg/runtime/#MemStats\n\nThe most interesting values for most people are:\n\n* HeapAlloc: This is the amount of memory rclone is actually using\n* HeapSys: This is the amount of memory rclone has obtained from the OS\n* Sys: this is the total amount of memory requested from the OS\n  * It is virtual memory so may include unused memory",
			"Path": "core/memstats",
			"Title": "Returns the memory statistics"
		},
		{
			"Help": "This returns PID of current process.\nUseful for stopping rclone process.",
			"Path": "core/pid",
			"Title": "Return PID of current process"
		},
		{
			"Help": "This returns all available stats\n\n\trclone rc core/stats\n\nReturns the following values:\n\n```\n{\n\t\"speed\": average speed in bytes/sec since start of the process,\n\t\"bytes\": total transferred bytes since the start of the process,\n\t\"errors\": number of errors,\n\t\"fatalError\": whether there has been at least one FatalError,\n\t\"retryError\": whether there has been at least one non-NoRetryError,\n\t\"checks\": number of checked files,\n\t\"transfers\": number of transferred files,\n\t\"deletes\" : number of deleted files,\n\t\"elapsedTime\": time in seconds since the start of the process,\n\t\"lastError\": last occurred error,\n\t\"transferring\": an array of currently active file transfers:\n\t\t[\n\t\t\t{\n\t\t\t\t\"bytes\": total transferred bytes for this file,\n\t\t\t\t\"eta\": estimated time in seconds until file transfer completion\n\t\t\t\t\"name\": name of the file,\n\t\t\t\t\"percentage\": progress of the file transfer in percent,\n\t\t\t\t\"speed\": speed in bytes/sec,\n\t\t\t\t\"speedAvg\": speed in bytes/sec as an exponentially weighted moving average,\n\t\t\t\t\"size\": size of the file in bytes\n\t\t\t}\n\t\t],\n\t\"checking\": an array of names of currently active file checks\n\t\t[]\n}\n```\nValues for \"transferring\", \"checking\" and \"lastError\" are only assigned if data is available.\nThe value for \"eta\" is null if an eta cannot be determined.",
			"Path": "core/stats",
			"Title": "Returns stats about current transfers."
		},
		{
			"Help": "This returns an error with the input as part of its error string.\nUseful for testing error handling.",
			"Path": "rc/error",
			"Title": "This returns an error"
		},
		{
			"Help": "This lists all the registered remote control commands as a JSON map in\nthe commands response.",
			"Path": "rc/list",
			"Title": "List all the registered remote control commands"
		},
		{
			"Help": "This echoes the input parameters to the output parameters for testing\npurposes.  It can be used to check that rclone is still alive and to\ncheck that parameter passing is working properly.",
			"Path": "rc/noop",
			"Title": "Echo the input to the output parameters"
		},
		{
			"Help": "This forgets the paths in the directory cache causing them to be\nre-read from the remote when needed.\n\nIf no paths are passed in then it will forget all the paths in the\ndirectory cache.\n\n    rclone rc vfs/forget\n\nOtherwise pass files or dirs in as file=path or dir=path.  Any\nparameter key starting with file will forget that file and any\nstarting with dir will forget that dir, eg\n\n    rclone rc vfs/forget file=hello file2=goodbye dir=home/junk",
			"Path": "vfs/forget",
			"Title": "Forget files or directories in the directory cache."
		},
		{
			"Help": "Without any parameter given this returns the current status of the\npoll-interval setting.\n\nWhen the interval=duration parameter is set, the poll-interval value\nis updated and the polling function is notified.\nSetting interval=0 disables poll-interval.\n\n    rclone rc vfs/poll-interval interval=5m\n\nThe timeout=duration parameter can be used to specify a time to wait\nfor the current poll function to apply the new value.\nIf timeout is less or equal 0, which is the default, wait indefinitely.\n\nThe new poll-interval value will only be active when the timeout is\nnot reached.\n\nIf poll-interval is updated or disabled temporarily, some changes\nmight not get picked up by the polling function, depending on the\nused remote.",
			"Path": "vfs/poll-interval",
			"Title": "Get the status or update the value of the poll-interval option."
		},
		{
			"Help": "This reads the directories for the specified paths and freshens the\ndirectory cache.\n\nIf no paths are passed in then it will refresh the root directory.\n\n    rclone rc vfs/refresh\n\nOtherwise pass directories in as dir=path. Any parameter key\nstarting with dir will refresh that directory, eg\n\n    rclone rc vfs/refresh dir=home/junk dir2=data/misc\n\nIf the parameter recursive=true is given the whole directory tree\nwill get refreshed. This refresh will use --fast-list if enabled.",
			"Path": "vfs/refresh",
			"Title": "Refresh the directory cache."
		}
	]
}

You cannot change the log level without remounting it (currently).

1 Like

Thanks mate!

Changing log level and adding logfile would be pretty handy for debug purposes, e.g. creating a logfile for a specific issue.

This might be interesting for Nick (@ncw). :slight_smile:

Changing log level is coming to rc very soon! with config/set - changing logfile will be harder…

1 Like

sorry but I missed a part…
I didn’t run my sync job with --rc parameters… :roll_eyes::roll_eyes:

Happy you got it fixed :smile: