Jump to content

ownCloud - строим личное облачное хранилище


Recommended Posts

3 часа назад, ツЛешик сказал:

я инструкцию ищу актуальную на 2021

первая страница, первый пост, внизу:

Цитата

Изменено пользователем TheBB
upd

9 октября сего (2021) года, ещё новее нету.

 

Link to comment
Share on other sites

4 часа назад, TheBB сказал:

первая страница, первый пост, внизу:

Вроде делаю все от тутад по шагам, но как дохожу до mysql ошибки

 


BusyBox v1.33.1 (2021-08-22 06:41:01 UTC) built-in shell (ash)

~ # /opt/etc/init.d/S70mysqld start
~ # mysqladmin -u root password 'Passw0rd'
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/opt/var/run/mysqld/                                                                                 mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/opt/var/run/mysqld/mysqld.so                                                                                 ck' exists!
~ # /opt/etc/init.d/S70mysqld start
~ # mysqladmin -u root password 'Passw0rd'
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/opt/var/run/mysqld/                                                                                 mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/opt/var/run/mysqld/mysqld.so                                                                                 ck' exists!
~ # mysql_install_db
Could not find plugin directory.
Will continue with "/opt/lib/mariadb/plugin".
WARNING: The host 'Cloud' could not be looked up with /opt/bin/resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MariaDB version. The MariaDB daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MariaDB privileges !
Installing MariaDB/MySQL system tables in '/opt/var/lib/mysql' ...
2021-11-20 19:12:01 0 [ERROR] mysqld: Can't lock aria control file '/opt/var/lib                                                                                 /mysql/aria_log_control' for exclusive use, error: 11. Will retry for 30 seconds
2021-11-20 19:12:32 0 [ERROR] mysqld: Got error 'Could not get an exclusive lock; file is probably in use by another process' when trying to use aria control file '/opt/var/lib/mysql/aria_log_control'
2021-11-20 19:12:32 0 [ERROR] Plugin 'Aria' init function returned error.
2021-11-20 19:12:32 0 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.
2021-11-20 19:12:32 0 [Warning] InnoDB: Linux Native AIO interface is not supported on this platform. Please check your OS documentation and install appropriate binary of InnoDB.
2021-11-20 19:12:32 0 [Warning] InnoDB: Linux Native AIO disabled.
2021-11-20 19:12:32 0 [ERROR] InnoDB: mmap(134217728 bytes) failed; errno 12
2021-11-20 19:12:32 0 [ERROR] InnoDB: Cannot allocate memory for the buffer pool
2021-11-20 19:12:32 0 [ERROR] InnoDB: Database creation was aborted with error Generic error. You may need to delete the ibdata1 file before trying to start up again.
mysql_install_dbdouble free or corruption (out)
211120 19:12:32 [ERROR] mysqld got signal 6 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.

To report this bug, see https://mariadb.com/kb/en/reporting-bugs

We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.

Server version: 10.4.18-MariaDB
key_buffer_size=16777216
read_buffer_size=131072
max_used_connections=0
max_threads=153
thread_count=0
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 351739 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 0x0 thread_stack 0x30000
^Cmysql_install_db^C^Cmysql_install_dbmysql_install_db

 

Link to comment
Share on other sites

6 минут назад, ツЛешик сказал:
Could not find plugin directory.

Так вам же явно пишет,что не может найти путь....вы где-то с путями ошиблись....

Link to comment
Share on other sites

40 минут назад, ツЛешик сказал:

Вроде делаю все от тутад по шагам, но как дохожу до mysql ошибки

сделал по шагам (только "mariadb"):

Скрытый текст
~ # 
~ # opkg install mariadb-server mariadb-client-extra
Installing mariadb-server (10.4.18-1a) to root...
Downloading http://bin.entware.net/aarch64-k3.10/mariadb-server_10.4.18-1a_aarch64-3.10.ipk
Installing mariadb-common (1.0-2) to root...
Downloading http://bin.entware.net/aarch64-k3.10/mariadb-common_1.0-2_aarch64-3.10.ipk
Installing libaio (0.3.112-2) to root...
Downloading http://bin.entware.net/aarch64-k3.10/libaio_0.3.112-2_aarch64-3.10.ipk
Installing resolveip (2) to root...
Downloading http://bin.entware.net/aarch64-k3.10/resolveip_2_aarch64-3.10.ipk
Installing mariadb-server-base (10.4.18-1a) to root...
Downloading http://bin.entware.net/aarch64-k3.10/mariadb-server-base_10.4.18-1a_aarch64-3.10.ipk
Installing mariadb-client-extra (10.4.18-1a) to root...
Downloading http://bin.entware.net/aarch64-k3.10/mariadb-client-extra_10.4.18-1a_aarch64-3.10.ipk
Installing libedit (20210522-3.1-1) to root...
Downloading http://bin.entware.net/aarch64-k3.10/libedit_20210522-3.1-1_aarch64-3.10.ipk
Installing mariadb-client-base (10.4.18-1a) to root...
Downloading http://bin.entware.net/aarch64-k3.10/mariadb-client-base_10.4.18-1a_aarch64-3.10.ipk
Installing mariadb-client (10.4.18-1a) to root...
Downloading http://bin.entware.net/aarch64-k3.10/mariadb-client_10.4.18-1a_aarch64-3.10.ipk
Configuring mariadb-common.
Configuring libedit.
Configuring mariadb-client-base.
Configuring mariadb-client.
Configuring resolveip.
Configuring libaio.
Configuring mariadb-server-base.
Configuring mariadb-server.
Configuring mariadb-client-extra.
~ # 
~ # mysql_install_db
Could not find plugin directory.
Will continue with "/opt/lib/mariadb/plugin".
Installing MariaDB/MySQL system tables in '/opt/var/lib/mysql' ...
2021-11-20 19:48:45 0 [Warning] InnoDB: Linux Native AIO interface is not supported on this platform. Please check your OS documentation and install appropriate binary of InnoDB.
2021-11-20 19:48:45 0 [Warning] InnoDB: Linux Native AIO disabled.
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system


Two all-privilege accounts were created.
One is root@localhost, it has no password, but you need to
be system 'root' user to connect. Use, for example, sudo mysql
The second is root@localhost, it has no password either, but
you need to be the system 'root' user to connect.
After connecting you can set the password, if you would need to be
able to connect as any of these users with a password and without sudo

See the MariaDB Knowledgebase at http://mariadb.com/kb or the
MySQL manual for more instructions.

You can start the MariaDB daemon with:
cd '/opt' ; /opt/bin/mysqld_safe --datadir='/opt/var/lib/mysql'

You can test the MariaDB daemon with mysql-test-run.pl
cd '/opt/mysql-test' ; perl mysql-test-run.pl

Please report any problems at http://mariadb.org/jira

The latest information about MariaDB is available at http://mariadb.org/.
You can find additional information about the MySQL part at:
http://dev.mysql.com
Consider joining MariaDB's strong and vibrant community:
https://mariadb.org/get-involved/

~ # /opt/etc/init.d/S70mysqld start
~ # 
~ # /opt/etc/init.d/S70mysqld status
mysqld is already running
~ # 
~ # ls -al /opt/var/run/mysqld/
drwxr-xr-x    2 root     root          4096 Nov 20 19:51 .
drwxr-xr-x    5 root     root          4096 Nov 20 19:48 ..
-rw-rw----    1 root     root             5 Nov 20 19:51 mysqld.pid
srwxrwxrwx    1 root     root             0 Nov 20 19:51 mysqld.sock
~ # 
~ # mysqladmin -u root password 'Passw0rd'
~ # 
~ # mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 9
Server version: 10.4.18-MariaDB Source distribution

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> create database owncloud;
Query OK, 1 row affected (0.000 sec)

MariaDB [(none)]> \q
Bye
~ # 
~ # /opt/etc/init.d/S70mysqld restart
~ # 
~ # /opt/etc/init.d/S70mysqld status
mysqld is already running
~ # 
~ # ls -al /opt/var/run/mysqld/
drwxr-xr-x    2 root     root          4096 Nov 20 19:53 .
drwxr-xr-x    5 root     root          4096 Nov 20 19:48 ..
-rw-rw----    1 root     root             5 Nov 20 19:53 mysqld.pid
srwxrwxrwx    1 root     root             0 Nov 20 19:53 mysqld.sock
~ # 

 

 

Link to comment
Share on other sites

45 минут назад, TheBB сказал:

сделал по шагам (только "mariadb"):

А пробелма 

Ну вроде у нас логи совпадают только у меня 

 

есть 

 

WARNING: The host 'Cloud' could not be looked up with /opt/bin/resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MariaDB version. The MariaDB daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MariaDB privileges !

 

И далее уже полшла ошибка

Link to comment
Share on other sites

Я делаю все как вы описали в первом сообщений, у вас работает, у меня не поднмиается база

Чудес не бывает, есть значит какой-то нюанс, который вы не упомянули

Link to comment
Share on other sites

16 минут назад, ツЛешик сказал:

Пока так

echo "192.168.1.1 Cloud" >> /etc/hosts
ping -c3 $HOSTNAME
/opt/etc/init.d/S70mysqld start
/opt/etc/init.d/S70mysqld status

 

Link to comment
Share on other sites

Сделал как вы сказали хост прописал, предупреждение исчезло, но ошибка осталась

на это шаге mysql_install_db

 

Какой памаяти ему не хватате?


~ # mysql_install_db
Could not find plugin directory.
Will continue with "/opt/lib/mariadb/plugin".
Installing MariaDB/MySQL system tables in '/opt/var/lib/mysql' ...
2021-11-21 21:59:50 0 [ERROR] mysqld: Out of memory (Needed 130760704 bytes)
2021-11-21 21:59:50 0 [Warning] InnoDB: Linux Native AIO interface is not supported on this platform. Please check your OS documentation and install appropriate binary of InnoDB.
2021-11-21 21:59:50 0 [Warning] InnoDB: Linux Native AIO disabled.
2021-11-21 21:59:50 0 [ERROR] InnoDB: mmap(134217728 bytes) failed; errno 12
2021-11-21 21:59:50 0 [ERROR] InnoDB: Cannot allocate memory for the buffer pool
2021-11-21 21:59:50 0 [ERROR] InnoDB: Database creation was aborted with error Generic error. You may need to delete the ibdata1 file before trying to start up again.
double free or corruption (out)
211121 21:59:50 [ERROR] mysqld got signal 6 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.

To report this bug, see https://mariadb.com/kb/en/reporting-bugs

We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.

Server version: 10.4.18-MariaDB
key_buffer_size=16777216
read_buffer_size=131072
max_used_connections=0
max_threads=153
thread_count=0
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 351739 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 0x0 thread_stack 0x30000

PS вопрос такой можно ли подключиться по SSH к дсику OPKG и очистить его? Полнолстью, через веб интерфейс и SMB  не получается

Link to comment
Share on other sites

После заполнения админа и пароля и доступа к БД

Ловлю следуюущую ошибку

http://192.168.1.1:82/nextcloud/index.php

An error occurred.
Sorry, the page you are looking for is currently unavailable.
Please try again later.

If you are the system administrator of this resource then you should check the error log for details.

Faithfully yours, nginx.

 

Link to comment
Share on other sites

{
	"reqId": "YpHQiDthBlrmObIFXRhy",
	"level": 3,
	"time": "2021-11-21T20:36:08+00:00",
	"remoteAddr": "192.168.1.10",
	"user": "--",
	"app": "PHP",
	"method": "POST",
	"url": "/nextcloud/index.php",
	"message": "Allowed memory size of 33554432 bytes exhausted (tried to allocate 4096 bytes) at /opt/share/www/nextcloud/lib/private/App/AppStore/Fetcher/Fetcher.php#118",
	"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.114 Safari/537.36",
	"version": "22.2.3.0"
}

 

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...
  • 1 month later...
В 20.11.2021 в 14:19, TheBB сказал:

первая страница, первый пост, внизу:

9 октября сего (2021) года, ещё новее нету.

 

Это нормально, что при установке db maria ругается?
Спасибо

И можно ли прикрутить к марии веб интерфейс? phpmyadmin не нашел на форуме инфо об этом

Скрытый текст

mysql_install_db

Could not find plugin directory.

Will continue with "/opt/lib/mariadb/plugin".

WARNING: The host 'Keenetic_Giga' could not be looked up with /opt/bin/resolveip.

This probably means that your libc libraries are not 100 % compatible

with this binary MariaDB version. The MariaDB daemon, mysqld, should work

normally with the exception that host name resolving will not work.

This means that you should use IP addresses instead of hostnames

when specifying MariaDB privileges !

Installing MariaDB/MySQL system tables in '/opt/var/lib/mysql' ...

2022-02-18 19:18:57 0 [Warning] InnoDB: Linux Native AIO disabled.

2022-02-18 19:19:09 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.

OK

 

To start mysqld at boot time you have to copy

support-files/mysql.server to the right place for your system

 

 

Two all-privilege accounts were created.

One is root@localhost, it has no password, but you need to

be system 'root' user to connect. Use, for example, sudo mysql

The second is root@localhost, it has no password either, but

you need to be the system 'root' user to connect.

After connecting you can set the password, if you would need to be

able to connect as any of these users with a password and without sudo

 

See the MariaDB Knowledgebase at https://mariadb.com/kb or the

MySQL manual for more instructions.

 

You can start the MariaDB daemon with:

cd '/opt' ; /opt/bin/mysqld_safe --datadir='/opt/var/lib/mysql'

 

You can test the MariaDB daemon with mysql-test-run.pl

cd '/opt/mysql-test' ; perl mysql-test-run.pl

 

Please report any problems at https://mariadb.org/jira

 

The latest information about MariaDB is available at https://mariadb.org/.

You can find additional information about the MySQL part at:

https://dev.mysql.com

Consider joining MariaDB's strong and vibrant community:

https://mariadb.org/get-involved/

 

~ # mysqladmin -u root password 'Passw0rd'

mysqladmin: connect to server at 'localhost' failed

error: 'Can't connect to local server through socket '/opt/var/run/mysqld/mysqld.sock' (2)'

Check that mariadbd is running and that the socket: '/opt/var/run/mysqld/mysqld.sock' exists!

и интерфейс не такой красивый как у вас получается

 

Скрытый текст

1233292760_2022-02-1819_39_18.thumb.png.ad36f94db641d1f192e3ce0cf3e71430.png

 

Edited by aleeko
Еще ошибки
Link to comment
Share on other sites

  • 4 weeks later...

Господа, подскажите, пожалуйста:

1. Видеоплеер дает возможность выбирать разрешение?

2. По офисам (*.doc(x), *.xls(x)) возможно что-то делать?

Спасибо!

P.S. А есть альтернативы актуальные? Что-то ман для NextCloud не особо гуглится...

Edited by The_Immortal
Link to comment
Share on other sites

  • 1 month later...

Подскажите пожалуйста. 

Сейчас работает nginx с моим сервером и слушает порт 81 (обращаюсь 192.168.1.1:81). Где и что прописать в конфиге, чтобы и текущий сервер работал, и owncloud заработал, но при обращении на другой порт. Например 192.168.1.1:82.

Пытался править конфиг, добавить второй раздел server, перенести данные с конфига в шапке. Но наверное что-то не так сделал. Перестало вообще все работать. В том числе через консоль стало невозможно перезагрузить nginx.

Подскажете, как собрать в кучу 2 конфига? Или может кто сможет собрать 2 конфига в один?

Link to comment
Share on other sites

Доброго времени суток.

Делаю все по инструкции из 1 поста, столкнулся с проблемой, не устанавливается php7-pecl-mcrypt

/ # opkg install php7-pecl-mcrypt
Unknown package 'php7-pecl-mcrypt'.
Collected errors:
 * opkg_install_cmd: Cannot install package php7-pecl-mcrypt

Его заменили? Подскажите, что использовать и что это потянет за собой?

Link to comment
Share on other sites

В 28.04.2022 в 21:46, untraceab1e сказал:

Его заменили? Подскажите, что использовать и что это потянет за собой?

php7* owrt`шники удалили полностью, в keendev он остался из-за ext-ui (или переписывать всё на php8, или кильнуть ext-ui)

Переходите на php8.

  • Thanks 1
Link to comment
Share on other sites

41 минуту назад, Vitalii82 сказал:

Подскажите что не так делаю. СПС

`cat /opt/etc/entware_release && cat /opt/etc/opkg.conf`

  • Thanks 1
Link to comment
Share on other sites

1 час назад, TheBB сказал:

`cat /opt/etc/entware_release && cat /opt/etc/opkg.conf`

Я прошу прощения "я не волшебник я только учусь" Спс за помощь.

2138544942_2022-05-02164610.jpg.f03b79a34f4304874d56409cee84b5bf.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...