Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Nanobsd packages installation not works

    Scheduled Pinned Locked Moved 1.2.3-PRERELEASE-TESTING snapshots - RETIRED
    11 Posts 4 Posters 5.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      stoffel
      last edited by

      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!

      1 Reply Last reply Reply Quote 0
      • S
        stoffel
        last edited by

        Hello,

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

        1 Reply Last reply Reply Quote 0
        • Cry HavokC
          Cry Havok
          last edited by

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

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            @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

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • S
              stoffel
              last edited by

              @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 ???

              1 Reply Last reply Reply Quote 0
              • jimpJ
                jimp Rebel Alliance Developer Netgate
                last edited by

                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.

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                1 Reply Last reply Reply Quote 0
                • S
                  stoffel
                  last edited by

                  @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.

                  1 Reply Last reply Reply Quote 0
                  • jimpJ
                    jimp Rebel Alliance Developer Netgate
                    last edited by

                    @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.

                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

                    1 Reply Last reply Reply Quote 0
                    • ?
                      Guest
                      last edited by

                      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.

                      1 Reply Last reply Reply Quote 0
                      • jimpJ
                        jimp Rebel Alliance Developer Netgate
                        last edited by

                        @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.

                        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                        Need help fast? Netgate Global Support!

                        Do not Chat/PM for help!

                        1 Reply Last reply Reply Quote 0
                        • ?
                          Guest
                          last edited by

                          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.

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.