|
View:
New views
11 Messages
—
Rating Filter:
Alert me
|
|
|
cacherl memcached app startup problem questionI am not sure what the problem is. Mnesia directory actually gets
created at /var/mensia/cacherl@... but there is no content. Is this something to do with disc_copies and any reason for using disc_copies rather than ram_copies? Another question, does cacherl work with mysql memcached engine? [a@mybox cacherl]# ./start.sh Erlang (BEAM) emulator version 5.6.1 [source] [smp:2] [async-threads:30] [hipe] [kernel-poll:true] Eshell V5.6.1 (abort with ^G) (cacherl@...)1> =INFO REPORT==== 30-May-2008::17:16:51 === Creating mnesia table ns_default =SUPERVISOR REPORT==== 30-May-2008::17:16:51 === Supervisor: {local,memcached} Context: start_error Reason: {{badmatch, {aborted, {bad_type,ns_default,disc_copies, 'cacherl@...'}}}, [{memcached_mnesia,init_mnesia_table,2}, {memcached_mnesia,init,1}, {gen_server,init_it,6}, {proc_lib,init_p,5}]} Offender: [{pid,undefined}, {name,memcached_mnesia}, {mfa,{memcached_mnesia,start_link,[]}}, {restart_type,permanent}, {shutdown,2000}, {child_type,worker}] =CRASH REPORT==== 30-May-2008::17:16:51 === crasher: pid: <0.69.0> registered_name: [] exception exit: {shutdown,{memcached,start,[normal,[]]}} in function application_master:init/4 initial call: application_master:init(<0.6.0>,<0.68.0>, {appl_data,memcached, [memcached,memcached_mnesia], undefined, {memcached,[]}, [memcached,memcached_mnesia, memcached_stats,memcached_util, memcached_purge,memcached_reader], [],infinity,infinity}, normal) ancestors: [<0.68.0>] messages: [{'EXIT',<0.70.0>,normal}] links: [<0.68.0>,<0.6.0>] dictionary: [] trap_exit: true status: running heap_size: 377 stack_size: 23 reductions: 87 neighbours: =INFO REPORT==== 30-May-2008::17:16:51 === application: memcached exited: {shutdown,{memcached,start,[normal,[]]}} type: temporary =INFO REPORT==== 30-May-2008::17:16:51 === started TCP listener on 0.0.0.0:11311 -- rk That which we persist in doing becomes easier for us to do; not that the nature of the thing itself is changed, but that our power to do is increased. -Ralph Waldo Emerson _______________________________________________ erlang-questions mailing list erlang-questions@... http://www.erlang.org/mailman/listinfo/erlang-questions |
|
|
Re: cacherl memcached app startup problem questionOn Sat, May 31, 2008 at 12:50 AM, db <masterofquestions@...> wrote:
> I am not sure what the problem is. Mnesia directory actually gets > created at /var/mensia/cacherl@... but there is no content. > Is this something to do with disc_copies and any reason for using > disc_copies rather than ram_copies? Another question, does cacherl > work with mysql memcached engine? > > [a@mybox cacherl]# ./start.sh > Erlang (BEAM) emulator version 5.6.1 [source] [smp:2] > [async-threads:30] [hipe] [kernel-poll:true] > > Eshell V5.6.1 (abort with ^G) > (cacherl@...)1> > =INFO REPORT==== 30-May-2008::17:16:51 === > Creating mnesia table ns_default > > =SUPERVISOR REPORT==== 30-May-2008::17:16:51 === > Supervisor: {local,memcached} > Context: start_error > Reason: {{badmatch, > {aborted, > {bad_type,ns_default,disc_copies, > 'cacherl@...'}}}, > [{memcached_mnesia,init_mnesia_table,2}, > {memcached_mnesia,init,1}, > {gen_server,init_it,6}, > {proc_lib,init_p,5}]} > Offender: [{pid,undefined}, > {name,memcached_mnesia}, > {mfa,{memcached_mnesia,start_link,[]}}, > {restart_type,permanent}, > {shutdown,2000}, > {child_type,worker}] > > > =CRASH REPORT==== 30-May-2008::17:16:51 === > crasher: > pid: <0.69.0> > registered_name: [] > exception exit: {shutdown,{memcached,start,[normal,[]]}} > in function application_master:init/4 > initial call: application_master:init(<0.6.0>,<0.68.0>, > {appl_data,memcached, > [memcached,memcached_mnesia], > undefined, > {memcached,[]}, > [memcached,memcached_mnesia, > memcached_stats,memcached_util, > memcached_purge,memcached_reader], > [],infinity,infinity}, > normal) > ancestors: [<0.68.0>] > messages: [{'EXIT',<0.70.0>,normal}] > links: [<0.68.0>,<0.6.0>] > dictionary: [] > trap_exit: true > status: running > heap_size: 377 > stack_size: 23 > reductions: 87 > neighbours: > > =INFO REPORT==== 30-May-2008::17:16:51 === > application: memcached > exited: {shutdown,{memcached,start,[normal,[]]}} > type: temporary > > =INFO REPORT==== 30-May-2008::17:16:51 === > started TCP listener on 0.0.0.0:11311 > > > -- > rk > > That which we persist in doing becomes easier for us to do; not that > the nature of the thing itself is changed, but that our power to do is > increased. > -Ralph Waldo Emerson > _______________________________________________ > erlang-questions mailing list > erlang-questions@... > http://www.erlang.org/mailman/listinfo/erlang-questions > What system do you use? Is this Cygwin/WinXP? Anthony Kong had exacly the same problem on Cygwin/WinXP and as far as i know was unable to find the source. Anthony, may you comment on this issue? Having two similar cases it would be easier to cope with this problem. > Another question, does cacherl > work with mysql memcached engine? I've never worked with mysql memcached engine, but as an answer i'll quote myself: Cacherl is fully compatible with original memcached, hence you can just replace your memcached with cacherl and it should work out of the box, regardless language your application is written in and libraries it uses. Hence it will probably work :) Best regards, -- Gleb Peregud http://gleber.pl/ Every minute is to be grasped. Time waits for nobody. -- Inscription on a Zen Gong _______________________________________________ erlang-questions mailing list erlang-questions@... http://www.erlang.org/mailman/listinfo/erlang-questions |
|
|
Re: cacherl memcached app startup problem questionfedora 8.
On Sat, May 31, 2008 at 6:00 AM, Gleb Peregud <gleber.p@...> wrote: > On Sat, May 31, 2008 at 12:50 AM, db <masterofquestions@...> wrote: >> I am not sure what the problem is. Mnesia directory actually gets >> created at /var/mensia/cacherl@... but there is no content. >> Is this something to do with disc_copies and any reason for using >> disc_copies rather than ram_copies? Another question, does cacherl >> work with mysql memcached engine? >> >> [a@mybox cacherl]# ./start.sh >> Erlang (BEAM) emulator version 5.6.1 [source] [smp:2] >> [async-threads:30] [hipe] [kernel-poll:true] >> >> Eshell V5.6.1 (abort with ^G) >> (cacherl@...)1> >> =INFO REPORT==== 30-May-2008::17:16:51 === >> Creating mnesia table ns_default >> >> =SUPERVISOR REPORT==== 30-May-2008::17:16:51 === >> Supervisor: {local,memcached} >> Context: start_error >> Reason: {{badmatch, >> {aborted, >> {bad_type,ns_default,disc_copies, >> 'cacherl@...'}}}, >> [{memcached_mnesia,init_mnesia_table,2}, >> {memcached_mnesia,init,1}, >> {gen_server,init_it,6}, >> {proc_lib,init_p,5}]} >> Offender: [{pid,undefined}, >> {name,memcached_mnesia}, >> {mfa,{memcached_mnesia,start_link,[]}}, >> {restart_type,permanent}, >> {shutdown,2000}, >> {child_type,worker}] >> >> >> =CRASH REPORT==== 30-May-2008::17:16:51 === >> crasher: >> pid: <0.69.0> >> registered_name: [] >> exception exit: {shutdown,{memcached,start,[normal,[]]}} >> in function application_master:init/4 >> initial call: application_master:init(<0.6.0>,<0.68.0>, >> {appl_data,memcached, >> [memcached,memcached_mnesia], >> undefined, >> {memcached,[]}, >> [memcached,memcached_mnesia, >> memcached_stats,memcached_util, >> memcached_purge,memcached_reader], >> [],infinity,infinity}, >> normal) >> ancestors: [<0.68.0>] >> messages: [{'EXIT',<0.70.0>,normal}] >> links: [<0.68.0>,<0.6.0>] >> dictionary: [] >> trap_exit: true >> status: running >> heap_size: 377 >> stack_size: 23 >> reductions: 87 >> neighbours: >> >> =INFO REPORT==== 30-May-2008::17:16:51 === >> application: memcached >> exited: {shutdown,{memcached,start,[normal,[]]}} >> type: temporary >> >> =INFO REPORT==== 30-May-2008::17:16:51 === >> started TCP listener on 0.0.0.0:11311 >> >> >> -- >> rk >> >> That which we persist in doing becomes easier for us to do; not that >> the nature of the thing itself is changed, but that our power to do is >> increased. >> -Ralph Waldo Emerson >> _______________________________________________ >> erlang-questions mailing list >> erlang-questions@... >> http://www.erlang.org/mailman/listinfo/erlang-questions >> > Hello, > > What system do you use? Is this Cygwin/WinXP? Anthony Kong had exacly > the same problem on Cygwin/WinXP and as far as i know was unable to > find the source. Anthony, may you comment on this issue? Having two > similar cases it would be easier to cope with this problem. > >> Another question, does cacherl >> work with mysql memcached engine? > I've never worked with mysql memcached engine, but as an answer i'll > quote myself: > > Cacherl is fully compatible with original memcached, hence you can > just replace your memcached with cacherl and it should work out of the > box, regardless language your application is written in and libraries > it uses. > > Hence it will probably work :) > > > Best regards, > -- > Gleb Peregud > http://gleber.pl/ > > Every minute is to be grasped. > Time waits for nobody. > -- Inscription on a Zen Gong > -- rk That which we persist in doing becomes easier for us to do; not that the nature of the thing itself is changed, but that our power to do is increased. -Ralph Waldo Emerson _______________________________________________ erlang-questions mailing list erlang-questions@... http://www.erlang.org/mailman/listinfo/erlang-questions |
|
|
Re: cacherl memcached app startup problem questionI changed the disc_copies to ram_copies. Seem to work now. I have
another question about tcp listener on 0.0.0.0:11311 =INFO REPORT==== 30-May-2008::17:16:51 === started TCP listener on 0.0.0.0:11311 Why is tcp listener on 0.0.0.0:11311 even though cacherl's memcached is on XX.XX.XX.XX:11311? -- rk That which we persist in doing becomes easier for us to do; not that the nature of the thing itself is changed, but that our power to do is increased. -Ralph Waldo Emerson _______________________________________________ erlang-questions mailing list erlang-questions@... http://www.erlang.org/mailman/listinfo/erlang-questions |
|
|
Re: cacherl memcached app startup problem questionIgnore the previous message I was too hasty.
On Mon, Jun 2, 2008 at 10:55 AM, db <masterofquestions@...> wrote: > I changed the disc_copies to ram_copies. Seem to work now. I have > another question about tcp listener on 0.0.0.0:11311 > > =INFO REPORT==== 30-May-2008::17:16:51 === > started TCP listener on 0.0.0.0:11311 > > Why is tcp listener on 0.0.0.0:11311 even though cacherl's memcached > is on XX.XX.XX.XX:11311? > > > -- > rk > > That which we persist in doing becomes easier for us to do; not that > the nature of the thing itself is changed, but that our power to do is > increased. > -Ralph Waldo Emerson > -- rk That which we persist in doing becomes easier for us to do; not that the nature of the thing itself is changed, but that our power to do is increased. -Ralph Waldo Emerson _______________________________________________ erlang-questions mailing list erlang-questions@... http://www.erlang.org/mailman/listinfo/erlang-questions |
|
|
Re: cacherl memcached app startup problem questionAny reason why memcached_client doesn't use a gen_server? Seems like
I have to manually keep track of the states. -- rk That which we persist in doing becomes easier for us to do; not that the nature of the thing itself is changed, but that our power to do is increased. -Ralph Waldo Emerson _______________________________________________ erlang-questions mailing list erlang-questions@... http://www.erlang.org/mailman/listinfo/erlang-questions |
|
|
Re: cacherl memcached app startup problem questionI'm not sure what do you mean by this. Maybe because it's just a
client? :) memchached_client.erl is implemented in proper way, by abstracting out internal structures. You just create new client, store it's "handle" (it doesn't matter what is inside this structure) and pass this "handle" to other API functions. I was not able to reproduce errors mentioned in your first mail on my system and i have no idea what is going on. Do this problem persists? Were you able to fix it? Have you checked permissions of /var/mnesia/* directories? On Tue, Jun 3, 2008 at 3:19 AM, db <masterofquestions@...> wrote: > Any reason why memcached_client doesn't use a gen_server? Seems like > I have to manually keep track of the states. > > -- > rk > > That which we persist in doing becomes easier for us to do; not that > the nature of the thing itself is changed, but that our power to do is > increased. > -Ralph Waldo Emerson > -- Gleb Peregud http://gleber.pl/ Every minute is to be grasped. Time waits for nobody. -- Inscription on a Zen Gong _______________________________________________ erlang-questions mailing list erlang-questions@... http://www.erlang.org/mailman/listinfo/erlang-questions |
|
|
Re: cacherl memcached app startup problem questionOn Sat, May 31, 2008 at 12:50 AM, db <masterofquestions@...> wrote:
> I am not sure what the problem is. Mnesia directory actually gets > created at /var/mensia/cacherl@... but there is no content. > Is this something to do with disc_copies and any reason for using > disc_copies rather than ram_copies? Another question, does cacherl > work with mysql memcached engine? > > [a@mybox cacherl]# ./start.sh > Erlang (BEAM) emulator version 5.6.1 [source] [smp:2] > [async-threads:30] [hipe] [kernel-poll:true] > > Eshell V5.6.1 (abort with ^G) > (cacherl@...)1> > =INFO REPORT==== 30-May-2008::17:16:51 === > Creating mnesia table ns_default > > =SUPERVISOR REPORT==== 30-May-2008::17:16:51 === > Supervisor: {local,memcached} > Context: start_error > Reason: {{badmatch, > {aborted, > {bad_type,ns_default,disc_copies, > 'cacherl@...'}}}, > [{memcached_mnesia,init_mnesia_table,2}, > {memcached_mnesia,init,1}, > {gen_server,init_it,6}, > {proc_lib,init_p,5}]} > Offender: [{pid,undefined}, > {name,memcached_mnesia}, > {mfa,{memcached_mnesia,start_link,[]}}, > {restart_type,permanent}, > {shutdown,2000}, > {child_type,worker}] > > > =CRASH REPORT==== 30-May-2008::17:16:51 === > crasher: > pid: <0.69.0> > registered_name: [] > exception exit: {shutdown,{memcached,start,[normal,[]]}} > in function application_master:init/4 > initial call: application_master:init(<0.6.0>,<0.68.0>, > {appl_data,memcached, > [memcached,memcached_mnesia], > undefined, > {memcached,[]}, > [memcached,memcached_mnesia, > memcached_stats,memcached_util, > memcached_purge,memcached_reader], > [],infinity,infinity}, > normal) > ancestors: [<0.68.0>] > messages: [{'EXIT',<0.70.0>,normal}] > links: [<0.68.0>,<0.6.0>] > dictionary: [] > trap_exit: true > status: running > heap_size: 377 > stack_size: 23 > reductions: 87 > neighbours: > > =INFO REPORT==== 30-May-2008::17:16:51 === > application: memcached > exited: {shutdown,{memcached,start,[normal,[]]}} > type: temporary > > =INFO REPORT==== 30-May-2008::17:16:51 === > started TCP listener on 0.0.0.0:11311 > > -- > rk > > That which we persist in doing becomes easier for us to do; not that > the nature of the thing itself is changed, but that our power to do is > increased. > -Ralph Waldo Emerson > _______________________________________________ > erlang-questions mailing list > erlang-questions@... > http://www.erlang.org/mailman/listinfo/erlang-questions > After power failure i've stumbled upon exacly the same problem. This problem occures because of mnesia schema is created with mnesia:start() (though it is ram-based schema) and not with mnesia:create_schema([node()]). The solution is quite simple, though was not easy to find for me (i'm far from expert in mnesia). To successfully start cacherl one have to do the following: cd path/to/cacherl make make create-schema ./start.sh Hope this helps :) -- Gleb Peregud http://gleber.pl/ Every minute is to be grasped. Time waits for nobody. -- Inscription on a Zen Gong _______________________________________________ erlang-questions mailing list erlang-questions@... http://www.erlang.org/mailman/listinfo/erlang-questions |
|
|
Re: cacherl memcached app startup problem questionDoes cacherl data get distributed among more than one mnesia nodes so
that when one of the nodes go down, you still have your complete data and no data is lost? -- rk That which we persist in doing becomes easier for us to do; not that the nature of the thing itself is changed, but that our power to do is increased. -Ralph Waldo Emerson _______________________________________________ erlang-questions mailing list erlang-questions@... http://www.erlang.org/mailman/listinfo/erlang-questions |
|
|
Re: cacherl memcached app startup problem questionYes, it is distributed, but it is not automatic - you have to tweak it
a little bit. I'll try to write a little tutorial about it when i'll be in front of my computer On 7/8/08, db <masterofquestions@...> wrote: > Does cacherl data get distributed among more than one mnesia nodes so > that when one of the nodes go down, you still have your complete data > and no data is lost? > > > -- > rk > > That which we persist in doing becomes easier for us to do; not that > the nature of the thing itself is changed, but that our power to do is > increased. > -Ralph Waldo Emerson > -- Sent from Gmail for mobile | mobile.google.com Gleb Peregud http://gleber.pl/ Every minute is to be grasped. Time waits for nobody. -- Inscription on a Zen Gong _______________________________________________ erlang-questions mailing list erlang-questions@... http://www.erlang.org/mailman/listinfo/erlang-questions |
|
|
Re: cacherl memcached app startup problem questiondoes cacherl support 64bit integer in its incr() function?
-- rk That which we persist in doing becomes easier for us to do; not that the nature of the thing itself is changed, but that our power to do is increased. -Ralph Waldo Emerson _______________________________________________ erlang-questions mailing list erlang-questions@... http://www.erlang.org/mailman/listinfo/erlang-questions |
| Free Forum Powered by Nabble | Forum Help |