Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MacBook-Air-Nikita:~ user$ docker run --expose=2004 -p 2004:2004 -v /Users/user/Desktop/:/Users/user/Desktop/ -it avsw/libreoffice_container:v1 /bin/bash
- docker: Error response from daemon: driver failed programming external connectivity on endpoint romantic_kirch (1e02fc65cb59635f7dfa083f843ce84ff1907b17c0b459f43638d7fdf4928cda): Bind for 0.0.0.0:2004 failed: port is already allocated.
- MacBook-Air-Nikita:~ user$ docker run --expose=2004 -v /Users/user/Desktop/:/Users/user/Desktop/ -it avsw/libreoffice_container:v1 /bin/bash
- [root@ca0e93d2559b /]# yum install -y net-tools
- Loaded plugins: fastestmirror, ovl
- base | 3.6 kB 00:00:00
- extras | 3.4 kB 00:00:00
- updates | 3.4 kB 00:00:00
- (1/4): extras/7/x86_64/primary_db | 145 kB 00:00:00
- (2/4): base/7/x86_64/group_gz | 156 kB 00:00:00
- (3/4): base/7/x86_64/primary_db | 5.7 MB 00:00:01
- (4/4): updates/7/x86_64/primary_db | 5.2 MB 00:00:01
- Determining fastest mirrors
- * base: dedic.sh
- * extras: dedic.sh
- * updates: dedic.sh
- Resolving Dependencies
- --> Running transaction check
- ---> Package net-tools.x86_64 0:2.0-0.22.20131004git.el7 will be installed
- --> Finished Dependency Resolution
- Dependencies Resolved
- ==============================================================================================================================================================
- Package Arch Version Repository Size
- ==============================================================================================================================================================
- Installing:
- net-tools x86_64 2.0-0.22.20131004git.el7 base 305 k
- Transaction Summary
- ==============================================================================================================================================================
- Install 1 Package
- Total download size: 305 k
- Installed size: 917 k
- Downloading packages:
- net-tools-2.0-0.22.20131004git.el7.x86_64.rpm | 305 kB 00:00:00
- Running transaction check
- Running transaction test
- Transaction test succeeded
- Running transaction
- Installing : net-tools-2.0-0.22.20131004git.el7.x86_64 1/1
- Verifying : net-tools-2.0-0.22.20131004git.el7.x86_64 1/1
- Installed:
- net-tools.x86_64 0:2.0-0.22.20131004git.el7
- Complete!
- [root@ca0e93d2559b /]# ifconfig
- eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
- inet 172.17.0.3 netmask 255.255.0.0 broadcast 172.17.255.255
- ether 02:42:ac:11:00:03 txqueuelen 0 (Ethernet)
- RX packets 8794 bytes 12611408 (12.0 MiB)
- RX errors 0 dropped 0 overruns 0 frame 0
- TX packets 4560 bytes 249373 (243.5 KiB)
- TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
- lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
- inet 127.0.0.1 netmask 255.0.0.0
- loop txqueuelen 1 (Local Loopback)
- RX packets 0 bytes 0 (0.0 B)
- RX errors 0 dropped 0 overruns 0 frame 0
- TX packets 0 bytes 0 (0.0 B)
- TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
- [root@ca0e93d2559b /]# unoconv -vvv -p 2004 -f odt /Users/user/Desktop/собеседование.pdf
- Verbosity set to level 3
- Using office base path: /usr/lib64/libreoffice
- Using office binary path: /usr/lib64/libreoffice/program
- DEBUG: Connection type: socket,host=127.0.0.1,port=2004,tcpNoDelay=1;urp;StarOffice.ComponentContext
- DEBUG: Existing listener not found.
- DEBUG: Launching our own listener using /usr/lib64/libreoffice/program/soffice.bin.
- LibreOffice listener successfully started. (pid=50)
- Input file: /Users/user/Desktop/собеседование.pdf
- Selected output format: ODF Text Document [.odt]
- Selected office filter: writer8
- Used doctype: document
- Output file: file:///Users/user/Desktop/%C3%91%C2%81%C3%90%C2%BE%C3%90%C2%B1%C3%90%C2%B5%C3%91%C2%81%C3%90%C2%B5%C3%90%C2%B4%C3%90%C2%BE%C3%90%C2%B2%C3%90%C2%B0%C3%90%C2%BD%C3%90%C2%B8%C3%90%C2%B5.odt
- unoconv: UnoException during export phase:
- Unable to store document to file:///Users/user/Desktop/%C3%91%C2%81%C3%90%C2%BE%C3%90%C2%B1%C3%90%C2%B5%C3%91%C2%81%C3%90%C2%B5%C3%90%C2%B4%C3%90%C2%BE%C3%90%C2%B2%C3%90%C2%B0%C3%90%C2%BD%C3%90%C2%B8%C3%90%C2%B5.odt (ErrCode 283)
- Properties: ((com.sun.star.beans.PropertyValue){ Name = (string)"FilterName", Handle = (long)0x0, Value = (any){ (string)"writer8" }, State = (com.sun.star.beans.PropertyState)DIRECT_VALUE }, (com.sun.star.beans.PropertyValue){ Name = (string)"OutputStream", Handle = (long)0x0, Value = (any){ (com.sun.star.uno.XInterface)0x3f477f8{, supportedInterfaces={com.sun.star.lang.XTypeProvider,com.sun.star.io.XOutputStream}} }, State = (com.sun.star.beans.PropertyState)DIRECT_VALUE }, (com.sun.star.beans.PropertyValue){ Name = (string)"Overwrite", Handle = (long)0x0, Value = (any){ (boolean)true }, State = (com.sun.star.beans.PropertyState)DIRECT_VALUE })
- DEBUG: Terminating LibreOffice instance.
- DEBUG: Waiting for LibreOffice instance to exit.
- [root@ca0e93d2559b /]# unoconv -vvv -p 2004 -s 172.17.0.2 -f odt /Users/user/Desktop/собеседование.pdf
- Verbosity set to level 3
- Using office base path: /usr/lib64/libreoffice
- Using office binary path: /usr/lib64/libreoffice/program
- DEBUG: Connection type: socket,host=172.17.0.2,port=2004,tcpNoDelay=1;urp;StarOffice.ComponentContext
- DEBUG: Existing listener not found.
- DEBUG: Launching our own listener using /usr/lib64/libreoffice/program/soffice.bin.
- LibreOffice listener successfully started. (pid=72)
- Failed to connect to /usr/lib64/libreoffice/program/soffice.bin (pid=72) in 6 seconds.
- Connector : couldn't connect to socket (Success)
- Error: Unable to connect or start own listener. Aborting.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement