OwnCloud Install - No packages matching

Status
Not open for further replies.

Visseroth

Guru
Joined
Nov 4, 2011
Messages
546
So I'm trying to do the OwnCloud install using.....

https://forums.freenas.org/index.ph...ing-nginx-php-fpm-and-mysql.17786/#post-95880

But when I try and do the pkg install I get

Code:
Updating repository catalogue
pkg: No packages matching 'mariadb100-server' available in the repositories
pkg: No packages matching 'php56-extensions' available in the repositories
pkg: No packages matching 'php56-bz2' available in the repositories
pkg: No packages matching 'php56-curl' available in the repositories
pkg: No packages matching 'php56-exif' available in the repositories
pkg: No packages matching 'php56-fileinfo' available in the repositories
pkg: No packages matching 'php56-gd' available in the repositories
pkg: No packages matching 'php56-mbstring' available in the repositories
pkg: No packages matching 'php56-mcrypt' available in the repositories
pkg: No packages matching 'php56-pdo_mysql' available in the repositories
pkg: No packages matching 'php56-openssl' available in the repositories
pkg: No packages matching 'php56-zip' available in the repositories
pkg: No packages matching 'php56-zlib' available in the repositories


I've tried adding /usr/local/etc/pkg.conf but it tells me that pkg.conf is depreciated.

Any help is appreciated.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
I'm not able to duplicate this. Can you confirm that you did the 'pkg upgrade' and 'pkg install (bunch of stuff)' from inside the jail? I just set up a fresh jail and did those commands and it worked without issue.
 

Visseroth

Guru
Joined
Nov 4, 2011
Messages
546
OK, Starting again. I added the jail, set the IP, Subnet, gateway and it is created.
I then open the command prompt and type passwd to set the root password
Then type pkg update and it processes digests.txz and packagesite.txz receive the error "pkg: package field incomplete: comment, pkg: Unable to find catalogs"
Then type pkg upgrade and receive the message, "Updating repository, Nothing to do"

Edit:
I should add that I'm using VirtualBox-4.3.12
pkg -vv says....

Code:
Version                 : 1.2.7_2
PACKAGESITE             :
PKG_DBDIR               : /var/db/pkg
PKG_CACHEDIR            : /var/cache/pkg
PORTSDIR                : /usr/ports
PUBKEY                  :
HANDLE_RC_SCRIPTS       : no
ASSUME_ALWAYS_YES       : no
REPOS_DIR               : [
  /etc/pkg/,
  /usr/local/etc/pkg/repos/,
]
PLIST_KEYWORDS_DIR      :
SYSLOG                  : yes
AUTODEPS                : yes
ABI                     : freebsd:9:x86:64
DEVELOPER_MODE          : no
PORTAUDIT_SITE          : http://portaudit.FreeBSD.org/auditfile.tbz
VULNXML_SITE            : http://www.vuxml.org/freebsd/vuln.xml.bz2
MIRROR_TYPE             : SRV
FETCH_RETRY             : 3
PKG_PLUGINS_DIR         : /usr/local/lib/pkg/
PKG_ENABLE_PLUGINS      : yes
PLUGINS                 : [
]
DEBUG_SCRIPTS           : no
PLUGINS_CONF_DIR        : /usr/local/etc/pkg/
PERMISSIVE              : no
REPO_AUTOUPDATE         : yes
NAMESERVER              :
EVENT_PIPE              :
FETCH_TIMEOUT           : 30
UNSET_TIMESTAMP         : no
SSH_RESTRICT_DIR        :
PKG_SSH_ARGS            :
PKG_ENV                 : {
}
DISABLE_MTREE           : no
DEBUG_LEVEL             : 0
ALIAS                   : {
}

Repositories:
  FreeBSD: {
    url             : "pkg+http://pkg.FreeBSD.org/freebsd:9:x86:64/latest",
    enabled         : yes,
    mirror_type     : "SRV"


I ran accross a bug report here...

And did a package update using 10. Guess Virtual box isn't on 10...
Code:
root@OwnCloud:~ # fetch 'http://pkg.freebsd.org/freebsd:10:x86:64/latest/Latest/pkg.txz'
pkg.txz                                       100% of 2429 kB 1174 kBps 00m02s
root@OwnCloud:~ # pkg add -f pkg.txz
Installing pkg-1.5.5...pkg: wrong architecture: freebsd:10:x86:64 instead of freebsd:9:x86:64


Trying FreeBSD9 now
 
Last edited:

Visseroth

Guru
Joined
Nov 4, 2011
Messages
546
So managed to do a upgrade but received the following...

Code:
Checking integrity... done (9 conflicting)
pkg: Cannot solve problem using SAT solver:
upgrade rule: upgrade local phpvirtualbox-4.3.1_1 to remote phpvirtualbox-4.3.2
cannot install package phpvirtualbox, remove it from request? [Y/n]: y
pkg: cannot find phpvirtualbox in the request
pkg: cannot solve job using SAT solver
Checking integrity... done (0 conflicting)
Conflicts with the existing packages have been found.
One more solver iteration is needed to resolve them.
root@OwnCloud:~ # pkg upgrade
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
Checking for upgrades (107 candidates): 100%
Processing candidates (107 candidates): 100%
Checking integrity... done (9 conflicting)
pkg: Cannot solve problem using SAT solver:
upgrade rule: upgrade local phpvirtualbox-4.3.1_1 to remote phpvirtualbox-4.3.2
cannot install package phpvirtualbox, remove it from request? [Y/n]: n
pkg: cannot solve job using SAT solver
Checking integrity... done (0 conflicting)
Your packages are up to date.
 

Visseroth

Guru
Joined
Nov 4, 2011
Messages
546
Install of packages has succeeded but should I be concerned about the previous notifications?

Edit:
I just did a pkg update -f and pkg upgrade and it came back without errors
 

Visseroth

Guru
Joined
Nov 4, 2011
Messages
546
OK, just finished editting /var/db/mysql/my.cnf in the how to on https://forums.freenas.org/index.ph...ing-nginx-php-fpm-and-mysql.17786/#post-95880
and received the following....

Code:
root@OwnCloud:~ # service nginx start && service php-fpm start && service mysql-server start
Performing sanity check on nginx configuration:
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
Starting nginx.
nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)
nginx: [emerg] still could not bind()
/usr/local/etc/rc.d/nginx: WARNING: failed to start nginx
 

Visseroth

Guru
Joined
Nov 4, 2011
Messages
546
Upon the next command I get.....
Code:
root@OwnCloud:~ # mysql_secure_installation

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we'll need the current
password for the root user.  If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2 "No such file or directory")
Enter current password for root (enter for none):
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2 "No such file or directory")
Enter current password for root (enter for none):
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2 "No such file or directory")
Enter current password for root (enter for none):
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2 "No such file or directory")
Enter current password for root (enter for none):
Aborting!



I'm seriously starting to think that the default plugin is the way to go
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
What do you mean when you say you are using virtualbox? Virtualbox has nothing to do with installing owncloud in a jail.
 

Visseroth

Guru
Joined
Nov 4, 2011
Messages
546
Under type where you see the jails it says VirtualBox-4.3.12
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Why are you using a VirtualBox jail? That might not be the cause of all your problems, but it can't be helping. Start over, and for the "template", leave it at the default ("-------").
 

Visseroth

Guru
Joined
Nov 4, 2011
Messages
546
OK, am starting. I thought I had to choose a template and that "---" was just nothing.

I'll post back when I have more.
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Yes do as danb35 suggested. Create a standard jail then run;
Code:
pkg update && pkg upgrade
Then you can start your installation and it should install correctly.
 

Visseroth

Guru
Joined
Nov 4, 2011
Messages
546
And yet again.....

Code:
root@owncloud_1:~ # service nginx start && service php-fpm start && service mysql-server start
Performing sanity check on nginx configuration:
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
Starting nginx.
nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)
nginx: [emerg] still could not bind()
/usr/local/etc/rc.d/nginx: WARNING: failed to start nginx
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
And yet again.....

Code:
root@owncloud_1:~ # service nginx start && service php-fpm start && service mysql-server start
Performing sanity check on nginx configuration:
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
Starting nginx.
nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)
nginx: [emerg] still could not bind()
/usr/local/etc/rc.d/nginx: WARNING: failed to start nginx
Why are you you following this guide in a owncloud plugin jail? I already told you yesterday this guide it to followed in a standard jail.
 

Visseroth

Guru
Joined
Nov 4, 2011
Messages
546

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949

Visseroth

Guru
Joined
Nov 4, 2011
Messages
546
ok, so you were right. I was logged into the wrong installation. I was messing with a default plugin while also trying to run through your setup. So figure, to many irons in the fire.

I appoligize for the frustration and thank you for your patience. My ignorance is frustrating to me too :(

So with the "standard" jail I followed though your guide and when I get to mysql_secure_installation and hit "enter" because no password has been set I get the following error

Code:
Enter current password for root (enter for none):
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2 "No such file or directory")
Enter current password for root (enter for none):
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
ok, so you were right. I was logged into the wrong installation. I was messing with a default plugin while also trying to run through your setup. So figure, to many irons in the fire.

I appoligize for the frustration and thank you for your patience. My ignorance is frustrating to me too :(

So with the "standard" jail I followed though your guide and when I get to mysql_secure_installation and hit "enter" because no password has been set I get the following error

Code:
Enter current password for root (enter for none):
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2 "No such file or directory")
Enter current password for root (enter for none):
you should be setting it during the 'mysql_secure_installation' step
 

Visseroth

Guru
Joined
Nov 4, 2011
Messages
546
I would but I can't do the first step which is set the password.

Code:
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we'll need the current
password for the root user.  If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (38 "Socket operation on non-socket")
Enter current password for root (enter for none):
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (38 "Socket operation on non-socket")
Enter current password for root (enter for none):
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (38 "Socket operation on non-socket")
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I would but I can't do the first step which is set the password.

Code:
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we'll need the current
password for the root user.  If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (38 "Socket operation on non-socket")
Enter current password for root (enter for none):
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (38 "Socket operation on non-socket")
Enter current password for root (enter for none):
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (38 "Socket operation on non-socket")
did you start mysql-server in the previous step?
service mysql-server start
 
Status
Not open for further replies.
Top