Guest User

Untitled

a guest
Jan 14th, 2018
314
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 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
  2. 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.
  3. MacBook-Air-Nikita:~ user$ docker run --expose=2004 -v /Users/user/Desktop/:/Users/user/Desktop/ -it avsw/libreoffice_container:v1 /bin/bash
  4. [root@ca0e93d2559b /]# yum install -y net-tools
  5. Loaded plugins: fastestmirror, ovl
  6. base                                                                                                                                   | 3.6 kB  00:00:00    
  7. extras                                                                                                                                 | 3.4 kB  00:00:00    
  8. updates                                                                                                                                | 3.4 kB  00:00:00    
  9. (1/4): extras/7/x86_64/primary_db                                                                                                      | 145 kB  00:00:00    
  10. (2/4): base/7/x86_64/group_gz                                                                                                          | 156 kB  00:00:00    
  11. (3/4): base/7/x86_64/primary_db                                                                                                        | 5.7 MB  00:00:01    
  12. (4/4): updates/7/x86_64/primary_db                                                                                                     | 5.2 MB  00:00:01    
  13. Determining fastest mirrors
  14.  * base: dedic.sh
  15.  * extras: dedic.sh
  16.  * updates: dedic.sh
  17. Resolving Dependencies
  18. --> Running transaction check
  19. ---> Package net-tools.x86_64 0:2.0-0.22.20131004git.el7 will be installed
  20. --> Finished Dependency Resolution
  21.  
  22. Dependencies Resolved
  23.  
  24. ==============================================================================================================================================================
  25.  Package                             Arch                             Version                                            Repository                      Size
  26. ==============================================================================================================================================================
  27. Installing:
  28.  net-tools                           x86_64                           2.0-0.22.20131004git.el7                           base                           305 k
  29.  
  30. Transaction Summary
  31. ==============================================================================================================================================================
  32. Install  1 Package
  33.  
  34. Total download size: 305 k
  35. Installed size: 917 k
  36. Downloading packages:
  37. net-tools-2.0-0.22.20131004git.el7.x86_64.rpm                                                                                          | 305 kB  00:00:00    
  38. Running transaction check
  39. Running transaction test
  40. Transaction test succeeded
  41. Running transaction
  42.   Installing : net-tools-2.0-0.22.20131004git.el7.x86_64                                                                                                  1/1
  43.   Verifying  : net-tools-2.0-0.22.20131004git.el7.x86_64                                                                                                  1/1
  44.  
  45. Installed:
  46.   net-tools.x86_64 0:2.0-0.22.20131004git.el7                                                                                                                
  47.  
  48. Complete!
  49. [root@ca0e93d2559b /]# ifconfig
  50. eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
  51.         inet 172.17.0.3  netmask 255.255.0.0  broadcast 172.17.255.255
  52.         ether 02:42:ac:11:00:03  txqueuelen 0  (Ethernet)
  53.         RX packets 8794  bytes 12611408 (12.0 MiB)
  54.         RX errors 0  dropped 0  overruns 0  frame 0
  55.         TX packets 4560  bytes 249373 (243.5 KiB)
  56.         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
  57.  
  58. lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
  59.         inet 127.0.0.1  netmask 255.0.0.0
  60.         loop  txqueuelen 1  (Local Loopback)
  61.         RX packets 0  bytes 0 (0.0 B)
  62.         RX errors 0  dropped 0  overruns 0  frame 0
  63.         TX packets 0  bytes 0 (0.0 B)
  64.         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
  65.  
  66. [root@ca0e93d2559b /]# unoconv -vvv -p 2004 -f odt /Users/user/Desktop/собеседование.pdf
  67. Verbosity set to level 3
  68. Using office base path: /usr/lib64/libreoffice
  69. Using office binary path: /usr/lib64/libreoffice/program
  70. DEBUG: Connection type: socket,host=127.0.0.1,port=2004,tcpNoDelay=1;urp;StarOffice.ComponentContext
  71. DEBUG: Existing listener not found.
  72. DEBUG: Launching our own listener using /usr/lib64/libreoffice/program/soffice.bin.
  73. LibreOffice listener successfully started. (pid=50)
  74. Input file: /Users/user/Desktop/собеседование.pdf
  75. Selected output format: ODF Text Document [.odt]
  76. Selected office filter: writer8
  77. Used doctype: document
  78. 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
  79. unoconv: UnoException during export phase:
  80. 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)
  81.  
  82. 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 })
  83. DEBUG: Terminating LibreOffice instance.
  84. DEBUG: Waiting for LibreOffice instance to exit.
  85. [root@ca0e93d2559b /]# unoconv -vvv -p 2004 -s 172.17.0.2 -f odt /Users/user/Desktop/собеседование.pdf
  86. Verbosity set to level 3
  87. Using office base path: /usr/lib64/libreoffice
  88. Using office binary path: /usr/lib64/libreoffice/program
  89. DEBUG: Connection type: socket,host=172.17.0.2,port=2004,tcpNoDelay=1;urp;StarOffice.ComponentContext
  90. DEBUG: Existing listener not found.
  91. DEBUG: Launching our own listener using /usr/lib64/libreoffice/program/soffice.bin.
  92. LibreOffice listener successfully started. (pid=72)
  93. Failed to connect to /usr/lib64/libreoffice/program/soffice.bin (pid=72) in 6 seconds.
  94. Connector : couldn't connect to socket (Success)
  95. Error: Unable to connect or start own listener. Aborting.
RAW Paste Data