lscache_prestashop icon indicating copy to clipboard operation
lscache_prestashop copied to clipboard

Added numbers in regex. Enabled hooks like displayNav2.

Open adrianllopis opened this issue 1 year ago • 0 comments

You can't use hooks like displayNav2 because the regex didn't allow numbers

adrianllopis avatar Feb 28 '24 08:02 adrianllopis

The article is not appropriate. So long as the lsmcd process is running on your system, you should be fine. It looks to me like you had everything setup correctly for UDS and your test was a good one. It should have worked. So let's go back to that. Please open a ticket with LiteSpeed and we can work closely on this problem. In particular I'll need root access into your system so I can diagnose your issue and we shouldn't put that kind of info on a public forum like this. You can open a ticket here: https://store.litespeedtech.com/store/submitticket.php?step=2&deptid=2 and make sure that LSMCD is in the subject line and we can help you with the problem. Thanks,

Bob

rperper avatar Aug 24 '22 11:08 rperper

Honestly I prefer to debug that personally. I guess the problem related to SASL over unix socket:

/tmp/lsmcd.log

2022-08-28 19:32:12.748 [ERROR] [PID: 43902] Successful SASL authentication not performed
2022-08-28 19:32:13.665 [ERROR] [PID: 43902] Successful SASL authentication not performed
2022-08-28 19:40:03.525 [ERROR] [PID: 43903] Successful SASL authentication not performed

Debug High Level Log:

2022-08-28 21:38:59.073 [DEBUG] [PID: 12668] Memcache New connection from [0.0.0.0:0]
2022-08-28 21:38:59.073 [DEBUG] [PID: 12668] New connection - reset user
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] MemcacheConn processIncoming pid:12668, addr:0x14a2730, m_bufIncoming size:40
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] Tracing 40 bytes (allocated 178, used 168):
0000: 80010004 08000000 00000010 00010000 ................
0010: 00000000 00000000 00000000 00000000 ................
0020: 74657374 776f726b                  testwork
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] MemcacheConn processIncoming 1
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] MemcacheConn processIncoming 2
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] MemcacheConn processIncoming pid:12668, addr:0x14a2730, 3
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] MemcacheConn processIncoming pid:12668, addr:0x14a2730, 4
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] MemcacheConn processIncoming pid:12668, addr:0x14a2730, 5
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] MemcacheConn processIncoming pid:12668, addr:0x14a2730, 7
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] SASL test, parm for sasl: YES, isAuthenticated: NO, opcode: 1
2022-08-28 21:38:59.074 [ERROR] [PID: 12668] Successful SASL authentication not performed
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] binErrRespond err: 32
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] binRespond, 24 bytes
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] binRespond, 13 bytes
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] SendEx pid: 12668
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] Tracing 37 bytes (allocated 178, used 166):
0000: 81010000 00000020 0000000d 00010000 ....... ........
0010: 00000000 00000000 41757468 20666169 ........Auth fai
0020: 6c757265 2e                         lure.
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] MemcacheConn processIncoming 10
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] Close connection - reset user and other cached stuff
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] memcacheconn::setUser: (null)
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] Conn 0x14a2730 set pHash: (nil)
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] Memcache New connection from [24.0.0.0:0]
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] New connection - reset user
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] MemcacheConn processIncoming pid:12668, addr:0x14a2730, m_bufIncoming size:40
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] Tracing 40 bytes (allocated 178, used 168):
0000: 80010004 08000000 00000010 00020000 ................
0010: 00000000 00000000 00000000 00000000 ................
0020: 74657374 776f726b                  testwork
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] MemcacheConn processIncoming 1
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] MemcacheConn processIncoming 2
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] MemcacheConn processIncoming pid:12668, addr:0x14a2730, 3
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] MemcacheConn processIncoming pid:12668, addr:0x14a2730, 4
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] MemcacheConn processIncoming pid:12668, addr:0x14a2730, 5
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] MemcacheConn processIncoming pid:12668, addr:0x14a2730, 7
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] SASL test, parm for sasl: YES, isAuthenticated: NO, opcode: 1
2022-08-28 21:38:59.074 [ERROR] [PID: 12668] Successful SASL authentication not performed
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] binErrRespond err: 32
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] binRespond, 24 bytes
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] binRespond, 13 bytes
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] SendEx pid: 12668
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] Tracing 37 bytes (allocated 178, used 166):
0000: 81010000 00000020 0000000d 00020000 ....... ........
0010: 00000000 00000000 41757468 20666169 ........Auth fai
0020: 6c757265 2e                         lure.
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] MemcacheConn processIncoming 10
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] Close connection - reset user and other cached stuff
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] memcacheconn::setUser: (null)
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] Conn 0x14a2730 set pHash: (nil)
2022-08-28 21:38:59.074 [DEBUG] [PID: 12667] Memcache New connection from [0.0.0.0:0]
2022-08-28 21:38:59.074 [DEBUG] [PID: 12667] New connection - reset user
2022-08-28 21:38:59.074 [DEBUG] [PID: 12667] MemcacheConn processIncoming pid:12667, addr:0x14a2730, m_bufIncoming size:40
2022-08-28 21:38:59.074 [DEBUG] [PID: 12667] Tracing 40 bytes (allocated 178, used 168):
0000: 80010004 08000000 00000010 00030000 ................
0010: 00000000 00000000 00000000 00000000 ................
0020: 74657374 776f726b                  testwork
2022-08-28 21:38:59.074 [DEBUG] [PID: 12667] MemcacheConn processIncoming 1
2022-08-28 21:38:59.074 [DEBUG] [PID: 12667] MemcacheConn processIncoming 2
2022-08-28 21:38:59.074 [DEBUG] [PID: 12667] MemcacheConn processIncoming pid:12667, addr:0x14a2730, 3
2022-08-28 21:38:59.074 [DEBUG] [PID: 12667] MemcacheConn processIncoming pid:12667, addr:0x14a2730, 4
2022-08-28 21:38:59.074 [DEBUG] [PID: 12667] MemcacheConn processIncoming pid:12667, addr:0x14a2730, 5
2022-08-28 21:38:59.074 [DEBUG] [PID: 12667] MemcacheConn processIncoming pid:12667, addr:0x14a2730, 7
2022-08-28 21:38:59.074 [DEBUG] [PID: 12667] SASL test, parm for sasl: YES, isAuthenticated: NO, opcode: 1
2022-08-28 21:38:59.074 [ERROR] [PID: 12667] Successful SASL authentication not performed
2022-08-28 21:38:59.074 [DEBUG] [PID: 12667] binErrRespond err: 32
2022-08-28 21:38:59.074 [DEBUG] [PID: 12667] binRespond, 24 bytes
2022-08-28 21:38:59.074 [DEBUG] [PID: 12667] binRespond, 13 bytes
2022-08-28 21:38:59.074 [DEBUG] [PID: 12667] SendEx pid: 12667
2022-08-28 21:38:59.074 [DEBUG] [PID: 12667] Tracing 37 bytes (allocated 178, used 166):
0000: 81010000 00000020 0000000d 00030000 ....... ........
0010: 00000000 00000000 41757468 20666169 ........Auth fai
0020: 6c757265 2e                         lure.
2022-08-28 21:38:59.074 [DEBUG] [PID: 12667] MemcacheConn processIncoming 10
2022-08-28 21:38:59.074 [DEBUG] [PID: 12667] Close connection - reset user and other cached stuff
2022-08-28 21:38:59.074 [DEBUG] [PID: 12667] memcacheconn::setUser: (null)
2022-08-28 21:38:59.074 [DEBUG] [PID: 12667] Conn 0x14a2730 set pHash: (nil)
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] Memcache New connection from [0.0.0.0:0]
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] New connection - reset user
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] MemcacheConn processIncoming pid:12668, addr:0x14a2730, m_bufIncoming size:52
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] Tracing 52 bytes (allocated 237, used 223):
0000: 800d0004 00000000 00000004 00040000 ................
0010: 00000000 00000000 74657374 800a0000 ........test....
0020: 00000000 00000000 00050000 00000000 ................
0030: 00000000                           ....
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] MemcacheConn processIncoming 1
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] MemcacheConn processIncoming 2
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] MemcacheConn processIncoming pid:12668, addr:0x14a2730, 3
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] MemcacheConn processIncoming pid:12668, addr:0x14a2730, 4
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] MemcacheConn processIncoming pid:12668, addr:0x14a2730, 5
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] MemcacheConn processIncoming pid:12668, addr:0x14a2730, 7
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] SASL test, parm for sasl: YES, isAuthenticated: NO, opcode: 13
2022-08-28 21:38:59.074 [ERROR] [PID: 12668] Successful SASL authentication not performed
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] binErrRespond err: 32
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] binRespond, 24 bytes
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] binRespond, 13 bytes
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] SendEx pid: 12668
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] Tracing 37 bytes (allocated 178, used 166):
0000: 810d0000 00000020 0000000d 00040000 ....... ........
0010: 00000000 00000000 41757468 20666169 ........Auth fai
0020: 6c757265 2e                         lure.
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] MemcacheConn processIncoming 10
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] Close connection - reset user and other cached stuff
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] memcacheconn::setUser: (null)
2022-08-28 21:38:59.074 [DEBUG] [PID: 12668] Conn 0x14a2730 set pHash: (nil)

when I enable the Cached.Anonymous, it works well with no error and prints the output.

CACHED.ADDR=UDS:///tmp/lsmcd/lsmcd.sock
Cached.Anonymous=true

However it doesn't solve the issue, because I want to use username/password authentication.

Btw it's the journal error while starting the lsmcd:

Aug 28 19:32:08 server systemd[1]: Starting LSB: lsmcd...
Aug 28 19:32:08 server lsmcd[43899]: sql_select option missing
Aug 28 19:32:08 server lsmcd[43899]: auxpropfunc error no mechanism available
Aug 28 19:32:08 server lsmcd[43899]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: sql
Aug 28 19:32:08 server lsmcd[43899]: auxpropfunc error invalid parameter supplied
Aug 28 19:32:08 server lsmcd[43899]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: ldapdb
Aug 28 19:32:08 server lsmcd[43899]: ldapdb_canonuser_plug_init() failed in sasl_canonuser_add_plugin(): invalid parameter supplied
Aug 28 19:32:08 server lsmcd[43899]: _sasl_plugin_load failed on sasl_canonuser_init for plugin: ldapdb
Aug 28 19:32:09 server lsmcd[43880]: start lsmcd                                 [        OK        ]
Aug 28 19:32:09 server systemd[1]: Started LSB: lsmcd.
[root@server ~]# ps aux | grep lsmcd
root     43899  0.0  0.0 198188  4112 ?        S    19:32   0:00 /usr/local/lsmcd/bin/lsmcd -f /usr/local/lsmcd/conf/node.conf
nobody   43901  0.0  0.0 198188  1696 ?        S    19:32   0:00 /usr/local/lsmcd/bin/lsmcd
nobody   43902  0.0  0.0 198188  1696 ?        S    19:32   0:00 /usr/local/lsmcd/bin/lsmcd
nobody   43903  0.0  0.0 198188  1696 ?        S    19:32   0:00 /usr/local/lsmcd/bin/lsmcd
nobody   43904  0.0  0.0 198188  1696 ?        S    19:32   0:00 /usr/local/lsmcd/bin/lsmcd
nobody   43905  0.0  0.0 198188  1692 ?        S    19:32   0:00 /usr/local/lsmcd/bin/lsmcd
root     47441  0.0  0.0 112808   976 pts/0    S+   19:53   0:00 grep --color=auto lsmcd

realsamanrad avatar Aug 28 '22 15:08 realsamanrad

Hi, A couple of thoughts:

  • The journal errors are discussed in the doc. Check out https://docs.litespeedtech.com/products/lsmcd/troubleshooting/#unrelated-messages-in-the-system-journal-when-lsmcd-starts-up Basically this will remove them:
yum remove cyrus-sasl-sql
yum remove cyrus-sasl-ldap
  • Agreed that anonymous is no solution. Successful SASL authentication not performed means that a user/password was not sent by the client. This happens when you don't specify a user/password on the client side or the client can't properly identify the server as supporting SASL. There is a known bug in the memcached SASL implementation for PHP where it can't get that figured out. We believe that the 3.2.0 version of the memcached PHP plugin with memcached-awesome will fix it, but have been unable to verify that. If PHP's connection to lsmcd can't get verified you may need to use a different solution than lsmcd. You can open a ticket with LiteSpeed and we'll check your environment to make sure that it's set up correctly. You can do that following this link: https://store.litespeedtech.com/store/submitticket.php?step=2&deptid=2 Thanks,

Bob

On Sun, Aug 28, 2022 at 11:25 AM Simon @.***> wrote:

Honestly I prefer to debug that personally. I guess the problem related to SASL over unix socket:

/tmp/lsmcd.log

2022-08-28 19:32:12.748 [ERROR] [PID: 43902] Successful SASL authentication not performed 2022-08-28 19:32:13.665 [ERROR] [PID: 43902] Successful SASL authentication not performed 2022-08-28 19:40:03.525 [ERROR] [PID: 43903] Successful SASL authentication not performed

when I enable the Cached.Anonymous, it works well with no error and prints the output.

CACHED.ADDR=UDS:///tmp/lsmcd/lsmcd.sock Cached.Anonymous=true

However it doesn't solve the issue, because I want to use username/password authentication.

Btw it's the journal error while starting the lsmcd:

Aug 28 19:32:08 server.denahost.com systemd[1]: Starting LSB: lsmcd... Aug 28 19:32:08 server.denahost.com lsmcd[43899]: sql_select option missing Aug 28 19:32:08 server.denahost.com lsmcd[43899]: auxpropfunc error no mechanism available Aug 28 19:32:08 server.denahost.com lsmcd[43899]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: sql Aug 28 19:32:08 server.denahost.com lsmcd[43899]: auxpropfunc error invalid parameter supplied Aug 28 19:32:08 server.denahost.com lsmcd[43899]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: ldapdb Aug 28 19:32:08 server.denahost.com lsmcd[43899]: ldapdb_canonuser_plug_init() failed in sasl_canonuser_add_plugin(): invalid parameter supplied Aug 28 19:32:08 server.denahost.com lsmcd[43899]: _sasl_plugin_load failed on sasl_canonuser_init for plugin: ldapdb Aug 28 19:32:09 server.denahost.com lsmcd[43880]: start lsmcd [ OK ] Aug 28 19:32:09 server.denahost.com systemd[1]: Started LSB: lsmcd.

@.*** ~]# ps aux | grep lsmcd root 43899 0.0 0.0 198188 4112 ? S 19:32 0:00 /usr/local/lsmcd/bin/lsmcd -f /usr/local/lsmcd/conf/node.conf nobody 43901 0.0 0.0 198188 1696 ? S 19:32 0:00 /usr/local/lsmcd/bin/lsmcd nobody 43902 0.0 0.0 198188 1696 ? S 19:32 0:00 /usr/local/lsmcd/bin/lsmcd nobody 43903 0.0 0.0 198188 1696 ? S 19:32 0:00 /usr/local/lsmcd/bin/lsmcd nobody 43904 0.0 0.0 198188 1696 ? S 19:32 0:00 /usr/local/lsmcd/bin/lsmcd nobody 43905 0.0 0.0 198188 1692 ? S 19:32 0:00 /usr/local/lsmcd/bin/lsmcd root 47441 0.0 0.0 112808 976 pts/0 S+ 19:53 0:00 grep --color=auto lsmcd

— Reply to this email directly, view it on GitHub https://github.com/litespeedtech/lsmcd/issues/27#issuecomment-1229485186, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFSMUBZNPCJLQQRKV4JJWKTV3OAHZANCNFSM57OUKKDQ . You are receiving this because you commented.Message ID: @.***>

-- Bob Perper @.***

rperper avatar Aug 29 '22 12:08 rperper