selfupdate macports not working - macos

suddently macports is not working though it use too, am getting the below error
Mos-MacBook-Pro:Projects mo$ sudo port -d selfupdate
Warning: port definitions are more than two weeks old, consider using selfupdate
---> Updating the ports tree
DEBUG: Synchronizing ports tree(s)
Synchronizing local ports tree from rsync://rsync.macports.org/release/ports/
DEBUG: /usr/bin/rsync -rtzv --delete-after '--exclude=/PortIndex*' rsync://rsync.macports.org/release/ports/ /opt/local/var/macports/sources/rsync.macports.org/release/ports
#ERROR: chdir failed
rsync error: error starting client-server protocol (code 5) at /SourceCache/rsync/rsync-42/rsync/main.c(1398) [receiver=2.6.9]
shell command "/usr/bin/rsync -rtzv --delete-after '--exclude=/PortIndex*' rsync://rsync.macports.org/release/ports/ /opt/local/var/macports/sources/rsync.macports.org/release/ports" returned error 5
Error: Synchronization of the local ports tree failed doing rsync
DEBUG: Couldn't sync the ports tree: Synchronization of 1 source(s) failed
while executing
"macports::selfupdate [array get global_options] base_updated"
Error: /opt/local/bin/port: port selfupdate failed: Couldn't sync the ports tree: Synchronization of 1 source(s) failed
the macports use to work few months ago, but since i upgraded to lion it stopped. I don't know if it is related to the upgrade or not, today i tried to troubleshoot it but got no where. I thought of reinstalling but i cannot find the dmg for lion on their site (broken link).

Now , macports's rsync server is down see https://trac.macports.org/ticket/34298

Related

Failed to connect to the bus: Address does not contain a colon

I'm getting this error when my circleci job is building my cypress test:
[432:0312/154643.301773:ERROR:bus.cc(392)] Failed to connect to the
bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No
such file or directory [432:0312/154643.303582:ERROR:bus.cc(392)]
Failed to connect to the bus: Address does not contain a colon
[432:0312/154643.303623:ERROR:bus.cc(392)] Failed to connect to the
bus: Address does not contain a colon
[619:0312/154643.361540:ERROR:gpu_init.cc(453)] Passthrough is not
supported, GL is swiftshader, ANGLE is
Does anyone know how I fix this?
Try these steps below:
Install dbus if it's not installed
# UBUNTU:
apt update && apt install -y dbus
# MAC:
brew update && brew install dbus
Then run the commands below
# UBUNTU:
mkdir -p /var/run/dbus
dbus-daemon --config-file=/usr/share/dbus-1/system.conf --print-address
# MAC:
mkdir -p /var/run/dbus
dbus-daemon --config-file=/opt/homebrew/share/dbus-1/system.conf --print-address
Source: https://georgik.rocks/how-to-start-d-bus-in-docker-container/
It seems like this is a known Cypress issue. See this issue from the official GitHub repo for more details.
These errors will still persist even if all the tests pass properly. I'm also getting similar errors with GitHub Actions. It seems like most users just ignore them. A user suggested a fix in April 2021 but there isn't consensus if it works or may cause other complications.
It seems like these errors are not helpful for troubleshooting because they happen even with the official Cypress actions when all specs are passing. If your tests are failing, these errors are likely not the reason.

Unable to install mariadb on macOs

I'm trying to install mariadb on macOs Big Sur(version 11.2.3) with m1 chip. Tried the following official link here and here, but when i run the command
brew install mariadb
then after some time it gives me this error
curl: (7) Failed to connect to pkg-containers.githubusercontent.com port 443: Operation timed out
Error: mariadb: Failed to download resource "mecab"
Download failed: https://ghcr.io/v2/homebrew/core/mecab/blobs/sha256:495c42533a5ea5bdedcf4a95c05e613c3579f626b17d0df0396d8a0ea9328bbe
Any help would be appreciated!.
It is a probably a problem with my connection. Please see more details here

Rsync errors on windows with DeltaCopy

Previously I got this working on my workstation, but since I formatted it, rsync stopped to work.
I already reinstalled git and deltacopy a couple of times.
Also had registered rsync as a service on windows.
Every time I ran the command, I got these errors.
If I type a wrong password, I get access denied, so the connection is ok.
C:\\> rsync -v -rlt -z --chmod=a=rw,Da+x --delete
"/cygdrive/C/P21 Sistemas/web/apache/local.sdt21/sdt21/"
"root#sdt21.com.br:/home/sdt21/homologacao/www/sdt21/"
root#sdt21.com.br's password: *********
dup() in/out/err failed
rsync: read error: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at
/home/lapo/packaging/rsync-3.0.4-1/src/rsync-3.0.4/io.c(791) [sender=3.0.4]**
The problem is with the ".
The quote is a known issue on Windows.
In order to override the problem install cygwin & rsync:
See: Using rsync and cygwin to Sync Files from a Linux Server to a Windows Notebook PC
And then write your command in a shell script and execute it.

MacPorts auto-update failed, OS X Mavericks, exit code 12

I'm trying to auto-update my MacPorts and recently upgraded to Mavericks. I've already run
sudo xcode-select --install
sudo xcodebuild -license
and agreed to the license. Then I do the following and my update doesn't work
port -v selfupdate
---> Updating MacPorts base sources using rsync
receiving file list ... done
rsync: mkstemp "/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/.base.tar.ytBeLt" failed: Permission denied (13)
inflate returned -3 (137 bytes)
rsync error: error in rsync protocol data stream (code 12) at /SourceCache/rsync/rsync-42/rsync/token.c(419) [receiver=2.6.9]
rsync: connection unexpectedly closed (31 bytes received so far) [generator]
rsync error: error in rsync protocol data stream (code 12) at /SourceCache/rsync/rsync-42/rsync/io.c(452) [generator=2.6.9]
Command failed: /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/tarballs/base.tar /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
Exit code: 12
Error: Error synchronizing MacPorts sources: command execution failed
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: /opt/local/bin/port: port selfupdate failed: Error synchronizing MacPorts sources: command execution failed
I've searched the web trying to figure out what this all means. A few responses said I was on wireless internet which had a firewall, but I've tried it on two different networks now and I don't think that is the problem. Thanks for the help in advance!
Have you tried running this command as a sudoer?
sudo port selfupdate
I had the same problem and I got to solve it this way.

install imagemagik using homebrew, shell

ive been trying to get imagemagik onto my mac using homebrew and the terminal when i run
$ brew install imagemagick
i get
==> Installing imagemagick dependency: pkg-config
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/pkg-config-0.27.1.lion.bottle.tar.gz
curl: (52) Empty reply from server
Error: Download failed: https://downloads.sf.net/project/machomebrew/Bottles/pkg-config-0.27.1.lion.bottle.tar.gz
is that just to do with a part of sourge force not responding, or is it an error on my end, ive not seen a "52 empty reply from server" before, is that a similar to a 500 error ?
for the record im running the latest xcode and lion.
SourceForge (sf.net) is currently down.
Did you set proxy to access the web?
I installed ImageMagick. First I got the error message:
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/imagemagick-6.8.0-
curl: (56) Recv failure: Connection reset by peer
This reason might be caused by GFW in China. Then I used a sock server and set http_proxy, I got the error message like yours:
curl: (52) Empty reply from server
At last I modified #HOME/.curlrc by adding "--socks5 127.0.0.1:1080", and reinstall ImageMagick successfully.

Resources