PartKeepr icon indicating copy to clipboard operation
PartKeepr copied to clipboard

unrecognized option "cache" under "framework"

Open MaiMariarti opened this issue 4 years ago • 6 comments

Started with blank stretch image (not lite), on a RPi3+ Followed instructions at https://wiki.partkeepr.org/wiki/PartKeepr_1.4.0_installation_on_a_Raspberry_Pi Buster did not work either, but got through further before it too, croaked.

Got the following and all looks as it should!

MariaDB [(none)]> SHOW DATABASES; +--------------------+ | Database | +--------------------+ | PartKeepr | | information_schema | | mysql | | performance_schema | +--------------------+ 4 rows in set (0.01 sec)

MariaDB [(none)]> SELECT User FROM mysql.user; +-----------+ | User | +-----------+ | partkeepr | | root | +-----------+ 2 rows in set (0.00 sec)

MariaDB [(none)]> quit Bye

Click Next to go to Setup (1/2) - This will build the database:

Partkeepr 1-4-0 setup 06.png

I have ran out of idea to try to get this to work. PartKeepr error screen shot

MaiMariarti avatar Jan 05 '21 09:01 MaiMariarti

I'm guessing you used the "APC Metadata Caching" setup from the wiki? Have you tried an install without using that? It's optional (I haven't installed on an RPi myself). It may be slower, but functional.

Also, please show the contents of your config_framework.yml file for reference.

ericmoon avatar Jan 05 '21 16:01 ericmoon

I followed instructions at https://wiki.partkeepr.org/wiki/PartKeepr_on_Raspberry_Pi I'm new to RPi and linux in general. I don't know what APC Metadata Caching even means! here is what's in config_framework.yml I appriciate your help. Thanks.

services:
    app.doctrine.apc_cache:
       class: Doctrine\Common\Cache\ApcCache
       calls:
           - [setNamespace, [""]]
framework:
    annotations:
    cache: "app.doctrine.apc_cache"
    #esi:             ~
    translator:      { fallback: en }
    serializer:      { enable_annotations: true }
    secret:          %secret%
    router:
        resource: "%kernel.root_dir%/config/routing.yml"
        strict_requirements: ~
    form:            ~
    csrf_protection: ~
    validation:      { enabled: true, enable_annotations: true }
    templating:
        engines: ['twig']
        #assets_version: SomeVersionScheme
    default_locale:  "%locale%"
    trusted_proxies: ~
    session:         ~
    fragments:       ~
    http_method_override: true

MaiMariarti avatar Jan 08 '21 12:01 MaiMariarti

If someone knowledgeable writes an automated install and uninstall script, this program will catch like wild fire. A lot of electronic enthusiasts have a RPi and tons of parts to keep track of. There's Excel spread sheet thingy. Not good enough, but for the simplest of inventories.

MaiMariarti avatar Jan 08 '21 12:01 MaiMariarti

@MaiMariarti what @ericmoon suggested was to undo the changes in this section, restart apache (next section), and try again.

The problem with an automated install script is that it needs to be quite generic to be used. Should it run on a RPI, on a virtual server on the internet, or on a dedicated machine somewhere on the network? It might be worth adding an issue (feature request) to collect all thoughts.

christianlupus avatar Feb 05 '21 17:02 christianlupus

Dear MaiMariarti If you can give me the correct step by step installation with all the tips for the you installation on the Raspberry Pi I can put it at https://readthedocs.web.cern.ch/display/PARTK/Install+PartKeepr+on in this way you will help your community :)

ghost-from-the-past avatar Mar 02 '21 23:03 ghost-from-the-past

@MaiMariarti did you managed to get it running?

If not: Are you still at the same (non-running) configuration? I think after a quick scan of the docs that the indentation is off. YAML (or YML) files are using indentation for grouping things together. In the link you provided the line cache: "app.doctrine.apc_cache" has an indentation of 2 tabs. You have only 1 tab. Check you either use spaces or tabs, not both to avoid conflicts or unintended behavior. If this does not work, try disabling the cache in the mentioned YML file by prefixing the corresponding line with a #.

christianlupus avatar May 17 '21 14:05 christianlupus