Try the fastest and simplest way to install ONLYOFFICE

how to install document server in debian stretch (v9)

Issues during installation and related to database

how to install document server in debian stretch (v9)

Postby alexoandro » Sun Jun 25, 2017 11:41 am

hello i need install document server in new debian ( debian stretch) but i dont see documentation and repository of debian stretch for doit installation.
i see doc for ubuntu 16.04 but repositorys is diferent of debian 9

please ,help me install in debian 9 ?

thanks
alexoandro
 
Posts: 1
Joined: Sun Jun 25, 2017 11:35 am

Re: how to install document server in debian stretch (v9)

Postby Maxim » Tue Jun 27, 2017 7:52 am

Hello alexoandro!
We currently have no separate instruction for debian 9. You should use this instruction, only change
echo
Code: Select all
"deb http://archive.ubuntu.com/ubuntu precise main universe multiverse" | sudo tee -a /etc/apt/sources.list

to any mirror from here. Or you can try docker version.
Maxim
 
Posts: 1240
Joined: Tue Oct 11, 2016 2:34 pm

Re: how to install document server in debian stretch (v9)

Postby DoubleJ » Wed Sep 13, 2017 4:07 am

I hope you don't mind me hitching a ride on your topic, alexoandro. This is related to the new linux dist-upgrade as well. I upgraded from Debian 8 Jessie to Debian 9 Stretch and now openoffice-documentserver will not install the latest version.

Code: Select all
sudo apt-get install onlyoffice-documentserver
Setting up onlyoffice-documentserver (4.4.3-7) ...
Generating AllFonts.js, please wait...Done
dpkg: error processing package onlyoffice-documentserver (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 onlyoffice-documentserver
E: Sub-process /usr/bin/dpkg returned an error code (1)


Code: Select all
sudo DEBCONF_DEBUG=developer dpkg --configure onlyoffice-documentserver
Setting up onlyoffice-documentserver (4.4.3-7) ...
debconf (developer): frontend started
debconf (developer): frontend running, package name is onlyoffice-documentserver
debconf (developer): starting /var/lib/dpkg/info/onlyoffice-documentserver.config configure
debconf (developer): <-- FSET onlyoffice/cluster-mode seen true
debconf (developer): --> 0 true
debconf (developer): <-- FSET onlyoffice/ds-port seen true
debconf (developer): --> 0 true
debconf (developer): <-- FSET onlyoffice/docservice-port seen true
debconf (developer): --> 0 true
debconf (developer): <-- FSET onlyoffice/spellchecker-port seen true
debconf (developer): --> 0 true
debconf (developer): <-- FSET onlyoffice/example-port seen true
debconf (developer): --> 0 true
debconf (developer): <-- INPUT medium onlyoffice/db-host
debconf (developer): --> 30 question skipped
debconf (developer): <-- INPUT medium onlyoffice/db-name
debconf (developer): --> 30 question skipped
debconf (developer): <-- INPUT medium onlyoffice/db-user
debconf (developer): --> 30 question skipped
debconf (developer): <-- GO
debconf (developer): --> 0 ok
debconf (developer): <-- INPUT critical onlyoffice/db-pwd
debconf (developer): --> 30 question skipped
debconf (developer): <-- GO
debconf (developer): --> 0 ok
debconf (developer): <-- INPUT medium onlyoffice/rabbitmq-host
debconf (developer): --> 30 question skipped
debconf (developer): <-- INPUT medium onlyoffice/rabbitmq-user
debconf (developer): --> 30 question skipped
debconf (developer): <-- INPUT medium onlyoffice/rabbitmq-pwd
debconf (developer): --> 30 question skipped
debconf (developer): <-- INPUT medium onlyoffice/redis-host
debconf (developer): --> 30 question skipped
debconf (developer): <-- GO
debconf (developer): --> 0 ok
debconf (developer): <-- GET onlyoffice/db-host
debconf (developer): --> 0 localhost
debconf (developer): <-- GET onlyoffice/db-name
debconf (developer): --> 0 onlyoffice
debconf (developer): <-- GET onlyoffice/db-user
debconf (developer): --> 0 onlyoffice
debconf (developer): <-- GET onlyoffice/db-pwd
debconf (developer): --> 0 onlyoffice
debconf (developer): starting /var/lib/dpkg/info/onlyoffice-documentserver.postinst configure
debconf (developer): <-- GET onlyoffice/db-host
debconf (developer): --> 0 localhost
debconf (developer): <-- GET onlyoffice/db-user
debconf (developer): --> 0 onlyoffice
debconf (developer): <-- GET onlyoffice/db-pwd
debconf (developer): --> 0 onlyoffice
debconf (developer): <-- GET onlyoffice/db-name
debconf (developer): --> 0 onlyoffice
debconf (developer): <-- GET onlyoffice/rabbitmq-host
debconf (developer): --> 0 localhost
debconf (developer): <-- GET onlyoffice/rabbitmq-user
debconf (developer): --> 0 guest
debconf (developer): <-- GET onlyoffice/rabbitmq-pwd
debconf (developer): --> 0 guest
debconf (developer): <-- GET onlyoffice/redis-host
debconf (developer): --> 0 localhost
debconf (developer): <-- GET onlyoffice/cluster-mode
debconf (developer): --> 0 false
debconf (developer): <-- GET onlyoffice/ds-port
debconf (developer): --> 0 80
debconf (developer): <-- GET onlyoffice/docservice-port
debconf (developer): --> 0 8000
debconf (developer): <-- GET onlyoffice/spellchecker-port
debconf (developer): --> 0 8080
debconf (developer): <-- GET onlyoffice/example-port
debconf (developer): --> 0 3000
Generating AllFonts.js, please wait...Done
debconf (developer): <-- STOP
dpkg: error processing package onlyoffice-documentserver (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 onlyoffice-documentserver


Code: Select all
dpkg  --unpack /var/cache/apt/archives/onlyoffice-documentserver_4.4.3-7_amd64.deb
(Reading database ... 245079 files and directories currently installed.)
Preparing to unpack .../onlyoffice-documentserver_4.4.3-7_amd64.deb ...
Preparing for shutdown, it can take a lot of time, please wait...Done
Stoping documentserver services...
onlyoffice-documentserver:spellchecker: stopped
onlyoffice-documentserver:metrics: stopped
onlyoffice-documentserver:gc: stopped
onlyoffice-documentserver:docservice: stopped
onlyoffice-documentserver:converter: stopped
Unpacking onlyoffice-documentserver (4.4.3-7) over (4.4.3-7) ...
dpkg: warning: subprocess old post-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
dpkg: ... it looks like that went OK
Processing triggers for fontconfig (2.11.0-6.7+b1) ...


Code: Select all
rm /var/lib/dpkg/info/onlyoffice-documentserver.postinst -f
sudo apt-get install onlyoffice-documentserver
Reading package lists... Done
Building dependency tree
Reading state information... Done
onlyoffice-documentserver is already the newest version (4.4.3-7).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up onlyoffice-documentserver (4.4.3-7) ...


It loads http://localhost/welcome/ but with 502 Bad Gateway nginx

Code: Select all
nginx.error.log
[error] 17070#17070: *107 connect() failed (111: Connection refused) while connecting to upstream, client: IPHIDDEN, server: , request: "GET /welcome/ HTTP/1.1", upstream: "http://[::1]:8000/welcome/", host: "localhost"
[error] 17070#17070: *107 connect() failed (111: Connection refused) while connecting to upstream, client: IPHIDDEN, server: , request: "GET /welcome/ HTTP/1.1", upstream: "http://127.0.0.1:8000/welcome/", host: "localhost"
[error] 17070#17070: *107 no live upstreams while connecting to upstream, client: IPHIDDEN, server: , request: "GET /welcome/ HTTP/1.1", upstream: "http://docservice/welcome/", host: "localhost"


Any help would be appreciated. Thanks.
DoubleJ
 
Posts: 2
Joined: Tue Sep 12, 2017 5:05 pm

Re: how to install document server in debian stretch (v9)

Postby DoubleJ » Wed Sep 13, 2017 2:19 pm

I was able to get "Document Server is running" by doing the following...

Code: Select all
apt-get install nginx
apt-get install nginx-extras
sudo apt purge onlyoffice-documentserver
sudo rm -rf /var/www/onlyoffice/documentserver
sudo apt-get --reinstall install onlyoffice-documentserver
rm /var/lib/dpkg/info/onlyoffice-documentserver.postinst -f
apt-get install onlyoffice-documentserver


I still received an error while installing but it did work. Would like to know still, what failed during the install process.
Keep an eye out on this github issue https://github.com/ONLYOFFICE/DocumentServer/issues/166 as this is where I got the idea to reinstall nginx. In my case, I believe there was a problem with the /etc/nginx/sites-available/default file.
DoubleJ
 
Posts: 2
Joined: Tue Sep 12, 2017 5:05 pm

Re: how to install document server in debian stretch (v9)

Postby Maxim » Thu Sep 14, 2017 6:42 am

Hello DoubleJ!
Great thanks for your information!
We tried to reproduce your issue on Debian 9 but have no luck, installation is ok.
Maxim
 
Posts: 1240
Joined: Tue Oct 11, 2016 2:34 pm


Return to Installation / Database

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests

cron