Nanobsd packages installation not works



  • Hardware:
    embedded Alix2d3 with IBM mini-ide DCRA22160
    Software:
    Nanobsd 1.2.3-RC2 built on Sun Jul 5 23:22:06 EDT 2009

    when i install any package over WebGui (System - Packages) after the download it comes the message
    "Downloading package configuration file… failed!"
    and under the window comes the message
    "Warning: fopen(/usr/local/pkg/squid.xml): failed to open stream: Read-only file system in /etc/inc/pkg-utils.inc on line 388"

    What can i do?

    Thanks for your support!

    Goodbye!



  • Hello,

    the problem i the same with 1.2.3-RC2 built on Wed Jul 8 08:37:39 EDT 2009.




  • Rebel Alliance Developer Netgate

    @Cry:

    http://forum.pfsense.org/index.php/topic,7721.0.html

    They're actually supposed to work natively on nanobsd without any workarounds like that now :)

    This commit should fix it, so if you have a snap after it got in, packages should work again:
    https://rcs.pfsense.org/projects/pfsense/repos/mainline/commits/4b14ae30922ac518b0e5bcfb9b375a07afb74e86



  • @jimp:

    They're actually supposed to work natively on nanobsd without any workarounds like that now :)

    This commit should fix it, so if you have a snap after it got in, packages should work again:
    https://rcs.pfsense.org/projects/pfsense/repos/mainline/commits/4b14ae30922ac518b0e5bcfb9b375a07afb74e86

    Hello,

    i have this modified, and the squid-packages install works.
    I become at the end a lot of warnings


    Warning: fopen(/usr/local/etc/rc.d/squid.sh): failed to open stream: Read-only file system in /etc/inc/service-utils.inc on line 55 Warning: fwrite(): supplied argument is not a valid stream resource in /etc/inc/service-utils.inc on line 56 Warning: fclose(): supplied argument is not a valid stream resource in /etc/inc/service-utils.inc on line 57 Warning: chmod(): No such file or directory in /etc/inc/service-utils.inc on line 58 Warning: chown(): Read-only file system in /usr/local/pkg/squid.inc on line 57 Warning: chgrp(): Read-only file system in /usr/local/pkg/squid.inc on line 58 Warning: chown(): Read-only file system in /usr/local/pkg/squid.inc on line 66 Warning: chgrp(): Read-only file system in /usr/local/pkg/squid.inc on line 67 Warning: chown(): Read-only file system in /usr/local/pkg/squid.inc on line 66 Warning: chgrp(): Read-only file system in /usr/local/pkg/squid.inc on line 67 Warning: chown(): Read-only file system in /usr/local/pkg/squid.inc on line 66 Warning: chgrp(): Read-only file system in /usr/local/pkg/squid.inc on line 67 Warning: chown(): Read-only file system in /usr/local/pkg/squid.inc on line 66 Warning: chgrp(): Read-only file system in /usr/local/pkg/squid.inc on line 67 Warning: chown(): Read-only file system in /usr/local/pkg/squid.inc on line 66 Warning: chgrp(): Read-only file system in /usr/local/pkg/squid.inc on line 67 Warning: chown(): Read-only file system in /usr/local/pkg/squid.inc on line 57 Warning: chgrp(): Read-only file system in /usr/local/pkg/squid.inc on line 58 Warning: chown(): Read-only file system in /usr/local/pkg/squid.inc on line 66 Warning: chgrp(): Read-only file system in /usr/local/pkg/squid.inc on line 67 Warning: chown(): Read-only file system in /usr/local/pkg/squid.inc on line 66 Warning: chgrp(): Read-only file system in /usr/local/pkg/squid.inc on line 67 Warning: chown(): Read-only file system in /usr/local/pkg/squid.inc on line 66 Warning: chgrp(): Read-only file system in /usr/local/pkg/squid.inc on line 67 Warning: chown(): Read-only file system in /usr/local/pkg/squid.inc on line 66 Warning: chgrp(): Read-only file system in /usr/local/pkg/squid.inc on line 67 Warning: chown(): Read-only file system in /usr/local/pkg/squid.inc on line 66 Warning: chgrp(): Read-only file system in /usr/local/pkg/squid.inc on line 67 Warning: chown(): Read-only file system in /usr/local/pkg/squid.inc on line 66 Warning: chgrp(): Read-only file system in /usr/local/pkg/squid.inc on line 67 Warning: chown(): Read-only file system in /usr/local/pkg/squid.inc on line 66 Warning: chgrp(): Read-only file system in /usr/local/pkg/squid.inc on line 67 Warning: chown(): Read-only file system in /usr/local/pkg/squid.inc on line 66 Warning: chgrp(): Read-only file system in /usr/local/pkg/squid.inc on line 67 Warning: chown(): Read-only file system in /usr/local/pkg/squid.inc on line 66 Warning: chgrp(): Read-only file system in /usr/local/pkg/squid.inc on line 67 Warning: chown(): Read-only file system in /usr/local/pkg/squid.inc on line 66 Warning: chgrp(): Read-only file system in /usr/local/pkg/squid.inc on line 67 Warning: chown(): Read-only file system in /usr/local/pkg/squid.inc on line 66 Warning: chgrp(): Read-only file system in /usr/local/pkg/squid.inc on line 67 Warning: chown(): Read-only file system in /usr/local/pkg/squid.inc on line 66 Warning: chgrp(): Read-only file system in /usr/local/pkg/squid.inc on line 67 Warning: chown(): Read-only file system in /usr/local/pkg/squid.inc on line 66 Warning: chgrp(): Read-only file system in /usr/local/pkg/squid.inc on line 67 Warning: chown(): Read-only file system in /usr/local/pkg/squid.inc on line 66 Warning: chgrp(): Read-only file system in /usr/local/pkg/squid.inc on line 67 Warning: chown(): Read-only file system in /usr/local/pkg/squid.inc on line 66 Warning: chgrp(): Read-only file system in /usr/local/pkg/squid.inc on line 67 Warning: chown(): Read-only file system in /usr/local/pkg/squid.inc on line 66 Warning: chgrp(): Read-only file system in /usr/local/pkg/squid.inc on line 67 Warning: chown(): Read-only file system in /usr/local/pkg/squid.inc on


    i this correctly ???


  • Rebel Alliance Developer Netgate

    Well I think each package may also need some adjusting before it works, too. Any time it needs to write to the CF it needs to set rw and ro when done. This won't happen by magic, and the card must stay RO most of the time for its own protection.

    Installing Squid on a CF is probably a very bad idea, as it will constantly write to the CF and wear it out in no time.



  • @jimp:

    Well I think each package may also need some adjusting before it works, too. Any time it needs to write to the CF it needs to set rw and ro when done. This won't happen by magic, and the card must stay RO most of the time for its own protection.

    Installing Squid on a CF is probably a very bad idea, as it will constantly write to the CF and wear it out in no time.

    I have nanobsd installed on a microdrive / miniide-harddisk 2,5'' and not on a CF-Card.


  • Rebel Alliance Developer Netgate

    @stoffel:

    I have nanobsd installed on a microdrive / miniide-harddisk 2,5'' and not on a CF-Card.

    Then you'll probably need to modify conf_mount_ro and conf_mount_rw to do nothing and leave it rw all the time.

    If you change /etc/platform, then the nanobsd specific bits will stop working properly.

    I don't know if any consideration will be made for microdrives in the nanobsd case or not.



  • Incidentally, squid is a big resource pig and will not do well with the limited memory and CPU resources available on most embedded systems.  Running squid on embedded boards is a very bad idea.


  • Rebel Alliance Developer Netgate

    @submicron:

    Incidentally, squid is a big resource pig and will not do well with the limited memory and CPU resources available on most embedded systems.  Running squid on embedded boards is a very bad idea.

    I'd have to agree with that sentiment.

    Unless you are disabling caching and using it for ACL/URL filtering only with squidguard, and even then I'm not sure how well that would run.



  • SquidGuard is also pretty memory intensive.  It launches a user specified number of redirectors which handle the filtering decisions, which means that they sit and use up a lot of memory.  Not something I'd want on an embedded box.


Log in to reply