Comments (6)
I could not reproduce this error. Please provide more info like your exact
configuration script, the debug/error log and what `ls -al /bin/sh' yields. I
changed the example tough so it should now be compatible with 'dash' which is
the default shell on my system.
Original comment by [email protected]
on 30 Sep 2011 at 12:23
- Changed state: WorksForMe
from lsyncd.
configuration file:
settings = {
nodaemon = true,
}
bash = {
delay = 0,
maxProcesses = 3,
onCreate = "echo creat ^sourcePathname ^targetPathname",
onModify = "echo mod ^sourcePathname ^targetPathname",
onDelete = "echo del ^targetPathname",
onMove = "echo move ^o.targetPathname ^d.targetPathname",
-- onStartup = [[if [ "$(ls -A ^source)" ]; then cp -r ^source* ^target;
fi]],
}
sync{bash, source="/home/lonewolf/teste1", targetDir="/home/lonewolf/teste2"}
ls -al /bin/sh
lrwxrwxrwx 1 root root 4 Jan 25 2011 /bin/sh -> bash
a simple touch /home/lonewolf/teste1/test triggers the error
debug log:
kernels clocks_per_sec=100
Call: configure()
Inotify: inotify fd = 3
Call: initialize()
13:28:22 FWrite: translated [[echo creat ^sourcePathname ^target]] to
function(event)
log("Normal", "Event " .. event.etype ..
[[ spawns shell 'echo creat ]]..event.sourcePathname..[[ ]]..event.target..[[']])
spawnShell(event, [[echo creat "$1" "$2"]],
event.sourcePathname,
event.target)
end
13:28:22 Function: Inotify.addWatch(/home/lonewolf/teste1/, (true), (nil),
(nil))
13:28:22 Inotify: addwatch(/home/lonewolf/teste1/)->1
13:28:22 Call: getAlarm()
13:28:22 Alarm: runner.getAlarm returns: (true)
13:28:22 Masterloop: immediately handling delays.
13:28:22 Call: cycle()
13:28:22 Function: invokeActions('Sync1',(Timestamp: 4634745.99))
13:28:22 Call: getAlarm()
13:28:22 Alarm: runner.getAlarm returns: (false)
13:28:22 Masterloop: going into select (no timeout).
13:28:47 Call: inotifyEvent()
13:28:47 Inotify: got event Create test(1)
13:28:47 Function: delay(Sync1, Create, /test, (nil))
13:28:47 Delay: New Create:/test
13:28:47 Call: inotifyEvent()
13:28:47 Inotify: got event Attrib test(1)
13:28:47 Function: delay(Sync1, Attrib, /test, (nil))
13:28:47 Delay: Attrib:/test absorbed by Create:/test
13:28:47 Call: inotifyEvent()
13:28:47 Inotify: got event Modify test(1)
13:28:47 Function: delay(Sync1, Modify, /test, (nil))
13:28:47 Delay: Modify:/test absorbed by Create:/test
13:28:47 Call: cycle()
13:28:47 Function: invokeActions('Sync1',(Timestamp: 4634770.63))
13:28:47 Error: IN LUA: [string "return function(event)..."]:3: attempt to
concatenate field 'target' (a nil value)
13:28:47 Error: Backtrace 1 :[string "return function(event)..."]:3
13:28:47 Error: Backtrace 2 :/usr/lib64/lsyncd/lsyncd.lua:3715
13:28:47 Error: Backtrace 3 :/usr/lib64/lsyncd/lsyncd.lua:1473
13:28:47 Error: Backtrace 4 :/usr/lib64/lsyncd/lsyncd.lua:2597
Original comment by [email protected]
on 30 Sep 2011 at 12:29
from lsyncd.
The call should be
sync{bash, source="/home/lonewolf/teste1", target="/home/lonewolf/teste2"}
not targetDir.
Sorry it doesn't complain more early
BTW direct operation is now built into Lsyncd already as 'default.direct'.
Original comment by [email protected]
on 30 Sep 2011 at 1:01
- Changed state: New
from lsyncd.
Its working now, in my opinion you should put a complete example for each
layer, it would make it easier for who is starting to use it.
Original comment by [email protected]
on 30 Sep 2011 at 1:31
from lsyncd.
will do.
Original comment by [email protected]
on 30 Sep 2011 at 1:51
from lsyncd.
Your issue has been moved to https://github.com/axkibe/lsyncd/issues
Original comment by [email protected]
on 16 Nov 2011 at 3:58
from lsyncd.
Related Issues (20)
- lsyncd spinning 100% CPU, writing "Normal: waiting for 1 more child processes" indefinitely to the log HOT 5
- Why only -lts option as argument to rsync HOT 5
- rsyncOps in documentation should be rsyncOpts HOT 4
- lsyncd crashes when it gets a notification from kernel HOT 2
- maxDelays doesn't seem to work HOT 6
- initial sync is too agressive HOT 1
- rsyncOpts should be able to override "--delete" too HOT 3
- Ubuntu installation ./configure finding lua HOT 1
- lsyncd on arm system not finding getConfig() HOT 2
- lsync dies after initial sync HOT 18
- Compilation Errors on Solaris 11 Express HOT 2
- lsyncd ignores "--filter" command in rsyncOpts for rsyncssh (and maybe rsync) HOT 3
- Thousands of log messages: "Normal: waiting for 1 more child processes." HOT 4
- User and Group ownership not preserved HOT 4
- Bi-directional sync (possibly with unison?) HOT 3
- ERROR: Connection to remote host failed. HOT 2
- Treat rsync exit code 13 as temporary problem HOT 1
- tried to implement the group permission example using octal notation instead of "g+rw", lsyncd status immediately becomes: lsyncd dead but pid file exists HOT 5
- Fails to make on FreeBSD 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lsyncd.