Giter Site home page Giter Site logo

Comments (5)

tkima avatar tkima commented on August 17, 2024

Ive tried it yesterday and it worked but had some issues with the volumes and the cache of composer on restart. Solved this by first unpacking the files in the volume folder, start the container and then bash in the container and chmod the html folder to user www-data.

from docker-mautic.

tkima avatar tkima commented on August 17, 2024

But the API was not working (error 404) with the docker. I could get a access_token but when i started to use it to get information it gave me a 404 error.

Everywhere you read about cleaning the cache. But if you do it on a docker or on a volume the ownership wil change again. So your the script gives you "current offline" window.

How to fix the API on docker do the next steps (there are probably faster methods):

  1. Turn on the api in the control panel

  2. Create oauth2 credentials in the control panel

  3. Do a api test call to the api using composer mautic/api-library, you probably can get the access_token but can't get any info from the api (eg Looks like I encountered an error (error #404))
    baseUrl = https://mauticdomain.com
    apiUrl = https://mauticdomain.com/api/

  4. set memory_limit in php.ini to -1 (probably want to reset is to 256mb later on)

  5. login to the docker: docker exec -it {dockerid} bash

  6. clear the cache: php app/console cache:clear

  7. set the user ownership to www-data again: chown -R www-data:www-data /var/www/html/

The mautic is still running and i can information from the api with the access_token.

from docker-mautic.

luizeof avatar luizeof commented on August 17, 2024

hi @felipeplets did you encounter a problem when running mautic docker? Are you using compose or are you running through the command line?

from docker-mautic.

aspiers avatar aspiers commented on August 17, 2024

@felipeplets It worked for me. I'm afraid you are unlikely to receive help unless you give details of the problem you encountered. Please see https://www.chiark.greenend.org.uk/~sgtatham/bugs.html

from docker-mautic.

felipeplets avatar felipeplets commented on August 17, 2024

Hello @aspiers, thank you for the link.

Regarding the error I've faced I remember to get no feedback and specific error messages on docker logs, it was just running but I could not access it on the published port, so I could not realize the error or how to reproduce it. I've then installed and used it locally for my tests.

from docker-mautic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.