GithubHelp home page GithubHelp logo

onlyoffice / snap-documentserver Goto Github PK

View Code? Open in Web Editor NEW
21.0 24.0 6.0 219 KB

The ONLYOFFICE Document Server snap package for the snap package system

Home Page: https://snapcraft.io/onlyoffice-ds

License: GNU Affero General Public License v3.0

Shell 100.00%
snap presentation excel word xlsx xls spreadsheet onlyoffice snapcraft documentserver

snap-documentserver's Introduction

License ONLYOFFICE Docs

Overview

ONLYOFFICE Document Server is a free collaborative online office suite comprising viewers and editors for texts, spreadsheets and presentations, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.

Functionality

ONLYOFFICE Document Server includes the following editors:

  • ONLYOFFICE Document Editor
  • ONLYOFFICE Spreadsheet Editor
  • ONLYOFFICE Presentation Editor

The editors allow you to create, edit, save and export text, spreadsheet and presentation documents.

Installing ONLYOFFICE Document Server using Snapcraft command line tool

ONLYOFFICE Document Server is available in Snapcraft store as a snap package. A snap contains all the dependencies to run the application. To use it, all you need is snapd, a system to install and manage snaps. Snapd is included into most of modern distributions. You only need to either enable or install it. See the official snap project page for the snapd installation instructions.

For example, to install snapd under Ubuntu you need to run the commands:

# apt update
# apt install snapd

Now the editors can be easily installed using the following command:

# snap install onlyoffice-ds

Running ONLYOFFICE Document Server

Once the installation is over, ONLYOFFICE Document Server will be avalible at http://localhost

You can check status of ONLYOFFICE Document Server here

Uninstalling ONLYOFFICE Document Server

To remove the snap containing ONLYOFFICE editors use the following command:

# snap remove onlyoffice-ds

Configuration

Running ONLYOFFICE Document Server on Different Port

By default, the snap will listen on port 80. If you'd like to change the HTTP port (say, to port 8888), run:

# snap set onlyoffice-ds onlyoffice.ds-port=8888

MySQL port configuration

By default, MySQL uses port 3306. You can also change the database port, using the command:

# snap set onlyoffice-ds onlyoffice.db-port=3307

Running ONLYOFFICE Document Server using HTTPS

Access to the onlyoffice application can be secured using SSL so as to prevent unauthorized access. While a CA certified SSL certificate allows for verification of trust via the CA, a self signed certificates can also provide an equal level of trust verification as long as each client takes some additional steps to verify the identity of your website. Below the instructions on achieving this are provided.

To secure the application via SSL basically two things are needed:

  • Private key (.key)
  • SSL certificate (.crt)

When using CA certified certificates, these files are provided to you by the CA. When using self-signed certificates you need to generate these files yourself. Skip the following section if you are have CA certified SSL certificates.

Generation of Self Signed Certificates

Generation of self-signed SSL certificates involves a simple 3 step procedure.

STEP 1: Create the server private key

$ openssl genrsa -out onlyoffice.key 2048

STEP 2: Create the certificate signing request (CSR)

$ openssl req -new -key onlyoffice.key -out onlyoffice.csr

STEP 3: Sign the certificate using the private key and CSR

$ openssl x509 -req -days 365 -in onlyoffice.csr -signkey onlyoffice.key -out onlyoffice.crt

You have now generated an SSL certificate that's valid for 365 days.

If you'd like to use Example with Self Signed Certificates then you need to allow to use unauthorized storage.

Strengthening the server security

This section provides you with instructions to strengthen your server security. To achieve this you need to generate stronger DHE parameters.

$ openssl dhparam -out dhparam.pem 2048

Installation of the SSL Certificates

Out of the four files generated above, you need to install the onlyoffice.key, onlyoffice.crt and dhparam.pem files at the onlyoffice server. The CSR file is not needed, but do make sure you safely backup the file (in case you ever need it again).

The default path that the onlyoffice application is configured to look for the SSL certificates is at /var/snap/onlyoffice-ds/current/var/www/onlyoffice/Data/certs.

The /var/snap/onlyoffice-ds/current/var/www/onlyoffice/Data/ path is the path of the data store, which means that you have to copy the files into it.

# cp onlyoffice.key /var/snap/onlyoffice-ds/current/var/www/onlyoffice/Data/certs/
# cp onlyoffice.crt /var/snap/onlyoffice-ds/current/var/www/onlyoffice/Data/certs/
# cp dhparam.pem /var/snap/onlyoffice-ds/current/var/www/onlyoffice/Data/certs/

Then you must restart ONLYOFFICE Document Server to work on ssl, run:

# snap restart onlyoffice-ds

You are now just one step away from having our application secured.

If you want to return ONLYOFFICE Document Server to work on HTTP, delete files from the /var/snap/onlyoffice-ds/current/var/www/onlyoffice/Data/certs and restart ONLYOFFICE Document Server.

# rm /var/snap/onlyoffice-ds/current/var/www/onlyoffice/Data/certs/onlyoffice.*
# rm /var/snap/onlyoffice-ds/current/var/www/onlyoffice/Data/certs/dhparam.pem
# snap restart onlyoffice-ds

Running ONLYOFFICE Document Server on Different SSL Port

By default, HTTPS SSL port is 443. If you'd like to change it (say, to port 444), run:

# snap set onlyoffice-ds onlyoffice.ds-ssl-port=444

Allow document server to use unauthorized storage

By default, document server is prevented from using an unauthorized storage. To allow it, run:

# snap set onlyoffice-ds onlyoffice.use-unautorized-storage=true

Set document server to run on loopback interface

By default, document server do not run on loopback interface. To set it, run:

# snap set onlyoffice-ds onlyoffice.loopback=true

JSON Web Token

  • jwt-enabled: Specifies the enabling the JSON Web Token validation by the ONLYOFFICE Document Server. Defaults to true.
  • jwt-secret: Defines the secret key to validate the JSON Web Token in the request to the ONLYOFFICE Document Server. Random string by default.
  • jwt-header: Defines the http header that will be used to send the JSON Web Token. Defaults to Authorization.

If you'd like to change the JSON Web Token parameters, run:

# snap set onlyoffice-ds onlyoffice.key=value

Allow document server to use WOPI protocol

By default, document server is prevented from using a WOPI protocol. To allow it, run:

# snap set onlyoffice-ds onlyoffice.wopi=true

Enabling the Example

By default, example is not enabled. You can enable the example, using the command:

# snap set onlyoffice-ds onlyoffice.example-enabled=true

Project Information

Official website: https://www.onlyoffice.com/apps.aspx

Code repository: https://github.com/ONLYOFFICE/DocumentServer

User Feedback and Support

If you have any problems with or questions about ONLYOFFICE Document Server, please visit our official forum to find answers to your questions: forum.onlyoffice.com or you can ask and answer ONLYOFFICE development questions on Stack Overflow.

snap-documentserver's People

Contributors

agolybev avatar igo-reek avatar romandemidov avatar svetlana81 avatar t0rtila avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

snap-documentserver's Issues

Unable to change HTTPS port.

The document server works perfectly on port 443. The command 'snap set onlyoffice-ds onlyoffice.ds-ssl-port=444' provides the following output:

Run configure hook of "onlyoffice-ds" snap
restart of [onlyoffice-ds.documentserver] ^[[0m^[[?25h^[[K

The server continues to run on port 443. I've tried restarting the snap after making this change. I've tried multiple other ports (many of them above 1024) with the same results.

OS: Ubuntu 18.04

Update:
I've just tried updating '/var/snap/onlyoffice-ds/10/etc/onlyoffice/documentserver/nginx/ds.conf' manually. Changes to the HTTP port are kept when restarting the snap. Changes to the HTTPS port seem to be written back to 443.

Healthcheck is false - mysqld did not start correctly

In version 63 and 66, document server does not work anymore, healthcheck is false.

Checking some log files, I have the following finding: mysqld has not been started, port is Ok and free but daemon not started.

The logs tell me about some missing plugin libs and an needed update of database tables:

2022-03-04T07:58:54.656015Z mysqld_safe Logging to '/var/snap/onlyoffice-ds/66/mysql/error.log'.
2022-03-04T07:58:54.656015Z mysqld_safe Logging to '/var/snap/onlyoffice-ds/66/mysql/error.log'.
2022-03-04T07:58:54.672427Z mysqld_safe Starting mysqld daemon with databases from /var/snap/onlyoffice-ds/66/mysql
2022-03-04T07:58:54.672427Z mysqld_safe Starting mysqld daemon with databases from /var/snap/onlyoffice-ds/66/mysql
2022-03-04T07:58:54.843155Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2022-03-04T07:58:54.843211Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2022-03-04T07:58:54.843228Z 0 [Note] /snap/onlyoffice-ds/66/bin/mysqld (mysqld 5.7.27) starting as process 3561687 ...
2022-03-04T07:58:54.845955Z 0 [Note] InnoDB: PUNCH HOLE support available
2022-03-04T07:58:54.845973Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2022-03-04T07:58:54.845976Z 0 [Note] InnoDB: Uses event mutexes
2022-03-04T07:58:54.845979Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2022-03-04T07:58:54.845981Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-03-04T07:58:54.845983Z 0 [Note] InnoDB: Using Linux native AIO
2022-03-04T07:58:54.846146Z 0 [Note] InnoDB: Number of pools: 1
2022-03-04T07:58:54.846214Z 0 [Note] InnoDB: Using CPU crc32 instructions
2022-03-04T07:58:54.847198Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2022-03-04T07:58:54.853152Z 0 [Note] InnoDB: Completed initialization of buffer pool
2022-03-04T07:58:54.866148Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2022-03-04T07:58:54.871791Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2022-03-04T07:58:54.871868Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2022-03-04T07:58:54.902490Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2022-03-04T07:58:54.903042Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2022-03-04T07:58:54.903049Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2022-03-04T07:58:54.903241Z 0 [Note] InnoDB: Waiting for purge to start
2022-03-04T07:58:54.953384Z 0 [Note] InnoDB: 5.7.27 started; log sequence number 1210075
2022-03-04T07:58:54.953537Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/snap/onlyoffice-ds/66/mysql/ib_buffer_pool
2022-03-04T07:58:54.953597Z 0 [Note] InnoDB: Buffer pool(s) load completed at 220304  8:58:54
2022-03-04T07:58:54.953669Z 0 [ERROR] Can't open shared library '/snap/onlyoffice-ds/66/lib/plugin/provider_bzip2' (errno: 2 /snap/onlyoffice-ds/66/lib/plugin/provider_bzip2: cannot open shared object file: No such file or directory)
2022-03-04T07:58:54.953675Z 0 [ERROR] Couldn't load plugin named 'provider_bzip2' with soname 'provider_bzip2'.
2022-03-04T07:58:54.953683Z 0 [ERROR] Can't open shared library '/snap/onlyoffice-ds/66/lib/plugin/provider_lz4' (errno: 2 /snap/onlyoffice-ds/66/lib/plugin/provider_lz4: cannot open shared object file: No such file or directory)
2022-03-04T07:58:54.953685Z 0 [ERROR] Couldn't load plugin named 'provider_lz4' with soname 'provider_lz4'.
2022-03-04T07:58:54.953691Z 0 [ERROR] Can't open shared library '/snap/onlyoffice-ds/66/lib/plugin/provider_lzma' (errno: 2 /snap/onlyoffice-ds/66/lib/plugin/provider_lzma: cannot open shared object file: No such file or directory)
2022-03-04T07:58:54.953693Z 0 [ERROR] Couldn't load plugin named 'provider_lzma' with soname 'provider_lzma'.
mysqld: Table 'mysql.plugin' doesn't exist
2022-03-04T07:58:54.953739Z 0 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
2022-03-04T07:58:54.953794Z 0 [ERROR] unknown variable 'provider_bzip2=force_plus_permanent'
2022-03-04T07:58:54.953797Z 0 [ERROR] Aborting

2022-03-04T07:58:54.953801Z 0 [Note] Binlog end
2022-03-04T07:58:54.953823Z 0 [Note] Shutting down plugin 'ngram'
2022-03-04T07:58:54.953826Z 0 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2022-03-04T07:58:54.953852Z 0 [Note] Shutting down plugin 'MRG_MYISAM'
2022-03-04T07:58:54.953854Z 0 [Note] Shutting down plugin 'MyISAM'
2022-03-04T07:58:54.953859Z 0 [Note] Shutting down plugin 'INNODB_SYS_VIRTUAL'
2022-03-04T07:58:54.953861Z 0 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2022-03-04T07:58:54.953862Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2022-03-04T07:58:54.953864Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2022-03-04T07:58:54.953865Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2022-03-04T07:58:54.953867Z 0 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2022-03-04T07:58:54.953868Z 0 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2022-03-04T07:58:54.953870Z 0 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2022-03-04T07:58:54.953871Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2022-03-04T07:58:54.953873Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2022-03-04T07:58:54.953874Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2022-03-04T07:58:54.953876Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2022-03-04T07:58:54.953878Z 0 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2022-03-04T07:58:54.953879Z 0 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2022-03-04T07:58:54.953881Z 0 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2022-03-04T07:58:54.953882Z 0 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2022-03-04T07:58:54.953884Z 0 [Note] Shutting down plugin 'INNODB_METRICS'
2022-03-04T07:58:54.953890Z 0 [Note] Shutting down plugin 'INNODB_TEMP_TABLE_INFO'
2022-03-04T07:58:54.953891Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2022-03-04T07:58:54.953893Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2022-03-04T07:58:54.953894Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2022-03-04T07:58:54.953896Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2022-03-04T07:58:54.953897Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2022-03-04T07:58:54.953899Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2022-03-04T07:58:54.953900Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM'
2022-03-04T07:58:54.953902Z 0 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2022-03-04T07:58:54.953904Z 0 [Note] Shutting down plugin 'INNODB_CMP'
2022-03-04T07:58:54.953905Z 0 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2022-03-04T07:58:54.953907Z 0 [Note] Shutting down plugin 'INNODB_LOCKS'
2022-03-04T07:58:54.953908Z 0 [Note] Shutting down plugin 'INNODB_TRX'
2022-03-04T07:58:54.953910Z 0 [Note] Shutting down plugin 'InnoDB'
2022-03-04T07:58:54.953970Z 0 [Note] InnoDB: FTS optimize thread exiting.
2022-03-04T07:58:54.954040Z 0 [Note] InnoDB: Starting shutdown...
2022-03-04T07:58:55.054198Z 0 [Note] InnoDB: Dumping buffer pool(s) to /var/snap/onlyoffice-ds/66/mysql/ib_buffer_pool
2022-03-04T07:58:55.054307Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 220304  8:58:55
2022-03-04T07:58:56.560086Z 0 [Note] InnoDB: Shutdown completed; log sequence number 1210094
2022-03-04T07:58:56.560936Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2022-03-04T07:58:56.560945Z 0 [Note] Shutting down plugin 'MEMORY'
2022-03-04T07:58:56.560949Z 0 [Note] Shutting down plugin 'CSV'
2022-03-04T07:58:56.560951Z 0 [Note] Shutting down plugin 'sha256_password'
2022-03-04T07:58:56.560953Z 0 [Note] Shutting down plugin 'mysql_native_password'
2022-03-04T07:58:56.561038Z 0 [Note] Shutting down plugin 'binlog'
2022-03-04T07:58:56.561122Z 0 [Note] /snap/onlyoffice-ds/66/bin/mysqld: Shutdown complete

2022-03-04T07:58:56.598779Z mysqld_safe mysqld from pid file /tmp/pids/mysql.pid ended
2022-03-04T07:58:56.598779Z mysqld_safe mysqld from pid file /tmp/pids/mysql.pid ended

Command missing to set HTTPS port

We can set the HTTP port with that:
snap set onlyoffice-ds onlyoffice.ds-port=8888

But there does not seem to to be one for HTTPS port.

Please add something similar like:
snap set onlyoffice-ds onlyoffice.ds-sport=4433

Cheers
jassonmc

Save as PDF doesn't output text from Presentation Slides

I want to report a bug.

Presentations doesn't save text from slides onto pages when saved as PDF.

Create a slide with text and images on it using the provided templates, notice lack of text in resulting PDF.

Expect text to be saved into PDF as text. Not present or visible at all.

Unaware if it worked in previous versions.

DocumentServer version:
Community Edition Installed via Snap 5.4.0

Operating System:
Ubuntu Server 18.04 - Integrated with Nextcloud.

Browser version:
Windows Google Chrome Version 79.0.3945.79

Snap auto update broke configuration

Hello,

It seems that yesterday, onlyoffice-ds got updated automatically on my server.
Done yesterday at 17:34 CET yesterday at 17:35 CET Download snap "onlyoffice-ds" (25) from channel "latest/stable"

the automatic restart was unable to perform due to nginx ports already in use.

The file /var/snap/onlyoffice-ds/25/etc/onlyoffice/documentserver/nginx/ds-ssl.conf.tmpl seems to ignore the ds-port settings

Also, I tried to find the recent changes to this file in this repository by searching for "#HTTP host for internal services" or "127.0.0.1" that I can see in the file on my server and it yields no results.

here is the relevant section of the file that is causing problem (and that I could not find in this repository):

server {
  listen 0.0.0.0:80;
  listen [::]:80 default_server;
  server_name _;
  server_tokens off;

  ## Redirects all traffic to the HTTPS host
  root /nowhere; ## root doesn't have to be a valid path since we are redirecting
  rewrite ^ https://$host$request_uri? permanent;
}

#HTTP host for internal services
server {
  listen 127.0.0.1:80;
  listen [::1]:80;
  server_name localhost;
  server_tokens off;

  include /etc/nginx/includes/ds-common.conf;
  include /etc/nginx/includes/ds-docservice.conf;
}

I'm not familiar with snap release cycle so I'm maybe searching at the wrong place but something feels not right anyway.

Changing the port for SSL doesn't work.

I did everything told in instructions and please have a look at my last commands and results:
"kalmer@test:$ sudo snap set onlyoffice-ds onlyoffice.ds-ssl-port=270
kalmer@test:
$ sudo netstat -plunt|grep :270
kalmer@test:~$ "
As we see, nothing runs on port 270 after changing the port.

OnlyOffice is messing up with the default mysql server

This issue is unique.

  • I have used the search tool and did not find an issue describing my bug.

Operating System of DocumentServer

Linux (DEB package)

Version information

Latest snap

Expected Behavior

I would expect to use OnlyOffice and follow MySQL tutorials separately.

Actual Behavior

OnlyOffice is messing up with the default MySQL server, so when I run "sudo mysql" I get the following error: "ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)"

Reproduction Steps

  1. Install OnlyOffice via snap
  2. Install MySQL server via apt
  3. Run "sudo mysql"

Additional information

Ubuntu 20.04

run hook "install" exceeded maximum runtime of 10min0s

Try to disable the Community Document Server and use onlyoffice-dc instead.
snap install onlyoffice-ds
get error

  • Run install hook of "onlyoffice-ds" snap if present (run hook "install"; exceeded maximum runtime of 10min0s)

sanp version
sanp 2.53.4
snapd 2.53.4
series 16
ubuntu 20.04
kernel 5.4.0-65-generic

JSON Web Token

How to enable JWT settings and edit it for ONLYOFFICE Document Server version 5.5 installed on Ubuntu 18.4 LTS?

Capture2

The problem is that I can't find default.json file in /etc/onlyoffice/documentserver/ or other paths.

Error downloading the document file to be converted

I am having an issue connecting OnlyOffice to Nextcloud. I believe it is do to both servers using self signed certs.
I am trying to set

"requestDefaults": {
"rejectUnauthorized": false
}

in /var/snap/onlyoffice-ds/current/etc/onlyoffice/documentserver/local.conf. Everytime I change it to false it reverts back to true.

Is there a snap command or a better way to change that value?

How do I hide the welcome page?

I tried commenting out the relevant line of text in /var/snap/onlyoffice-ds/current/etc/onlyoffice/documentserver/nginx/includes/ds-docservice.conf. But when I restarted the whole snap package, the page was still there. I double checked the file, and the line is still commented out. So how do I turn it off?

Documentation

Thanks for this snap.

Is there any documentation available ?
How to change default port, switch to https, assign a domain...etc?

Thanks.

Modifications are lost in documents.

Hello,

Some of my users are reporting that they are losing changes that they made in documents. It seems to have started 6 days ago and I can see in the snapd logs that onlyoffice-ds was updated 6 days ago.

I haven't been able to reproduce the issue yet. I'm still investigating the issue.

Do you have reports about that or do you know how the last update could maybe cause that ? Any clues could be helpful at this point. Sorry for the lack of info about this one. I'll update this issue if I find something.

What to do if I have SSL with letsencrypt?

Hello, I have on my server already Traccar Server installed and I use No-ip and letsencrypt. I have files in

/etc/letsencrypt/live/mydomainname.ddns.net/:
cert.pem  chain.pem  fullchain.pem  privkey.pem

Can I use this files or I have to generate new with openssl like in tutorial?
Regards.

Auto update broke service again.

Hi,
Came back today to my user complaining that onlyoffice is down.

Here's the log of the machine

Mar 29 14:15:38 nextcloud systemd[1]: snap.onlyoffice-ds.nginx.service: Main process exited, code=exited, status=1/FAILURE
Mar 29 14:15:38 nextcloud systemd[1]: snap.onlyoffice-ds.nginx.service: Failed with result 'exit-code'.
Mar 29 14:15:39 nextcloud systemd[1]: snap.onlyoffice-ds.nginx.service: Service hold-off time over, scheduling restart.
Mar 29 14:15:39 nextcloud systemd[1]: snap.onlyoffice-ds.nginx.service: Scheduled restart job, restart counter is at 235.
Mar 29 14:15:39 nextcloud systemd[1]: Stopped Service for snap application onlyoffice-ds.nginx.
Mar 29 14:15:39 nextcloud systemd[1]: Started Service for snap application onlyoffice-ds.nginx.
Mar 29 14:15:39 nextcloud onlyoffice-ds.nginx[4706]: nginx: [emerg] bind() to 127.0.0.1:80 failed (98: Address already in use)
Mar 29 14:15:39 nextcloud onlyoffice-ds.nginx[4706]: nginx: [emerg] bind() to [::1]:80 failed (98: Address already in use)

Nowhere is specified port 80 in the configuration :

root@nextcloud:/var/log# snap get onlyoffice-ds onlyoffice.ds-port
8888
root@nextcloud:/var/log# snap get onlyoffice-ds onlyoffice.ds-ssl-port
444

Can you tell me why is this happening ?

Integration with Nextcloud

For folks who are struggling with integration with integrating OnlyOffice with Nextcloud, if you're using a private address to access it, use
sudo snap set onlyoffice-ds onlyoffice.allow-private-ip-address=true

how to enable wopi?

Before you get started with a demo sample of ONLYOFFICE Docs, please enable the WOPI protocol.
Set the wopi.enable parameter in the Document Server configuration file to true and restart ONLYOFFICE Docs.

I tried everything, all failed :(

apparmor issues in snap

[527108.819297] audit: type=1400 audit(1652772942.981:71): apparmor="DENIED" operation="exec" profile="snap.onlyoffice-ds.mysql" name="/bin/systemctl" pid=929284 comm="mysql.server" requested_mask="x" denied_mask="x" fsuid=0 ouid=0
[527111.148204] audit: type=1400 audit(1652772945.313:72): apparmor="DENIED" operation="chmod" profile="snap.onlyoffice-ds.mysql"name="/tmp/" pid=929377 comm="chmod" requested_mask="w" denied_mask="w" fsuid=0 ouid=0
[527111.213828] audit: type=1400 audit(1652772945.377:73): apparmor="DENIED" operation="open" profile="snap.onlyoffice-ds.mysql" name="/etc/mysql/mariadb.cnf" pid=929432 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[527111.225913] audit: type=1400 audit(1652772945.389:74): apparmor="DENIED" operation="chmod" profile="snap.onlyoffice-ds.mysql"name="/tmp/" pid=929444 comm="chmod" requested_mask="w" denied_mask="w" fsuid=0 ouid=0
[527111.275668] audit: type=1400 audit(1652772945.441:75): apparmor="DENIED" operation="exec" profile="snap.onlyoffice-ds.mysql" name="/bin/systemctl" pid=929502 comm="mysql.server" requested_mask="x" denied_mask="x" fsuid=0 ouid=0
[527111.291022] audit: type=1400 audit(1652772945.453:76): apparmor="DENIED" operation="open" profile="snap.onlyoffice-ds.mysql" name="/etc/mysql/mariadb.cnf" pid=929529 comm="my_print_defaul" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[527111.316492] audit: type=1400 audit(1652772945.481:77): apparmor="DENIED" operation="open" profile="snap.onlyoffice-ds.mysql" name="/etc/mysql/mariadb.cnf" pid=929578 comm="my_print_defaul" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[527111.429281] audit: type=1400 audit(1652772945.593:78): apparmor="DENIED" operation="open" profile="snap.onlyoffice-ds.mysql" name="/etc/mysql/mariadb.cnf" pid=929833 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[527112.635586] audit: type=1400 audit(1652772946.801:79): apparmor="DENIED" operation="capable" profile="snap.onlyoffice-ds.rabbitmq" pid=930073 comm="async_54" capability=1  capname="dac_override"
[527113.958263] audit: type=1400 audit(1652772948.121:80): apparmor="DENIED" operation="exec" profile="snap.onlyoffice-ds.rabbitmq" name="/bin/df" pid=930211 comm="sh" requested_mask="x" denied_mask="x" fsuid=0 ouid=0
[527233.978724] audit: type=1400 audit(1652773068.147:81): apparmor="DENIED" operation="exec" profile="snap.onlyoffice-ds.rabbitmq" name="/bin/df" pid=930421 comm="sh" requested_mask="x" denied_mask="x" fsuid=0 ouid=0
[527353.980678] audit: type=1400 audit(1652773188.149:82): apparmor="DENIED" operation="exec" profile="snap.onlyoffice-ds.rabbitmq" name="/bin/df" pid=930854 comm="sh" requested_mask="x" denied_mask="x" fsuid=0 ouid=0

Welcome page on main page

Install from snap: sudo snap install onlyoffice-ds. All fine, but after install i open page 192.168.1.10 and have redirect on 192.168.1.10/welcome/ and nothing happened next

OnlyOffice 6.3.0 snap wont work with NC 21 + OO 7.0.2.

Do you want to request a feature or report a bug?
Bug report ...

What is the current behavior?
Trows error and Nextcloud 21.0.1 with OnlyOffice Plugin version 7.0.2 will not save and use OnlyOffice 6.3.0 provided from a snap, where it did use to work with 6.2.2.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
image

What is the expected behavior?
Settings saved and a usable OnlyOffice Document Server.

Did this work in previous versions of DocumentServer?
Yes, after snap revert onlyoffice-ds to 6.2.2 all works fine.

DocumentServer version:
6.3.0 - snap

Operating System:
Ubuntu 20.04 LTS

Browser version:
Any ...

With both versions I've enabled the JWT settings using these commands:

snap set onlyoffice-ds onlyoffice.jwt-enabled=true
snap set onlyoffice-ds onlyoffice.jwt-secret=supersecretstring

Something went wrong during installation

Hello, I've installed onlyoffice-ds using snap and I see "Something went wrong during installation" when I visit my domain and the port.

I'm on Ubuntu 18.04.3 LTS (GNU/Linux 4.15.0-62-generic x86_64)

I don't see any logs about why from the little I've poked around. Where should I look? Does anyone have any suggestions?

Screen Shot 2019-09-28 at 6 58 05 PM

Automatic update from 25 to 28 broke SSL configuration

Hello,

After notification from the users that onlyoffice was unreachable, I noticed that the server was not listening on the SSL port anymore.

The folder /var/snap/onlyoffice-ds/25/var/www/onlyoffice/Data containing the certs folder with the SSL certificates is not present in /var/snap/onlyoffice-ds/28/var/www/onlyoffice/

The following commands were enough to solve the issue.

# cp -r /var/snap/onlyoffice-ds/25/var/www/onlyoffice/Data /var/snap/onlyoffice-ds/current/var/www/onlyoffice/
# snap restart onlyoffice-ds

SSH Keys installed, no API documentation why.

I am still in the process of getting OnlyOffice to work, and while going through journalctl I found that 'snap install onlyoffice-ds' creates multiple SSH keys. Auditing requires documentation for each one and I can't find any stated reason for it in the documents on any of the sites.

Could someone point it out if I am missing where it is noted otherwise this project will have to be sidelined for us.

ONLYOFFICE cannot be reached. Please contact admin

so with snapd all is good i can as admin use onlyoffice but users when try to open a file the get the message ONLYOFFICE cannot be reached. Please contact admin
so what do i have to change here for users to be able to use onlyoffice as well???

thanks

Changing default settings when creating a new document

Hello,

This is more of a question or a Feature Request that an issue.

I was wondering if it is possible to change some of the "defaults" when creating a new document?

Specifically, I would like to change the following defaults:

  • Default Font from Arial to something else
  • Default Font Size from 11 to 12
  • Default Unit of Measurement from Centimeter to Inch
  • Default Page Size from A4 (8.27" x 11.69") to US Letter (8.5" x 11")

Is this possible with the Snap version?

Please advise!

Thanks,
Mike

Nextcloud Snap + OnlyOffice Snap + HAProxy = Bad healthcheck status Error

Using Snap Store I installed on my home server an instance of NextCloud, OnlyOffice (and other services). HAProxy handles the SSL and is configured with all the services and runs as expected with no errors.

going to localhost:6699 or onlyoffice.domain.com will redirect me to the welcome page of OnlyOffice.
going to localhost:81 or nextcloud.domain.com will redirect me to the front page of NextCloud.
I dont know if this is relevant but my Plex Server is behind localhost:32400 or plex.domain.com.

In NextCloud i have installed Nextcloud ONLYOFFICE integration app and tried to configure it. Sadly giving either one of http://localhost:6699/ or https://onlyoffice.domain.com/ will result in an error regardless if certificate verification is enabled or not:

Error | onlyoffice | Exception: Bad healthcheck status

/var/snap/nextcloud/29223/nextcloud/extra-apps/onlyoffice/controller/settingscontroller.php - line 172:OCA\Onlyoffice\DocumentService->checkDocServiceUrl()

/snap/nextcloud/29223/htdocs/lib/private/AppFramework/Http/Dispatcher.php - line 217:OCA\Onlyoffice\Controller\SettingsController->SaveAddress()

/snap/nextcloud/29223/htdocs/lib/private/AppFramework/Http/Dispatcher.php - line 126:OC\AppFramework\Http\Dispatcher->executeController()

/snap/nextcloud/29223/htdocs/lib/private/AppFramework/App.php - line 156:OC\AppFramework\Http\Dispatcher->dispatch()

/snap/nextcloud/29223/htdocs/lib/private/Route/Router.php - line 302:OC\AppFramework\App::main()

/snap/nextcloud/29223/htdocs/lib/base.php - line 1006:OC\Route\Router-match()

/snap/nextcloud/29223/htdocs/index.php - line 36:OC::handleRequest()

I have tried adding 'allow_local_remote_servers' => true, to Nextcloud Cofig File .. did dot help.
what steps should i take to debug OnlyOffice to find where the problem is?

"The file size exceeds the limitation set for your server" - on Onlyoffice SNAP version with Nextcloud.

I've seen issues opened concerning this problem with different versions of the Onlyoffice document server, such as ONLYOFFICE/DocumentServer#1299, ONLYOFFICE/DocumentServer#685 and ONLYOFFICE/Docker-DocumentServer#354.

However, as I have installed Onlyoffice on my server using the Snap package provided by the snap store, there is no /etc/onlyoffice directory on my system. I am aware of the sudo snap set onlyoffice-ds command which I used to set up the "secret" and the ports required, but I'm not sure if that can be applied on my current situation, and I also have not found any documentation on how to manage that part of the configuration on a server installed from Snap.

Thank you in advance for pointing me towards any resources regarding the issue.

Changing port is not affected

  1. Start Ubuntu 18.04.
  2. Install snap
sudo apt update
sudo apt install snapd
  1. Run onlyoffice-ds
    snap install onlyoffice-ds --beta
  2. Try to change port
    sudo snap set onlyoffice-ds onlyoffice.ds-port=8888
  3. Check nginx config for changes
server {
  listen 0.0.0.0:80;
  listen [::]:80 default_server;
...
}

Spreadsheet changes not save

Hello, I installed Onlyoffice 5.4 and Nextcloud 16.0.5 installed on Ubuntu 18.04.3 using Snap.
After doing some setup, changes done for word and powerpoint are saved but not spreadsheet.

There is this error in the converter out.log after I edit a spreadsheet, but none if I edit word or powerpoint.

[2020-01-09T12:14:40.552] [ERROR] nodeJS - stderr (id=278330130_2252):change_code: Ma.KRd(z,Ea.TP,Ea.$ba,Ea.V4,Ea.t2b,Ea.G7)}AscFonts.hV=!1;c=this.jVa();a.Asc.editor.r3a(c,function(){if(e.FO.wk.YA)for(var a in y)if(vc(y[a])&&vc(y[a].Bg)&&vc(y[a].Bg.controller)){var c=y[a].Bg.m8e();c&&(c.Ua&&AscCommon.Rd.u5(c.Ua),c.xa&&AscCommon.Rd.u5(c.xa),c.ya&&AscCommon.Rd.u5(c.ya));y[a].Bg.Rdf()}Qe.c0b=!0;Qe.G_b=!0;Ma.pcd(null,z,!1);pb.Gt();e.FT=!1;e.jFc=e.V8a();null!=d&&d()})}else null!=d&&d()};Ua.prototype.FIf=function(c,d,e){if(null!=d){this.FT=!0;if(null==c){c=a.Asc.editor.ud.oba;for(var h in c)vc(c[h])&&
change: Uncaught TypeError: Cannot read property 'oba' of null
DoctRenderer:<result><error index="-2" /></result>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.