Jump to content
eagleman

Impossible d'ajouter un serveur memcached

Recommended Posts

 

Bonjour,

J'ai installé memcached sur mon serveur et prestashop detect bien le module mais quand j'essaie d'jouter un serveur les champs s'affichent en rouge pourtant memcached fonctionne correctement 

je me demande si prestashop interroge le serveur memcache et non pas memcached.

[root@serv memcached]# sudo netstat -plunt

tcp        0      0 0.0.0.0:11211           0.0.0.0:*               LISTEN      23280/memcached
sudo systemctl status  memcached
● memcached.service - Memcached
   Loaded: loaded (/etc/systemd/system/memcached.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2018-08-13 00:36:03 WEST; 29min ago
  Process: 23276 ExecStartPre=/usr/bin/chown -R memcached:memcached /var/run/memcached/ (code=exited, status=0/SUCCESS)
  Process: 23274 ExecStartPre=/usr/bin/mkdir /var/run/memcached (code=exited, status=1/FAILURE)
 Main PID: 23280 (memcached)
    Tasks: 6
   Memory: 664.0K
   CGroup: /system.slice/memcached.service
           └─23280 /usr/bin/memcached -u memcached -p 11211 -m 64 -c 1024 xx.xx.xxx.xx

Aug 13 00:36:03 host.xx.xx systemd[1]: Starting Memcached...
Aug 13 00:36:03 host.xxx.xx systemd[1]: Started Memcached.

sur la partie admin j'ai constaté que le code html est nommé memcache sans le "d"

<div id="server-form" class="col-md-10 collapse show" style="">
    <div class="form-group">
        <label class="form-control-label">Adresse IP</label>
        
        <input type="text" id="form_add_memcache_server_memcache_ip" name="form[add_memcache_server][memcache_ip]" class="form-control is-invalid">
  
    </div>

    <div class="form-group">
        <label class="form-control-label">Port</label>
        
        <input type="text" id="form_add_memcache_server_memcache_port" name="form[add_memcache_server][memcache_port]" class="form-control is-invalid">
  
    </div>

    <div class="form-group">
        <label class="form-control-label">Poids</label>
        
        <input type="text" id="form_add_memcache_server_memcache_weight" name="form[add_memcache_server][memcache_weight]" class="form-control is-invalid">
  
    </div>

    

    <div class="form-group">
        <div class="float-right">
            <button id="add-server-btn" class="btn btn-primary">Ajouter un serveur</button>
            <button id="test-server-btn" class="btn btn-primary">Tester le serveur</button>
        </div>
    </div>
</div>
function PerformancePage(addServerUrl, removeServerUrl, testServerUrl) {
    this.addServerUrl = addServerUrl;
    this.removeServerUrl = removeServerUrl;
    this.testServerUrl = testServerUrl;

    this.getAddServerUrl = function() {
        return this.addServerUrl;
    };

    this.getRemoveServerlUrl = function() {
        return this.removeServerUrl;
    };
    this.getTestServerUrl = function() {
        return this.testServerUrl;
    };

    this.getFormValues = function() {
        var serverIpInput = document.getElementById('form_add_memcache_server_memcache_ip');
        var serverPortInput = document.getElementById('form_add_memcache_server_memcache_port');
        var serverWeightInput = document.getElementById('form_add_memcache_server_memcache_weight');

        return {
            'server_ip': serverIpInput.value,
            'server_port': serverPortInput.value,
            'server_weight': serverWeightInput.value,
        };
    };

    this.createRow = function(params) {
        var serversTable = document.getElementById('servers-table');
        var newRow = document.createElement('tr');
        newRow.setAttribute('id', 'row_'+ params.id);
        newRow.innerHTML =
            '<td>'+ params.id +'</td>\n' +
            '<td>'+ params.server_ip +'</td>\n' +
            '<td>'+ params.server_port +'</td>\n' +
            '<td>'+ params.server_weight +'</td>\n' +
            '<td>\n' +
            '    <a class="btn btn-default" href="#" onclick="app.removeServer('+ params.id +');"><i class="material-icons">remove_circle</i> Remove</a>\n' +
            '</td>\n';
        serversTable.appendChild(newRow);
    };

 

Share this post


Link to post
Share on other sites

Bonjour,

Malgré que les champs s'affichent en rouge j'ai quand meme ajouté mon serveur et je vois que ca fonctionne ;)

 

 

cache.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More