Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I/O Error: Attempt to load network entity docbook.xsl
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
suprafluid
n00b
n00b


Joined: 07 Jan 2011
Posts: 48
Location: Deep in the Bavarian Forrest, Germany

PostPosted: Thu Nov 03, 2022 9:13 am    Post subject: I/O Error: Attempt to load network entity docbook.xsl Reply with quote

Hi all,

I already looked this emerge error up and also found other reporting this

I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl

and I tried several hints I found but still I am unable to emerge two packages:

emerge systemd-utils
emerge pax-utils

both emerges produce the same error:

(output from emerge systemd-utils)

[426/434] /usr/bin/xsltproc -o man/hwdb.7 --nonet --xinclude --maxdepth 9000 --stringparam man.output.quietly 1 --stringparam funcsynopsis.style ansi --stringparam man.authors.section.enabled 0 --stringparam man.copyright.section.enabled 0 --stringparam systemd.version 251 --path /tmp/portage/sys-apps/systemd-utils-251.4-r2/work/systemd-stable-251.4-abi_x86_64.amd64/man:/tmp/portage/sys-apps/systemd-utils-251.4-r2/work/systemd-stable-251.4/man ../systemd-stable-251.4/man/custom-man.xsl ../systemd-stable-251.4/man/hwdb.xml
FAILED: man/hwdb.7
/usr/bin/xsltproc -o man/hwdb.7 --nonet --xinclude --maxdepth 9000 --stringparam man.output.quietly 1 --stringparam funcsynopsis.style ansi --stringparam man.authors.section.enabled 0 --stringparam man.copyright.section.enabled 0 --stringparam systemd.version 251 --path /tmp/portage/sys-apps/systemd-utils-251.4-r2/work/systemd-stable-251.4-abi_x86_64.amd64/man:/tmp/portage/sys-apps/systemd-utils-251.4-r2/work/systemd-stable-251.4/man ../systemd-stable-251.4/man/custom-man.xsl ../systemd-stable-251.4/man/hwdb.xml
I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
compilation error: file ../systemd-stable-251.4/man/custom-man.xsl line 12 element import
xsl:import : unable to load http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
ninja: build stopped: subcommand failed.


If I run it manually on cmd line (means outside emerge) it goes through with no errors.

/usr/bin/xsltproc -o man/hwdb.7 --nonet --xinclude --maxdepth 9000 --stringparam man.output.quietly 1 --stringparam funcsynopsis.style ansi --stringparam man.authors.section.enabled 0 --stringparam man.copyright.section.enabled 0 --stringparam systemd.version 251 --path /tmp/portage/sys-apps/systemd-utils-251.4-r2/work/systemd-stable-251.4-abi_x86_64.amd64/man:/tmp/portage/sys-apps/systemd-utils-251.4-r2/work/systemd-stable-251.4/man ../systemd-stable-251.4/man/custom-man.xsl ../systemd-stable-251.4/man/hwdb.xml

No error

- I checked access rights of all files in /etc/xml all files are readable by all (644)
- I added -doc to the use flags but it still compiles the man and ends witht he same error
- I resycned the tree
- I re-emerged

app-text/xmlto
dev-libs/libxml2
app-text/docbook-xml-dtd


all several times, but with no luck.

Any ideas what else I coud try?
_________________
Running GENTOO since 2004
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54453
Location: 56N 3W

PostPosted: Thu Nov 03, 2022 9:56 am    Post subject: Reply with quote

suprafluid,

Pastebin the build log of the pacdage that generated the I/O Error: Attempt to load network entity docbook.xsl error.

During building, portage will not permit random files to be fetched from the internet.
It requires all the files for the build to be downloaded before compiling starts.
This is a safety feature, as the build process cannot download random-evil-file.

There is an knob to disable that safety net but we need to see the build log first.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
suprafluid
n00b
n00b


Joined: 07 Jan 2011
Posts: 48
Location: Deep in the Bavarian Forrest, Germany

PostPosted: Thu Nov 03, 2022 10:12 am    Post subject: Reply with quote

OK, sorry I forgot to provide the build log.

Because it is quite large, I uploaded it to tempsend:

https://tempsend.com/wqzce/3547af/1667470253/build.log
_________________
Running GENTOO since 2004
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54453
Location: 56N 3W

PostPosted: Thu Nov 03, 2022 10:13 am    Post subject: Reply with quote

suprafluid,

Make friends with wgetpaste.

Many users here, including me, will not download random files from the internet.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31019
Location: here

PostPosted: Thu Nov 03, 2022 10:16 am    Post subject: Reply with quote

Do you have app-text/docbook-xsl-stylesheets installed?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
suprafluid
n00b
n00b


Joined: 07 Jan 2011
Posts: 48
Location: Deep in the Bavarian Forrest, Germany

PostPosted: Thu Nov 03, 2022 11:02 am    Post subject: Reply with quote

fedeliallalinea wrote:
Do you have app-text/docbook-xsl-stylesheets installed?


Yes it is installed and I also tried reinstalling it


[edit]
NeddySeagoon

ok there you go and thank you for the hint!

http://0x0.st/ogju.log
_________________
Running GENTOO since 2004
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54453
Location: 56N 3W

PostPosted: Thu Nov 03, 2022 12:44 pm    Post subject: Reply with quote

suprafluid,

It's trying to download from the internet during build.
Code:
I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
compilation error: file ../systemd-stable-251.4/man/custom-man.xsl line 12 element import
xsl:import : unable to load http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
ninja: build stopped: subcommand failed.

The sandbox will prevent that. *
Code:
 FEATURES:   network-sandbox


Its possibly a bug. Nothing in the tree should do that.
Report the bug please.

The workaround, which is a security risk too, is to run.
Code:
FEATURES=-network-sandbox emerge -1av sys-apps/systemd-utils
to build the package with the network-sandbox off and not add it to the world file.
FEATURES=-network-sandbox on the command line makes the change apply for this command only.
Or wait for the bugfix, which is safer.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31019
Location: here

PostPosted: Thu Nov 03, 2022 12:48 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Its possibly a bug. Nothing in the tree should do that.

This happens probably because it cannot find the local ones installed with docbook-* packages.
In my system package compile fine so I suspect some misconfiguration in the OP system.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
suprafluid
n00b
n00b


Joined: 07 Jan 2011
Posts: 48
Location: Deep in the Bavarian Forrest, Germany

PostPosted: Thu Nov 03, 2022 1:25 pm    Post subject: Reply with quote

Quote:

Code:
FEATURES=-network-sandbox emerge -1av sys-apps/systemd-utils
to build the package with the network-sandbox off and not add it to the world file.
FEATURES=-network-sandbox on the command line makes the change apply for this command only.
Or wait for the bugfix, which is safer.


Thank you for this but it also runs into the same error.

I'll file a bug.
_________________
Running GENTOO since 2004
Back to top
View user's profile Send private message
suprafluid
n00b
n00b


Joined: 07 Jan 2011
Posts: 48
Location: Deep in the Bavarian Forrest, Germany

PostPosted: Thu Nov 03, 2022 1:34 pm    Post subject: Reply with quote

fedeliallalinea wrote:
NeddySeagoon wrote:
Its possibly a bug. Nothing in the tree should do that.

This happens probably because it cannot find the local ones installed with docbook-* packages.
In my system package compile fine so I suspect some misconfiguration in the OP system.


Yes it seems like this cannot be found localy and so it tries downloading it what the sandbox of emerge blocks.
I don't know where it is comming from. None of the configs changed in the last years. This used to be a simple Apache/MySQL/PHP server with a Postfix mail server. I have no idea what happened. It cam suddenly after an emerge -uD @world
_________________
Running GENTOO since 2004
Back to top
View user's profile Send private message
suprafluid
n00b
n00b


Joined: 07 Jan 2011
Posts: 48
Location: Deep in the Bavarian Forrest, Germany

PostPosted: Tue Nov 08, 2022 7:27 am    Post subject: Reply with quote

FYI: The but I opened has already been closed again by some admin.

One said that is hs nothing to do witht he ebuild. So I still have tris problem and no ide what to do... the system has not been reconfigured since almost 2 years and was updated regularly. So I have no idea where this "misconfiguration" of xml docbook is comming from..

Anyone any ideas what to do?
_________________
Running GENTOO since 2004
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21918

PostPosted: Tue Nov 08, 2022 12:33 pm    Post subject: Reply with quote

I found sys-apps/systemd: Emerge fails bc several ebuilds cannot load manpages/docbook.xsl locally. Network access to xsl fails with I/O Error. reporting this error. It ended with a request for the reporter to seek support in a more appropriate forum. I think the next step is to understand why this fails for this one user, even as other people report that it works. Once that is understood, we can determine whether this is something Portage could have handled better.
Back to top
View user's profile Send private message
suprafluid
n00b
n00b


Joined: 07 Jan 2011
Posts: 48
Location: Deep in the Bavarian Forrest, Germany

PostPosted: Fri Nov 11, 2022 1:33 pm    Post subject: Solution Reply with quote

What the exact reason of this fault was I cannot say. It still demained after re-ermging all docbooks.

But finally if found a solution:

- unmerged any ebuild that contained the name docbook
- unmerged any ebuild that contained the name sgml
- deleted /etc/xml and /etc/sgml manually

Made a emerge @world - problem solved.
_________________
Running GENTOO since 2004
Back to top
View user's profile Send private message
symmetric
n00b
n00b


Joined: 12 Jul 2023
Posts: 12

PostPosted: Thu Jul 27, 2023 7:27 am    Post subject: Reply with quote

I ran into this today.

Instead of removing a bunch of packages and rebuilding world, I simply rebuilt anything that seemed docbook related:
Code:

# emerge -1v docbook-xml-dtd build-docbook-catalog docbook-xsl-ns-stylesheets docbook-xsl-stylesheets sgml-common libxslt


This resolved the issue. Which package(s) in this list were actually at fault I can't say.
Back to top
View user's profile Send private message
engineermdr
Apprentice
Apprentice


Joined: 08 Nov 2003
Posts: 297
Location: Altoona, WI, USA

PostPosted: Thu Oct 19, 2023 2:35 pm    Post subject: Reply with quote

I am having this exact same problem. I've tried both solutions above that helped others, but neither were successful.

emerge --info '=sys-apps/dbus-1.15.6::gentoo' : https://bpa.st/NLJA
emerge -pqv '=sys-apps/dbus-1.15.6::gentoo' : https://bpa.st/OREA

I also can't seem to get wgetpaste to save the build.log. I can open it and view it in vim, but wgetpaste gives me a 2023-10-19 09:24:58 ERROR 400: Bad Request. So here's the failure messages:

Code:
I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd
warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"
validity error : Could not load the external subset "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"
Document /tmp/portage/sys-apps/dbus-1.15.6/work/dbus-1.15.6/doc/dbus-specification.xml does not validate


I don't know anything about docbook, but here is a start.

/etc/xml/catalog : https://bpa.st/QXAQ
/etc/xml/docbook : https://bpa.st/NZCQ

I would appreciate some help. I'm stuck unable to update my system completely.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum